Back to Documentation
CLI & API

CLI Commands

Complete reference for all Berican CLI commands. Deploy, manage sites, domains, and more.

1Authentication

# Login to your account
berican login

# Login with API key
berican login --token YOUR_API_KEY

# Show current user
berican whoami

# Logout
berican logout

2Project Commands

# Initialize a new project
berican init

# Link to existing site
berican link

# Unlink current directory
berican unlink

# Show project info
berican info

3Deployment Commands

# Deploy current directory
berican deploy

# Deploy specific directory
berican deploy ./dist

# Deploy with message
berican deploy -m "Fixed homepage bug"

# Deploy to production
berican deploy --prod

# List deployments
berican deployments list

# Rollback to previous deployment
berican rollback

# Rollback to specific deployment
berican rollback dpl_abc123

4Site Commands

# List all sites
berican sites list

# Create new site
berican sites create my-site

# Delete a site
berican sites delete my-site

# Open site in browser
berican open

# View site logs
berican logs

# Stream logs in real-time
berican logs --follow

5Domain Commands

# List domains
berican domains list

# Add domain to site
berican domains add example.com

# Remove domain
berican domains remove example.com

# Check domain availability
berican domains check example.com

# Show DNS records
berican domains dns example.com

6Environment Variables

# List env vars
berican env list

# Add env var
berican env add API_KEY=secret

# Remove env var
berican env remove API_KEY

# Pull env vars to .env file
berican env pull

# Push .env file to site
berican env push