
# The `tartan` CLI reference

_For tartan 0.9.36._

Generated by `tartan docs` from `tartan 0.9.36 (16340da58d8948577733c0bec781ff9e8a88fc5a)`: this binary's own commands. Run `tartan help --json` for the same in JSON, and `tartan version --server` to check that this CLI matches your control.

## How to read an answer

Every command takes `--json` and answers `{ok, result, error, code}` on stdout; the words go to stderr. Exit codes:

| Code | Means |
|---|---|
| 0 | ok |
| 1 | other or usage |
| 2 | refused: the step-up was refused, the session or device is over, a request counter was refused (another process on the profile), or a check stopped it |
| 3 | pending: an approval holds it (result names the approval) |
| 4 | not found, or this CLI is older than control |
| 5 | conflict |

## Where a person acts

A command whose **Steps up** is `always` (or `some`) asks the person for their passkey (a passkey prompt), bound to that exact write. An AI runs the command, tells the person in words what the prompt approves, and waits: it never holds, makes or touches a passkey. **Person acts** says what the person does by hand.

## Flags every table verb takes

Besides its own flags, every command of control's verb table (not the local ones) takes these:

| Flag | Type | Required | What |
|---|---|---|---|
| `--dry-run` | bool | no | validate and show the change without committing it |
| `--help` | bool | no | describe this verb (with --json: machine-readable) |
| `--idempotency-key` | string | no | make a write safe to retry |
| `--json` | bool | no | compact JSON output (the stable schema) |
| `--profile` | string | no | a network profile (tartan profile init + login): use the admin API as a signed-in user |
| `--socket` | string | no | the instance operator's admin socket |
| `--sso-token` | string | no | **Secret:** the person's own, never filled in by an AI. a fresh access token from your organization for a step-up, or @file |

## Commands

- [`acceptance`](acceptance.md): `acceptance list`
- [`admin-device`](admin-device.md): `admin-device approve`, `admin-device list`, `admin-device outside`, `admin-device revoke`
- [`approval`](approval.md): `approval approve`, `approval approve-pair`, `approval deny`, `approval deny-pair`, `approval list`, `approval pairs`
- [`audit`](audit.md): `audit export`, `audit query`, `audit span`, `audit verify`
- [`batch`](batch.md): `batch run`
- [`bug`](bug.md): `bug collect`, `bug guide`, `bug list`, `bug show`, `bug submit`, `bug withdraw`
- [`ca`](ca.md): `ca show`
- [`code`](code.md): `code create`, `code list`, `code revoke`
- [`device`](device.md): `device approve`, `device deny`, `device forget`, `device forgotten`, `device list`, `device reap`, `device release`, `device restore`, `device resume`, `device revoke`, `device set`, `device show`, `device suspend`
- [`docs`](docs.md): `docs`
- [`doctor`](doctor.md): `doctor run`
- [`edge`](edge.md): `edge converge`, `edge ignition`, `edge list`, `edge placements`, `edge plan`, `edge restart`, `edge site-node fetch`, `edge site-node show`
- [`egress`](egress.md): `egress activate`, `egress arm`, `egress catalog`, `egress catalog-add`, `egress deactivate`, `egress declare`, `egress list`, `egress scope set`, `egress show`
- [`fwzone`](fwzone.md): `fwzone add`, `fwzone list`, `fwzone remove`, `fwzone set`
- [`grant`](grant.md): `grant accept`, `grant deny`, `grant intake allow`, `grant intake remove`, `grant intake set`, `grant intake show`, `grant list`, `grant offer`, `grant pending`, `grant revoke`, `grant show`, `grant use`
- [`group`](group.md): `group add`, `group create`, `group delete`, `group describe`, `group list`, `group remove`, `group set`, `group show`
- [`help`](help.md): `help`
- [`idp`](idp.md): `idp trust add`, `idp trust list`, `idp trust remove`
- [`join`](join.md): `join`
- [`login`](login.md): `login`
- [`me`](me.md): `me show`
- [`name`](name.md): `name list`, `name remove`, `name set`
- [`nat`](nat.md): `nat add`, `nat list`, `nat remove`, `nat set`
- [`org`](org.md): `org create`, `org delete`, `org deletion`, `org export`, `org nat-prefix add`, `org overview`, `org register`, `org rename`, `org ring`, `org set`, `org settings`, `org setup`, `org show`, `org sso-off`, `org suspend`, `org v4 add`, `org zone-ds`
- [`owner`](owner.md): `owner bind`, `owner emergency-key show`, `owner unbind`
- [`partner`](partner.md): `partner admit`, `partner list`, `partner show`
- [`people`](people.md): `people list`
- [`posture`](posture.md): `posture set`, `posture show`
- [`profile`](profile.md): `profile init`, `profile list`, `profile remove`, `profile set`, `profile show`
- [`release`](release.md): `release override drop`, `release rings`, `release status`, `release suppress`, `release unsuppress`
- [`role`](role.md): `role bind`, `role list`, `role unbind`
- [`rule`](rule.md): `rule add`, `rule list`, `rule remove`
- [`session`](session.md): `session add`, `session end`, `session lock`
- [`signup`](signup.md): `signup`
- [`site`](site.md): `site add`, `site list`, `site set`
- [`skill`](skill.md): `skill export`, `skill show`
- [`sso`](sso.md): `sso check`, `sso consent`
- [`tech`](tech.md): `tech approve`, `tech list`, `tech release`, `tech revoke`, `tech unblock`
- [`trust`](trust.md): `trust show`
- [`user`](user.md): `user add-device`, `user invite`, `user invite list`, `user invite renew`, `user invite revoke`, `user join list`, `user list`, `user passkey list`, `user passkey remove`, `user remove`
- [`version`](version.md): `version`
- [`zone`](zone.md): `zone show`, `zone tls renew`, `zone tls status`
