deployments
Deploy your app to LlamaCloud and manage existing deployments.
Deployment names are the stable ids shown in the NAME column. Commands use the active profile’s project by default. Pass --project PROJECT on API-backed commands to override it for one command.
llamactl deployments [COMMAND] [options]Commands:
get [NAME]: List deployments, or show one deploymentcreate: Create a deployment from an editor or YAML fileedit [NAME]: Edit a deployment in your editor, or update from a YAML fileapply -f FILE: Create or update a deployment from YAMLtemplate: Print a YAML scaffold for a new deploymentdelete NAME: Delete a deploymentdelete -f FILE: Delete the deployment named in a YAML fileupdate NAME: Resolve a git ref again and start a new releasehistory NAME: Show release historyrollback NAME: Roll back to an earlier git SHAlogs NAME: Fetch or stream deployment logsconfigure-git-remote NAME: Configure the push-mode git remote
Notes:
-o jsonand-o yamlare for scripts. Status messages go to stderr; structured data goes to stdout.-f -reads YAML from stdin on commands that accept-f.repo_url: ""in apply YAML means push the current local working tree. Push-capable deployment mutations support--no-pushwhen you have already pushed separately or want the server to use the revision it can already resolve.
Commands
Section titled “Commands”llamactl deployments get [NAME] [-o text|json|yaml|wide|template] [--project PROJECT]With no NAME, lists deployments in the active project. With NAME, prints one deployment.
Output modes:
text: Default table outputwide: Table output with less common columnsjson: Machine-readable JSONyaml: Machine-readable YAMLtemplate: Apply-shaped YAML for one deployment only
Examples:
llamactl deployments getllamactl deployments get invoice-agent -o yamlllamactl deployments get invoice-agent -o template > deployment.yamlCreate
Section titled “Create”llamactl deployments create [-f FILE] [--no-push] [--project PROJECT]Without -f, opens $EDITOR with a commented YAML scaffold. Save and close the file to create the deployment.
With -f FILE, creates from YAML without opening an editor. Use -f - to read from stdin.
Flags:
-f, --filename FILE: YAML file, or-for stdin--no-push: Skip pushing local code for push-mode deployments--project PROJECT: Override the active project
Examples:
llamactl deployments createllamactl deployments create -f deployment.yamlllamactl deployments create -f - < deployment.yamlllamactl deployments create --no-pushllamactl deployments edit [NAME] [-f FILE] [--no-push] [--project PROJECT]Without -f, fetches the deployment, renders editable YAML, and opens $EDITOR. If NAME is omitted in a TTY, choose from existing deployments. Scripts should pass NAME.
With -f FILE, updates from YAML without opening an editor. If NAME is omitted, the YAML must include top-level name.
Flags:
-f, --filename FILE: YAML file, or-for stdin--no-push: Skip pushing local code for push-mode deployments--project PROJECT: Override the active project
Examples:
llamactl deployments edit invoice-agentllamactl deployments edit invoice-agent -f deployment.yamlllamactl deployments edit -f deployment.yamlllamactl deployments apply -f FILE [--dry-run] [--no-push] [--annotate-on-error] [--project PROJECT]Applies deployment YAML declaratively. If the top-level name exists, apply updates that deployment. If it does not exist, apply creates it. YAML produced by deployments template or deployments get NAME -o template is ready for this command.
${VAR} references are resolved from the process environment at apply time. Masked secret values from read output are ignored so round-tripping a deployment does not overwrite existing secrets with placeholders.
Flags:
-f, --filename FILE: Required YAML file, or-for stdin--dry-run: Validate and print the resolved payload without changing the deployment--no-push: Skip pushing local code for push-mode deployments--annotate-on-error: Write validation errors back into the YAML as comments--project PROJECT: Override the active project
Examples:
llamactl deployments template > deployment.yamlllamactl deployments apply -f deployment.yamlllamactl deployments apply -f deployment.yaml --dry-runllamactl deployments apply -f deployment.yaml --annotate-on-errorllamactl deployments get invoice-agent -o template | llamactl deployments apply -f -Template
Section titled “Template”llamactl deployments templatePrints a commented YAML scaffold for a new deployment. This command is offline and does not require auth. It uses local context when available, such as the current git remote, current branch, deployment config path, and secret names.
Example:
llamactl deployments template > deployment.yamlDelete
Section titled “Delete”llamactl deployments delete NAME [--project PROJECT]llamactl deployments delete -f FILE [--project PROJECT]Deletes a deployment immediately. Pass NAME directly, or pass -f FILE to read the deployment name from YAML.
Flags:
-f, --filename FILE: YAML file containing top-levelname--project PROJECT: Override the active project
Examples:
llamactl deployments delete invoice-agentllamactl deployments delete -f deployment.yamlUpdate
Section titled “Update”llamactl deployments update NAME [--git-ref REF] [--no-push] [--project PROJECT]Resolves the deployment’s configured git ref again and starts a new release from the resulting commit. Use --git-ref to switch to a branch, tag, or commit before resolving.
For push-mode deployments, update mirrors local code before resolving the ref. Use --no-push if you already pushed separately or want to redeploy the revision already available to the server.
Flags:
--git-ref REF: Branch, tag, or commit SHA to deploy--no-push: Skip mirroring local code for push-mode deployments--project PROJECT: Override the active project
Examples:
llamactl deployments update invoice-agentllamactl deployments update invoice-agent --git-ref release-2026-05llamactl deployments update invoice-agent --no-pushHistory
Section titled “History”llamactl deployments history NAME [-o text|json|yaml|wide] [--project PROJECT]Shows release history for a deployment, newest first.
Examples:
llamactl deployments history invoice-agentllamactl deployments history invoice-agent -o yamlRollback
Section titled “Rollback”llamactl deployments rollback NAME [--git-sha SHA] [--project PROJECT]Rolls a deployment back to a previous git SHA. In a TTY, omit --git-sha to choose from release history. Scripts should pass --git-sha.
Flags:
--git-sha SHA: Git SHA to roll back to--project PROJECT: Override the active project
Examples:
llamactl deployments history invoice-agentllamactl deployments rollback invoice-agent --git-sha 3f2a1c9llamactl deployments rollback invoice-agentllamactl deployments logs NAME [--follow] [--json] [--tail N] [--since-seconds N] [--include-init-containers] [--project PROJECT]Fetches recent deployment logs and exits. Use --follow to keep streaming.
Flags:
--follow, -f: Stream until interrupted--json: Emit one JSON log event per line--tail N: Number of log lines to fetch initially--since-seconds N: Only return logs newer than this many seconds--include-init-containers: Include init container logs--project PROJECT: Override the active project
Examples:
llamactl deployments logs invoice-agentllamactl deployments logs invoice-agent --followllamactl deployments logs invoice-agent --tail 50 --since-seconds 3600llamactl deployments logs invoice-agent --jsonConfigure Git Remote
Section titled “Configure Git Remote”llamactl deployments configure-git-remote NAME [--project PROJECT]Configures an authenticated git remote for a push-mode deployment. The remote is named llamaagents-NAME.
Examples:
llamactl deployments configure-git-remote invoice-agentgit push llamaagents-invoice-agentSee also
Section titled “See also”- Getting started: Introduction
- Configure names, env, and UI: Deployment Config Reference
- Local dev server:
llamactl serve