> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# snapshot

Export and import the whole configuration of your AI Agent. `snapshot` uses the same engine as the [Snapshot API](/reference/snapshot-api/overview). Use it to back up a configuration, keep it in git, or copy it from one instance to another.

## Commands

| Command                  | What it does                                                                      |
| ------------------------ | --------------------------------------------------------------------------------- |
| `snapshot export`        | Exports the whole configuration to a `.tar.gz` file, a folder, or stdout.         |
| `snapshot import <path>` | Checks a snapshot against the AI Agent, then asks before it applies the snapshot. |

## Examples

Export the configuration to a folder that you keep in git:

```bash
adacli acme snapshot export -o acme/
git add acme && git commit -m "Baseline configuration"
```

Show what an import would change, and write nothing:

```bash
adacli acme snapshot import acme/ --dry-run
```

Import only the Playbooks. Check the import first with the same `--include`, then apply it with no question:

```bash
adacli acme snapshot import acme/ --include playbooks --dry-run
adacli acme snapshot import acme/ --include playbooks --confirm
```

The import replaces the Playbooks section. It also adds or updates each item that a Playbook uses from another section, such as a variable or an API tool. It deletes nothing in those other sections.

Give a secret value that the export listed. Read the value from a shell variable, so the value is not in your command history:

```bash
adacli acme snapshot import acme.tar.gz --secret "crm_api_token=$CRM_API_TOKEN" --confirm
```

Other programs on the computer can read the arguments of a running command. Run the import only on a computer that you trust.

Copy the configuration to a staging instance. Check the import first:

```bash
adacli acme snapshot export -o acme.tar.gz
adacli acme-staging snapshot import acme.tar.gz --dry-run
adacli acme-staging snapshot import acme.tar.gz --confirm
```

## Details

* An export always takes the whole AI Agent. `--include` selects sections at import only. [What a snapshot includes](/reference/snapshot-api/what-a-snapshot-includes) lists the sections.
* An import replaces each section that it imports. In that section, it deletes each item that the snapshot does not have. Read the delete counts before you apply.
* An import first checks the snapshot. If the check finds a blocker, adacli stops and lists each blocker.
* An import asks before it applies the snapshot. Outside a terminal, add `--confirm`.
* An export lists the names of the secret values that the snapshot needs. Give each value at import with `--secret NAME=VALUE`.
* You need the Admin or Owner role to import a snapshot.
* adacli stops waiting for a job after 30 minutes. The job continues on the server.

For every option of a command, run it with `--help`, for example `adacli acme snapshot import --help`.

## Related commands

* [`changesets`](/adacli/commands/changesets): make and test changes before they go live.
* [`knowledge`](/adacli/commands/knowledge): change one article without a full import.
* [`playbooks`](/adacli/commands/playbooks): change one Playbook without a full import.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).