> ## Documentation Index
> Fetch the complete documentation index at: https://docs.actual.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# actual adr

> Write and check ADRs in this repository, and manage your decisions in Actual AI

```bash theme={null}
actual adr <COMMAND>
```

Local commands (new, check) need no sign-in. The others act on your organization's decisions in Actual AI and need `actual login`. See docs/ADR\_COMMANDS.md.

## Subcommands

| Command | What it does |
| - | - |
| [`actual adr new`](#actual-adr-new) | Write a decision into docs/adr/ and its rule file into .actual/rules/ |
| [`actual adr check`](#actual-adr-check) | Check decision files with Actual AI's save rules and list likely duplicates |
| [`actual adr list`](#actual-adr-list) | List your organization's decisions |
| [`actual adr show`](#actual-adr-show) | Show one decision with its policies |
| [`actual adr create`](#actual-adr-create) | Save a decision to Actual AI, from a local file or from flags |
| [`actual adr update`](#actual-adr-update) | Change a decision's title, context, policies, levels or scope |
| [`actual adr publish`](#actual-adr-publish) | Publish a draft decision so it governs |
| [`actual adr unpublish`](#actual-adr-unpublish) | Move an active decision back to draft |
| [`actual adr delete`](#actual-adr-delete) | Archive an active decision or a draft, as Delete does in the web app (`restore` undoes it) |
| [`actual adr restore`](#actual-adr-restore) | Restore an archived decision |
| [`actual adr accept`](#actual-adr-accept) | Accept a suggestion |
| [`actual adr reject`](#actual-adr-reject) | Reject a suggestion, with a reason |

## actual adr new

Write a decision into docs/adr/ and its rule file into .actual/rules/

```bash theme={null}
actual adr new [OPTIONS] <TITLE>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<TITLE>` | The decision's title, on one line |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--context <POINT>` | | Why the decision is needed: one point per flag |
| `--policy <POLICY>` | | A policy as `LEVEL: statement`, one per flag. LEVEL is MUST, MUST NOT, SHOULD, SHOULD NOT or MAY |
| `--deciders <NAMES>` | | Who made the decision, for the decision's Deciders line |
| `--scope <GLOB>` | | A path the decision applies to, relative to the repository root, one per flag; a leading `!` excludes. Leave it out for the whole repository |
| `--status <STATUS>` | | `accepted` governs at once; `draft` is read by no check. Defaults to accepted at a terminal and draft when no person is at one. One of `accepted`, `draft`. |
| `--root <PATH>` | | Repository root to write into. Defaults to the current directory |
| `--json` | | Print the files written as JSON |

## actual adr check

Check decision files with Actual AI's save rules and list likely duplicates

```bash theme={null}
actual adr check [OPTIONS] [FILE]...
```

**Arguments**

| Argument | What it does |
| - | - |
| `[FILE]...` | Decision files to check. Defaults to every file under docs/adr/ that carries an ADR header |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--no-cloud` | | Compare only with this repository's files, not with your decisions in Actual AI, even when signed in |
| `--repo <REPO>` | | Connected repository to compare with: its name, owner/name or id. Defaults to the one the working tree's origin remote names |
| `--root <PATH>` | | Repository root to read. Defaults to the current directory |
| `--json` | | Print the result as JSON |

## actual adr list

List your organization's decisions

```bash theme={null}
actual adr list [OPTIONS]
```

**Options**

| Option | Default | What it does |
| - | - | - |
| `--repo <REPO>` | | Connected repository: its name, owner/name or id. Defaults to the one the working tree's origin remote names, else the whole organization |
| `--state <STATE>` | | Only decisions in this list of the web app's decisions page. One of `active`, `draft`, `suggested`, `updated`, `archived`. |
| `--limit <LIMIT>` | `50` | Decisions per page, 1 to 200 |
| `--offset <OFFSET>` | `0` | Decisions to skip, for the next page |
| `--json` | | Print the result as JSON |

## actual adr show

Show one decision with its policies

```bash theme={null}
actual adr show [OPTIONS] <ID>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<ID>` | The decision's id, as `actual adr list` prints it |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--json` | | Print the result as JSON |

## actual adr create

Save a decision to Actual AI, from a local file or from flags

```bash theme={null}
actual adr create [OPTIONS] <--file <PATH>|--title <TITLE>>
```

**Options**

| Option | Default | What it does |
| - | - | - |
| `--file <PATH>` | | A decision file to push, such as one `actual adr new` wrote. Its pair is renamed to the file names Actual AI's sync uses for the new decision |
| `--title <TITLE>` | | The decision's title, when it isn't sent from a file |
| `--context <POINT>` | | Why the decision is needed: one point per flag |
| `--policy <POLICY>` | | A policy as `LEVEL: statement`, one per flag. LEVEL is MUST, MUST NOT, SHOULD, SHOULD NOT or MAY |
| `--status <STATUS>` | | `accepted` governs at once; `draft` waits for `actual adr publish`. Defaults to accepted at a terminal and draft when no person is at one. One of `accepted`, `draft`. |
| `--repo <REPO>` | | Connected repository: its name, owner/name or id. Defaults to the one the working tree's origin remote names |
| `--allow-duplicate` | | Send it even if the repository has decisions that look the same |
| `--json` | | Print the result as JSON |

## actual adr update

Change a decision's title, context, policies, levels or scope

```bash theme={null}
actual adr update [OPTIONS] <--title <TITLE>|--context <POINT>|--policy <POLICY>|--level <ID=LEVEL>|--scope <GLOB>|--clear-scope> <ID>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<ID>` | The decision's id, as `actual adr list` prints it |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--title <TITLE>` | | A new title |
| `--context <POINT>` | | A new context, one point per flag; replaces the old one |
| `--policy <POLICY>` | | The whole policy list after the change, one `LEVEL: statement` per flag. Prefix a policy's id and `=` to keep it (`<id>=MUST: …`); a new policy has no id, and a policy you leave out is removed |
| `--level <ID=LEVEL>` | | Change one policy's level, as `<policy id>=LEVEL`, one per flag |
| `--scope <GLOB>` | | The paths the decision applies to after the change, one per flag; a leading `!` excludes |
| `--clear-scope` | | Apply the decision to its whole root again |
| `--json` | | Print the result as JSON |

## actual adr publish

Publish a draft decision so it governs

```bash theme={null}
actual adr publish [OPTIONS] <ID>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<ID>` | The decision's id, as `actual adr list` prints it |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--json` | | Print the result as JSON |

## actual adr unpublish

Move an active decision back to draft

```bash theme={null}
actual adr unpublish [OPTIONS] <ID>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<ID>` | The decision's id, as `actual adr list` prints it |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--json` | | Print the result as JSON |

## actual adr delete

Archive an active decision or a draft, as Delete does in the web app (`restore` undoes it)

```bash theme={null}
actual adr delete [OPTIONS] <ID>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<ID>` | The decision's id, as `actual adr list` prints it |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--json` | | Print the result as JSON |

## actual adr restore

Restore an archived decision

```bash theme={null}
actual adr restore [OPTIONS] <ID>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<ID>` | The decision's id, as `actual adr list` prints it |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--json` | | Print the result as JSON |

## actual adr accept

Accept a suggestion

```bash theme={null}
actual adr accept [OPTIONS] <ID>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<ID>` | The decision's id, as `actual adr list` prints it |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--json` | | Print the result as JSON |

## actual adr reject

Reject a suggestion, with a reason

```bash theme={null}
actual adr reject [OPTIONS] --reason <TEXT> <ID>
```

**Arguments**

| Argument | What it does |
| - | - |
| `<ID>` | The suggestion's id, as `actual adr list` prints it |

**Options**

| Option | Default | What it does |
| - | - | - |
| `--reason <TEXT>` | | Why it was rejected, saved with the decision: up to 10,000 characters |
| `--json` | | Print the result as JSON |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.