Deploy: CLI Commands
Synopsis
Section titled “Synopsis”promptarena deploy [subcommand] [flags]Description
Section titled “Description”The deploy command manages prompt pack deployments to cloud providers through adapter plugins. It supports planning, applying, monitoring, and destroying deployments across multiple environments.
Global Flags
Section titled “Global Flags”| Flag | Short | Default | Description |
|---|---|---|---|
--env | -e | "default" | Target environment name |
--config | arena.yaml | Path to config file | |
--pack | Auto-detected | Path to .pack.json file |
Pack auto-detection searches the current directory for *.pack.json files.
Commands
Section titled “Commands”deploy
Section titled “deploy”Run plan and apply sequentially. This is the default command.
promptarena deploy [flags]Examples:
# Deploy to default environmentpromptarena deploy
# Deploy to productionpromptarena deploy --env production
# Deploy with explicit pack filepromptarena deploy --pack dist/app.pack.json
# Deploy with custom configpromptarena deploy --config deploy.yaml --env stagingProcess:
- Load arena.yaml deploy config
- Resolve pack file (auto-detect or
--pack) - Merge base config with environment overrides
- Load prior state (if exists)
- Refresh state from live environment (pre-plan state refresh)
- Call adapter
Plan - Call adapter
Apply - Save state with adapter state, pack checksum, and timestamps
deploy plan
Section titled “deploy plan”Preview deployment changes without modifying any resources.
promptarena deploy plan [flags]Examples:
# Plan for default environmentpromptarena deploy plan
# Plan for productionpromptarena deploy plan --env productionOutput format:
Planning deployment (env: production)...Provider: agentcore v0.2.0
Changes: + agent_runtime.greeting Create agent runtime ~ a2a_endpoint.greeting Update A2A endpoint - old_resource.legacy Delete legacy resource unchanged.resource No change
Summary: 1 to create, 1 to update, 1 to deleteChange symbols:
| Symbol | Action |
|---|---|
+ | CREATE |
~ | UPDATE |
- | DELETE |
! | DRIFT |
| NO_CHANGE |
deploy apply
Section titled “deploy apply”Apply deployment changes (called automatically by deploy).
promptarena deploy apply [flags]Examples:
# Apply to stagingpromptarena deploy apply --env stagingdeploy status
Section titled “deploy status”Show current deployment status and resource health.
promptarena deploy status [flags]Examples:
# Status for default environmentpromptarena deploy status
# Status for productionpromptarena deploy status --env productionOutput format:
Status: deployedLast deployed: 2026-02-16T10:30:00ZPack checksum: sha256:abc123def456...
Resources: agent_runtime.greeting: healthy a2a_endpoint.greeting: healthy — serving at https://example.com/a2aStatus values:
| Status | Meaning |
|---|---|
deployed | All resources running |
not_deployed | No resources found |
degraded | Some resources unhealthy |
unknown | Unable to determine |
Resource health:
| Health | Meaning |
|---|---|
healthy | Running normally |
unhealthy | Exists but has issues |
missing | Expected but not found |
Requires: Prior deployment state (exits with error if no state exists).
deploy destroy
Section titled “deploy destroy”Tear down all managed resources.
promptarena deploy destroy [flags]Examples:
# Destroy staging deploymentpromptarena deploy destroy --env stagingProcess:
- Load prior state (exit if none exists)
- Call adapter
Destroywith prior state - Delete local state file
- Display completion message
Requires: Prior deployment state.
deploy refresh
Section titled “deploy refresh”Refresh local state from the live environment. Queries the adapter for the current state of all resources and updates local state to match reality. Use this to detect drift between local state and cloud resources.
promptarena deploy refresh [flags]Examples:
# Refresh state for default environmentpromptarena deploy refresh
# Refresh state for productionpromptarena deploy refresh --env productionProcess:
- Acquire deploy lock
- Load prior state (exit if none exists)
- Call adapter
Statuswith prior state - Update adapter state and
last_refreshedtimestamp - Save updated state
- Display resource status (drift shown with
!)
Requires: Prior deployment state.
deploy import
Section titled “deploy import”Import a pre-existing resource into deployment state. This allows PromptKit to manage resources that were created outside of the deploy workflow.
promptarena deploy import <type> <name> <id> [flags]Arguments:
| Argument | Description |
|---|---|
type | Resource type (e.g., agent_runtime, a2a_endpoint) |
name | Resource name to assign in local state |
id | Provider-specific resource identifier |
Examples:
# Import an agent runtimepromptarena deploy import agent_runtime my-agent container-abc123
# Import an A2A endpointpromptarena deploy import a2a_endpoint my-ep endpoint-xyz789
# Import into a specific environmentpromptarena deploy import agent_runtime my-agent container-abc123 --env productionProcess:
- Acquire deploy lock
- Load prior state (or create new state if none exists)
- Call adapter
Importwith resource type, name, and identifier - Update or create local state with adapter response
- Save updated state with
last_refreshedtimestamp - Display imported resource information
deploy adapter install
Section titled “deploy adapter install”Install an adapter binary from the registry.
promptarena deploy adapter install <provider>[@<version>]Examples:
# Install latest versionpromptarena deploy adapter install agentcore
# Install specific versionpromptarena deploy adapter install agentcore@0.2.0Process:
- Look up provider in the built-in adapter registry
- Determine version (specified or latest from registry)
- Download binary from GitHub Releases for current OS/architecture
- Install to
~/.promptarena/adapters/promptarena-deploy-{provider} - Set executable permissions (0755)
Download URL format:
https://github.com/{repo}/releases/download/v{version}/promptarena-deploy-{provider}_{os}_{arch}deploy adapter list
Section titled “deploy adapter list”List all installed adapters.
promptarena deploy adapter listOutput format:
Installed adapters: agentcore ~/.promptarena/adapters/promptarena-deploy-agentcore custom .promptarena/adapters/promptarena-deploy-customSearches:
- Project-local:
.promptarena/adapters/ - User-level:
~/.promptarena/adapters/
deploy adapter remove
Section titled “deploy adapter remove”Remove an installed adapter.
promptarena deploy adapter remove <provider>Examples:
promptarena deploy adapter remove agentcoreRemoves the binary from ~/.promptarena/adapters/.
Configuration
Section titled “Configuration”The deploy section in arena.yaml:
deploy: provider: agentcore # Required: adapter name config: # Optional: base provider config region: us-west-2 environments: # Optional: per-environment overrides production: config: region: us-east-1File Paths
Section titled “File Paths”| Path | Description |
|---|---|
arena.yaml | Default config file |
*.pack.json | Auto-detected pack files |
.promptarena/deploy.state | Deployment state (JSON) |
.promptarena/deploy.lock | Deploy lock file (prevents concurrent access) |
.promptarena/adapters/ | Project-local adapters |
~/.promptarena/adapters/ | User-level adapters |
See Also
Section titled “See Also”- Configure Deploy — Configuration guide
- Plan and Apply — Deployment workflows
- Protocol — JSON-RPC method details