Development Workflow
Once you’ve linked your directory to a service, these commands make up the core development loop.
Deploy
Section titled “Deploy”Trigger a full build-deploy pipeline:
ancla services deploy my-ws/my-project/production/my-serviceAdd --follow to stream build and deploy logs in real time instead of returning immediately:
ancla services deploy my-ws/my-project/production/my-service --followCheck status
Section titled “Check status”ancla statusShows the linked service’s current pipeline state:
Workspace: my-wsProject: my-projectEnv: productionService: my-service
STAGE STATUSBuild completeDeploy runningView logs
Section titled “View logs”Pull the latest deploy’s logs:
ancla logsStream logs as they come in:
ancla logs -fFor a specific deploy (not the latest), use the lower-level command:
ancla deploys log <deploy-id>ancla deploys log <deploy-id> --followRun local commands with service config
Section titled “Run local commands with service config”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.
ancla run -- python manage.py migrateancla run -- npm startancla run -- env | grep DATABASEThe -- 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.
Scale processes
Section titled “Scale processes”ancla services scale my-ws/my-project/production/my-service web=2 worker=1Take a service down
Section titled “Take a service down”Scale all processes to zero in one shot:
ancla downThis prompts for confirmation. Skip the prompt in CI with --yes:
ancla down --yesYou can also target a specific service without a link:
ancla down my-ws/my-project/production/my-service --yesOpen in browser
Section titled “Open in browser”Open the Ancla dashboard for your linked service:
ancla openOpen the documentation site:
ancla docsList everything
Section titled “List everything”Quick overview of all your projects grouped by workspace:
ancla listOr drill into specific resources:
ancla workspaces listancla projects list --workspace my-wsancla envs list my-ws/my-projectancla services list my-ws/my-project/production