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

# variables

Read and change the [Variables](/docs/automation/variables) of your AI Agent, and see what uses each variable. The alias is `vars`.

## Commands

| Command                 | What it does                                                                               |
| ----------------------- | ------------------------------------------------------------------------------------------ |
| `variables list`        | Lists variables, one page at a time, with filters.                                         |
| `variables get <id>`    | Shows one variable and what uses it.                                                       |
| `variables schema`      | Shows the variable settings that the AI Agent can set, and the rules between the settings. |
| `variables create`      | Creates a variable.                                                                        |
| `variables update [id]` | Changes one variable, or many variables from a JSON file.                                  |
| `variables delete <id>` | Deletes a variable.                                                                        |

## Examples

Find the variables that nothing uses, and show what uses the others:

```bash
adacli acme variables list --unused
adacli acme variables list --usage
```

Find the ID of a variable from part of its name:

```bash
adacli acme variables list --name-contains order
```

Create a variable:

```bash
adacli acme variables create --name customer_email --description "The email address of the end user"
```

Change the description of a variable:

```bash
adacli acme variables update var-abc123 --description "The order number that the end user gives."
```

Check a file of changes, then apply it:

```bash
adacli acme variables update --from-file variables.json --dry-run
adacli acme variables update --from-file variables.json
```

## Details

* Availability rules take a variable ID, not a variable name. Use `variables list` to get the ID.
* `--from-file` takes a JSON array. Each entry has an `id`, and a `description`, `settings`, or both. `settings` uses the names and values that `variables schema` shows.
* `--from-file` checks every entry before the first change. If one entry is not valid, nothing changes.
* `--from-file` stops at the first variable that the AI Agent refuses. The variables before it stay changed. Add `--continue` to try every entry.
* A file cannot change the name, the type, or the scope of a variable. Use `variables update <id>` for these fields.

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

## Related commands

* [`knowledge`](/adacli/commands/knowledge): use variable IDs in availability rules for articles.
* [`playbooks`](/adacli/commands/playbooks): read and change the Playbooks that set and use variables.

---

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