tartan code
For tartan 0.9.36
tartannetworks.com/docs/cli/code.mdtartan code create
mint a join code (shown once); a Tech mints device codes with tech_mintable groups only
tartan code create --org <string> --kind <string>
Role: tech · Writes: yes · Steps up: always · Batch: may share one passkey prompt
Person acts: passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words; it can share one passkey prompt with other writes (tartan batch run)
| Flag | Type | Required | What |
|---|---|---|---|
--org |
string | yes | org handle or id |
--kind |
string | yes | device | fleet | infra |
--groups |
list | no | the tags a device that joins with it gets |
--zone |
string | no | the zone a device that joins with it lands in (the org's default_zone if absent) |
--posture |
string | no | the posture label a device that joins with it gets |
--profiles |
list | no | the port profiles a device that joins with it gets (a zone that takes them) |
--cap |
int | no | fleet device cap |
--ttl |
duration | no | how long the code lives, in hours or minutes (168h, 30m; not 7d): device 24h by default, at most 168h; fleet 168h, at most 720h; infra always 1h |
--require_approval |
bool | no | a device that joins with it waits for device approve before it gets its certificate |
--bound_kind |
string | no | infra: the edge kind |
--bound_name |
string | no | infra: the node name |
--bound_site |
string | no | infra, gateways only (required): the site's id or name |
--ring |
string | no | device or fleet: the update ring the device enrols in: canary | early | main | late (default = main; none = the device follows the org's ring) (Owner or Admin; its own step-up) |
--claims_reservations |
bool | no | device or fleet (Owner or Admin): the device takes the reservation for its reported hostname: its address, zone and profiles |
--on_miss |
string | no | with claims_reservations: a hostname with no reservation is refused (refuse, the default) or gets the next free address and is flagged (allocate) |
tartan code list
the org's codes (hashes only)
tartan code list --org <string>
Role: tech · Writes: no · Steps up: never
| Flag | Type | Required | What |
|---|---|---|---|
--org |
string | yes | org handle or id |
tartan code revoke
revoke a code by its value or its hash (12+ characters, as code list shows it)
tartan code revoke --org <string>
Role: tech · Writes: yes · Steps up: always · Dry run: --dry-run · Batch: may share one passkey prompt
Person acts: passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words; it can share one passkey prompt with other writes (tartan batch run)
| Flag | Type | Required | What |
|---|---|---|---|
--org |
string | yes | org handle or id |
--code |
string | no | the code itself, as it was shown once |
--hash |
string | no | the code's hash or a unique prefix of 12+ characters |