Skip to content

Development Workflow

Once you’ve linked your directory to a service, these commands make up the core development loop.

Trigger a full build-deploy pipeline:

Terminal window
ancla services deploy my-ws/my-project/production/my-service

Add --follow to stream build and deploy logs in real time instead of returning immediately:

Terminal window
ancla services deploy my-ws/my-project/production/my-service --follow
Terminal window
ancla status

Shows the linked service’s current pipeline state:

Workspace: my-ws
Project: my-project
Env: production
Service: my-service
STAGE STATUS
Build complete
Deploy running

Pull the latest deploy’s logs:

Terminal window
ancla logs

Stream logs as they come in:

Terminal window
ancla logs -f

For a specific deploy (not the latest), use the lower-level command:

Terminal window
ancla deploys log <deploy-id>
ancla deploys log <deploy-id> --follow

ancla run fetches your service’s config variables from the API and injects them as environment variables into a local command. This is how you run your service locally with production (or staging) config without copying .env files around.

Terminal window
ancla run -- python manage.py migrate
ancla run -- npm start
ancla run -- env | grep DATABASE

The -- separator is required. Everything after it becomes the command and its arguments.

Non-secret config variables are injected. Secret values are skipped for safety. Your local environment variables are preserved; service config overlays on top of them.

Terminal window
ancla services scale my-ws/my-project/production/my-service web=2 worker=1

Scale all processes to zero in one shot:

Terminal window
ancla down

This prompts for confirmation. Skip the prompt in CI with --yes:

Terminal window
ancla down --yes

You can also target a specific service without a link:

Terminal window
ancla down my-ws/my-project/production/my-service --yes

Open the Ancla dashboard for your linked service:

Terminal window
ancla open

Open the documentation site:

Terminal window
ancla docs

Quick overview of all your projects grouped by workspace:

Terminal window
ancla list

Or drill into specific resources:

Terminal window
ancla workspaces list
ancla projects list --workspace my-ws
ancla envs list my-ws/my-project
ancla services list my-ws/my-project/production