Deploy: Your First Deployment
Deploy a compiled prompt pack to a cloud provider in 20 minutes.
What You’ll Build
Section titled “What You’ll Build”A fully deployed prompt pack running on a cloud provider, managed through the PromptKit CLI with state tracking and status monitoring.
Learning Objectives
Section titled “Learning Objectives”In this tutorial, you’ll learn to:
- Install a deploy adapter
- Configure the deploy section in arena.yaml
- Preview a deployment plan
- Apply the deployment
- Check deployment status
- Tear down resources
Time Required
Section titled “Time Required”20 minutes
Prerequisites
Section titled “Prerequisites”- PromptKit CLI (
promptarena) installed - A compiled
.pack.jsonfile (see Your First Pack) - Access to AWS (for the agentcore adapter example)
- AWS credentials configured in your environment
Step 1: Install an Adapter
Section titled “Step 1: Install an Adapter”Adapters are plugin binaries that connect the deploy CLI to specific cloud providers. Install the AgentCore adapter for AWS Bedrock:
promptarena deploy adapter install agentcoreExpected output:
Installed adapter: agentcore v0.2.0 Location: ~/.promptarena/adapters/promptarena-deploy-agentcoreVerify the installation:
promptarena deploy adapter listExpected output:
Installed adapters: agentcore ~/.promptarena/adapters/promptarena-deploy-agentcoreWhat happened:
- The CLI fetched the adapter binary from the GitHub release
- Downloaded the correct binary for your OS and architecture
- Installed it to
~/.promptarena/adapters/with execute permissions
Step 2: Add Deploy Configuration
Section titled “Step 2: Add Deploy Configuration”Add a deploy section to your arena.yaml:
# arena.yaml (add to existing config)deploy: provider: agentcore config: region: us-west-2The provider field tells the CLI which adapter binary to use. The config section is passed directly to the adapter — its contents depend on the provider.
Step 3: Preview the Plan
Section titled “Step 3: Preview the Plan”Before making any changes, preview what the deployment will do:
promptarena deploy planExpected output:
Planning deployment...Provider: agentcore v0.2.0
Changes: + agent_runtime.greeting Create agent runtime + a2a_endpoint.greeting Create A2A endpoint
Summary: 2 resources to create, 0 to update, 0 to deleteWhat happened:
- The CLI loaded your arena.yaml and found the deploy config
- Auto-detected the
.pack.jsonfile in your project - Launched the adapter binary and sent it the pack + config via JSON-RPC
- The adapter analyzed the pack and reported what resources need to be created
The symbols indicate the action for each resource:
| Symbol | Action |
|---|---|
+ | Create |
~ | Update |
- | Delete |
| No change |
Step 4: Apply the Deployment
Section titled “Step 4: Apply the Deployment”Apply the plan to create the resources:
promptarena deployExpected output:
Planning deployment...Applying... Creating agent_runtime.greeting... done Creating a2a_endpoint.greeting... doneDeployment complete.What happened:
- The CLI ran a plan (same as Step 3)
- Sent an apply request to the adapter
- The adapter created resources on the cloud provider
- State was saved to
.promptarena/deploy.state
Step 5: Check Status
Section titled “Step 5: Check Status”Verify the deployment is healthy:
promptarena deploy statusExpected output:
Status: deployedLast deployed: 2026-02-16T10:30:00ZPack checksum: sha256:abc123...
Resources: agent_runtime.greeting: healthy a2a_endpoint.greeting: healthyStep 6: Clean Up
Section titled “Step 6: Clean Up”When you’re done, tear down the resources:
promptarena deploy destroyExpected output:
Destroying deployment... Deleting a2a_endpoint.greeting... done Deleting agent_runtime.greeting... doneDeployment destroyed.This removes cloud resources and deletes the local state file.
What You Learned
Section titled “What You Learned”Congratulations! You’ve successfully:
- Installed a deploy adapter plugin
- Configured deployment in arena.yaml
- Previewed changes with
deploy plan - Applied a deployment
- Monitored deployment status
- Torn down resources with
deploy destroy
Understanding the Workflow
Section titled “Understanding the Workflow”The deploy workflow follows a plan-apply pattern:
- Plan — Adapter analyzes the pack and config, reports what will change
- Apply — Adapter creates, updates, or deletes cloud resources
- State — CLI persists deployment state locally for future operations
- Status — Adapter queries the provider for current resource health
- Destroy — Adapter removes all managed resources
Common Issues
Section titled “Common Issues”Issue: adapter not found
Section titled “Issue: adapter not found”Solution: Install the adapter first:
promptarena deploy adapter install agentcoreIssue: no pack file found
Section titled “Issue: no pack file found”Solution: Compile your pack before deploying:
packc compile --config arena.yaml --output app.pack.json --id my-appOr specify the pack file explicitly:
promptarena deploy --pack app.pack.jsonIssue: provider authentication failed
Section titled “Issue: provider authentication failed”Solution: Ensure your cloud credentials are configured:
# For AWSaws configure# Or set environment variablesexport AWS_ACCESS_KEY_ID=...export AWS_SECRET_ACCESS_KEY=...export AWS_REGION=us-west-2Next Steps
Section titled “Next Steps”Now that you’ve deployed your first pack, you’re ready to:
- Tutorial: Multi-Environment — Deploy to dev, staging, and production
- How-To: Plan and Apply — Learn advanced deployment workflows
- Reference: CLI Commands — Complete command documentation