Snapshot an environment
cs_snapshot_environmentCapture an environment's full state—agents, flows, connections, and settings—into a folder for comparison and history auditing.
Instructions
Capture one environment into a folder for comparison or history: solution version, every agent cloned with pac copilot clone (agents/), and, when signed in, flows, connection references, environment variables and publish state. Read-only for the environment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Snapshot folder (recreated) | |
| label | Yes | Short name such as DEV, TEST, ACC, PROD | |
| agents | No | Agent schema names or ids to clone; default: every agent pac copilot list returns | |
| clientId | No | Entra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id. | |
| solution | No | Solution unique name to record version/managed state for | |
| tenantId | No | Entra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID. | |
| maxAgents | No | Default 20 | |
| environment | Yes | Environment id or URL | |
| includeDataverse | No | Default true: flows, connection references, environment variables and publish state via Dataverse (needs cs_login; skipped silently otherwise) |