Clone an agent to disk
cs_clone_agentDownloads an existing Copilot Studio agent into a local sync-connected workspace, creating a subfolder and sync stamp for drift detection and push preflight checks.
Instructions
pac copilot clone: download an existing agent into a sync-connected workspace (a subfolder named after the agent under outputDir). Needs a pac auth profile. Records a sync stamp (.mcs/cs-sync.json) that cs_check_drift and the cs_push preflight compare against.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | Agent id (GUID) or schema name; omit to be shown the agents in the environment | |
| outputDir | No | ||
| displayName | No | Folder name override | |
| environment | No | Environment id or URL; default active profile | |
| componentCollections | No |