deploy & deployments

Deployments are triggered by pushing code over Git, but you can also trigger, inspect, and manage them directly from the CLI.

slasha deploy

Trigger a deployment for an app. Without --commit, Slasha uses the latest commit on the app's default branch.

slasha deploy --app my-api

# deploy a specific commit
slasha deploy --app my-api --commit a3f2c1d
  • --app <SLUG> — target app slug (optional if slasha.toml is present)
  • --commit <SHA> — deploy a specific commit SHA instead of the latest
Concurrent Build Guard: Slasha allows only one build to run at a time per application. If you trigger a deployment while another build is in progress, the request will be rejected.

After triggering, the CLI prints the deployment ID and a hint to stream the logs:

slasha deployments logs --app my-api --follow

slasha deployments list

List all deployments for an app, sorted newest first. Output columns: ID, COMMIT, STATUS, CREATED.

slasha deployments --app my-api list

slasha deployments logs

Stream build and runtime logs for a deployment over Server-Sent Events. Without--deployment-id, targets the most recent deployment. Without --follow, prints the log history and exits once caught up.

# latest deployment, history only
slasha deployments --app my-api logs

# latest deployment, keep streaming
slasha deployments --app my-api logs --follow

# specific deployment
slasha deployments --app my-api logs --deployment-id <ID> --follow
  • --deployment-id <ID> — target a specific deployment (defaults to the latest)
  • --follow — keep the stream open after history is exhausted

slasha deployments stop

Send a stop signal to a running deployment. Defaults to the most recent deployment.

slasha deployments --app my-api stop
slasha deployments --app my-api stop --deployment-id <ID>

slasha deployments restart

Restart the containers of a deployment without rebuilding. Defaults to the most recent deployment.

slasha deployments --app my-api restart
slasha deployments --app my-api restart --deployment-id <ID>

slasha deployments redeploy

Trigger a fresh build and deploy from the same commit as an existing deployment. Defaults to the most recent deployment.

slasha deployments --app my-api redeploy
slasha deployments --app my-api redeploy --deployment-id <ID>

slasha deployments delete

Delete a deployment record. The deployment must be stopped or failed first. Prompts for confirmation unless -y is passed.

slasha deployments --app my-api delete --deployment-id <ID>
slasha deployments --app my-api delete --deployment-id <ID> -y
  • --deployment-id <ID> — target deployment (defaults to the latest)
  • -y / --yes — skip the confirmation prompt