# Deploying agents from sandbox to production

*Agentforce Specialist Study Guide · Testing, Deployment, and Maintenance · Last updated November 6, 2026 · https://www.certifyforce.com/study-guide/agentforce-specialist/testing-deployment-and-maintenance/deploying-agents-from-sandbox-to-production*

How API-version-specific agent metadata moves through change sets or Salesforce CLI, how dependencies and agent access affect release, and how pre-v68 authoring bundles identify matching runtime versions.

- Certification: Salesforce Agentforce Specialist
- Exam section: Testing, Deployment, and Maintenance
- Study guide: https://www.certifyforce.com/study-guide/agentforce-specialist

**Official exam objective:**

> Identify the considerations for deploying an agent from sandbox to production.

## What the exam expects

- Choose between a change set and Salesforce CLI with source control for moving an agent.
- Name agent metadata and dependencies for the selected API version and deployment path.
- Complete the move: inbound change set validation and deployment, or CLI retrieve and deploy.
- Plan post-deployment steps: agent user, permissions and activation.
- Build a go-live checklist that keeps testing in the sandbox.
- Key terms: **change set** (Setup tool that sends metadata from one connected org to another); **Salesforce CLI** (command-line tool that retrieves and deploys metadata between orgs and a local project); **GenAiPlugin / GenAiFunction** (metadata for an agent's subagents, formerly topics, and its actions); **agent user** (the user record a Service agent runs as); **interdependent components** (everything an action needs to run in the target org).

## Key facts

| Fact | Detail | Source |
|---|---|---|
| December 2025 recipe components | GenAI Function Definition, GenAI Plugin Definition, Bot | [Agentforce Deployment with Change Set](https://help.salesforce.com/s/articleView?id=005232697&language=en_US&type=1) |
| Change set recipe dependencies | Add flows, Apex classes, custom objects and permission sets the actions use | [Agentforce Deployment with Change Set](https://help.salesforce.com/s/articleView?id=005232697&language=en_US&type=1) |
| Completing a change set | Open the inbound change set in the target, then validate and deploy | [Agentforce Deployment with Change Set](https://help.salesforce.com/s/articleView?id=005232697&language=en_US&type=1) |
| Committed agent metadata (v67 and earlier) | AiAuthoringBundle, Bot and BotVersion; not editable | [Define Agent Metadata (v67 and Earlier)](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-dx-api-v67-earlier.html) |
| v68 agent metadata | AiAgentDefinition and AiAgentDefinitionVersion; Bot only for Einstein Bots | [Agentforce Metadata Types (v68 and Later)](https://developer.salesforce.com/docs/ai/agentforce/references/agents-metadata-tooling/agents-metadata.html) |
| CLI path | Retrieve from sandbox to a DX project, deploy to production | [Move an Agent to a New Org](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-dx-deploy-metadata.html) |
| After CLI deploy | Service agents: assign the agent user; keep source and target versions matching | [Move an Agent to a New Org](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-dx-deploy-metadata.html) |
| Activation | One active version per agent; needs Manage AI Agents plus agent-type permissions | [Activate or Deactivate Your Agent](https://help.salesforce.com/s/articleView?id=ai.copilot_setup_activate_deactivate.htm&language=en_US&type=5) |

## Check yourself

- Why can authoring-bundle and runtime version numbers differ in API v67 and earlier?
- When preparing a manifest for a selected authoring bundle, where should the matching runtime versions be read?
- Which paired runtime components does that documented target metadata identify?

## Sources

- [Agentforce Deployment with Change Set](https://help.salesforce.com/s/articleView?id=005232697&language=en_US&type=1)
- [Move an Agent to a New Org](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-dx-deploy-metadata.html)
- [Define Agent Metadata (v67 and Earlier)](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-dx-api-v67-earlier.html)
- [Agentforce Metadata Types (v68 and Later)](https://developer.salesforce.com/docs/ai/agentforce/references/agents-metadata-tooling/agents-metadata.html)
- [Agentforce DX](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-dx.html)
- [Configure Service Agent Access](https://help.salesforce.com/s/articleView?id=ai.agent_user.htm&language=en_US&type=5)
- [Activate or Deactivate Your Agent](https://help.salesforce.com/s/articleView?id=ai.copilot_setup_activate_deactivate.htm&language=en_US&type=5)
- [Versioning and Editing Agents](https://help.salesforce.com/s/articleView?id=ai.agent_versions_lifecycle.htm&language=en_US&type=5)
- [Agentforce Testing Center](https://help.salesforce.com/s/articleView?language=en_US&id=ai.agent_testing_center.htm&type=5)
- [Understanding Trust in Agentforce Testing Methods](https://trailhead.salesforce.com/content/learn/modules/agentforce-agent-testing/trust-your-agents)
- [Lifecycle Center (formerly DevOps Center)](https://help.salesforce.com/s/articleView?id=platform.devops_center_overview.htm&language=en_US&type=5)

## About the full unit

The "Core concepts", "Exam traps" and "Worked scenario" sections of this unit and reading progress are included in the full study guide. The separate practice exams option includes the reviewed question bank and timed mock exams. The bundle includes both where available. See [current options and prices](https://www.certifyforce.com/pricing).
