> ## Documentation Index
> Fetch the complete documentation index at: https://developer.watson-orchestrate.ibm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploying and undeploying agents

Deploying an agent means releasing it so users can access it in the SaaS environment. You can deploy agents through the watsonx Orchestrate UI or by using the ADK CLI.

This guide explains how to deploy and undeploy agents using the ADK CLI. If you prefer using the UI, see [Deploying the agent](https://www.ibm.com/docs/en/watsonx/watson-orchestrate/base?topic=agents-deploying-agent).

## Deploying agents

To deploy an agent in the active environment using the ADK CLI, run:

```bash BASH theme={null}
orchestrate agents deploy -n <agent-name>
```

<Expandable title="command flags">
  <ResponseField name="--name / -n" type="string">
    The name of the agent you want to deploy.
  </ResponseField>
</Expandable>

## Undeploying agents

To undeploy an agent in the active environment using the ADK CLI, run:

```bash BASH theme={null}
orchestrate agents undeploy -n <agent-name>
```

<Expandable title="command flags">
  <ResponseField name="--name / -n" type="string">
    The name of the agent you want to undeploy.
  </ResponseField>
</Expandable>
