Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI reference

Every gd command and option, as printed by --help. For a task-by-task guide, start with Try it in 5 minutes; for git equivalents, see Coming from git.

gd clone

Create a workspace and check out a ref (lazily, and sparsely with --path)

Usage: gd clone [OPTIONS] <SERVER> <DIR>

Arguments:
  <SERVER>
  <DIR>

Options:
      --ref <REF_NAME>     [default: main]
      --token <TOKEN>      Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --path <PATHS>       Only materialise these paths (repeatable)
      --objects <OBJECTS>  Fetch objects through a node daemon or regional cache [env: GD_OBJECTS=]
  -h, --help               Print help
  -V, --version            Print version

gd status

Show working-copy changes

Usage: gd status [OPTIONS] [PATHS]...

Arguments:
  [PATHS]...

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd commit

Create a changeset on the server from working-copy changes (all, or PATHS)

Usage: gd commit [OPTIONS] --message <MESSAGE> [PATHS]...

Arguments:
  [PATHS]...

Options:
  -m, --message <MESSAGE>
      --token <TOKEN>      Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help               Print help
  -V, --version            Print version

gd land

Land the committed work on the ref (server-side rebase + atomic ref update). Several commits land one after another, each on the one before

Usage: gd land [OPTIONS]

Options:
      --squash         Land every commit since the last land as one change
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd sync

Update the working copy to the ref head (or REV)

Usage: gd sync [OPTIONS] [REV]

Arguments:
  [REV]

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd checkout

Switch to a ref or changeset; -b creates a ref at the current base

Usage: gd checkout [OPTIONS] <TARGET>

Arguments:
  <TARGET>

Options:
  -b
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd log

Changeset history (server-side; no local history needed)

Usage: gd log [OPTIONS] [PATH]

Arguments:
  [PATH]  Limit to a path

Options:
      --rev <REV>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -n, --limit <LIMIT>    [default: 20]
      --oneline
      --agent [<AGENT>]  Only what agents landed; with a name, only that agent's (`--agent fix-01`)
      --model <MODEL>    Only changes written with this model (its `Model:` trailer contains MODEL)
  -h, --help             Print help
  -V, --version          Print version

gd diff

Diff the working copy, or two revisions (`gd diff A B`)

Usage: gd diff [OPTIONS] [REVS]...

Arguments:
  [REVS]...

Options:
      --name-only
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd show

Show a changeset and its patch against its first parent

Usage: gd show [OPTIONS] [REV]

Arguments:
  [REV]

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd cat

Print a file at a revision without checking anything out

Usage: gd cat [OPTIONS] <REV> <PATH>

Arguments:
  <REV>
  <PATH>

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd lock

Lock files for exclusive editing (for files that cannot be merged). Others cannot land changes to them until you unlock

Usage: gd lock [OPTIONS] <PATHS>...

Arguments:
  <PATHS>...

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd unlock

Release your locks; --force releases someone else's (needs write access)

Usage: gd unlock [OPTIONS] <PATHS>...

Arguments:
  <PATHS>...

Options:
      --force
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd locks

List locks, optionally under a directory

Usage: gd locks [OPTIONS] [PREFIX]

Arguments:
  [PREFIX]  [default: ""]

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd ls

List a directory at a revision without checking anything out

Usage: gd ls [OPTIONS] <REV> [PATH]

Arguments:
  <REV>
  [PATH]  [default: ""]

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd find

Find files by path substring at a revision (server-side)

Usage: gd find [OPTIONS] <PATTERN>

Arguments:
  <PATTERN>

Options:
      --rev <REV>      [default: main]
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version
Search the code on the server: every word (3+ characters) or "phrase", with path:DIR, -path:DIR and lang:rs to narrow it. Answered from the server's index; no clone needed

Usage: gd search [OPTIONS] [QUERY]...

Arguments:
  [QUERY]...

Options:
      --rev <REV>      [default: main]
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -n, --limit <LIMIT>  Files to show [default: 20]
  -l, --files-only     Only the paths of matching files
  -h, --help           Print help
  -V, --version        Print version

gd symbol

Where a function, type or class is defined (by name or how it starts)

Usage: gd symbol [OPTIONS] <NAME>

Arguments:
  <NAME>

Options:
      --rev <REV>      [default: main]
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd blame

Show which changeset last changed each line of a file

Usage: gd blame [OPTIONS] <PATH>

Arguments:
  <PATH>

Options:
      --rev <REV>      [default: main]
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd refs

List branches

Usage: gd refs [OPTIONS]

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd tag

Make a tag at a revision (default: your workspace's branch), or list tags. A tag is made once and never moves

Usage: gd tag [OPTIONS] [NAME]

Arguments:
  [NAME]  The tag, e.g. v1.2.0; none: list tags

Options:
      --at <AT>        What it names: a branch or change id
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd merge-base

Best common ancestor of two revisions

Usage: gd merge-base [OPTIONS] <A> <B>

Arguments:
  <A>
  <B>

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd import-git

Import a git repository's history

Usage: gd import-git [OPTIONS] <GIT_DIR>

Arguments:
  <GIT_DIR>

Options:
      --server <SERVER>
      --token <TOKEN>      Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --git-ref <GIT_REF>  [default: HEAD]
      --ref <REF_NAME>     [default: main]
      --force
  -h, --help               Print help
  -V, --version            Print version

gd mount

Mount a revision read-only; files are fetched on first read (Linux, macOS, Windows)

Usage: gd mount [OPTIONS] <DIR>

Arguments:
  <DIR>

Options:
      --server <SERVER>
      --token <TOKEN>        Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --objects <OBJECTS>    Daemon or cache serving objects
      --rev <REV>            [default: main]
      --cache-mb <CACHE_MB>  In-memory cache for file contents [default: 256]
      --serve-only           Serve the checkout over NFS on localhost and print the command that mounts it, instead of mounting (for machines where only an administrator may mount, or Linux machines without FUSE)
  -h, --help                 Print help
  -V, --version              Print version

gd mcp

Serve Grovedock as MCP tools over stdio for AI agents (Claude Code, Codex, Cursor...)

Usage: gd mcp [OPTIONS]

Options:
      --server <SERVER>

      --token <TOKEN>
          Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --http <ADDR>
          Serve the whole server to remote agents over HTTP at this address (e.g. 0.0.0.0:7430), instead of one workspace over stdio. Each request's bearer token is passed through to the server
      --allowed-host <ALLOWED_HOSTS>
          Host names clients use to reach the HTTP endpoint (repeatable); default: loopback only, against DNS rebinding
      --allowed-origin <ALLOWED_ORIGINS>
          Browser origins allowed to call the HTTP endpoint (repeatable), e.g. https://app.example.com:443; default: none (requests with an Origin are refused)
  -h, --help
          Print help
  -V, --version
          Print version

gd login

Sign in to a server from the browser; the token is saved in ~/.config/gd/credentials.json

Usage: gd login [OPTIONS] [SERVER]

Arguments:
  [SERVER]  The server, e.g. https://gd.example.com; default $GD_SERVER or the workspace's

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd logout

Revoke the token `gd login` saved for a server, and forget it

Usage: gd logout [OPTIONS] [SERVER]

Arguments:
  [SERVER]

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd whoami

Show who you are signed in as

Usage: gd whoami [OPTIONS] [SERVER]

Arguments:
  [SERVER]

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd repo

Create and list repositories on a server that hosts many (`grovedockd server --platform`)

Usage: gd repo [OPTIONS] <COMMAND>

Commands:
  create  Create OWNER/NAME. Then: `gd clone SERVER/OWNER/NAME`
  list    List repositories, optionally of one owner
  grant   Give a person, agent or team (ORG/TEAM) a role on a repository; `none` removes it. With only the repository, lists who has access
  help    Print this message or the help of the given subcommand(s)

Options:
      --token <TOKEN>  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help           Print help
  -V, --version        Print version

gd repo create

Create OWNER/NAME. Then: `gd clone SERVER/OWNER/NAME`

Usage: gd repo create [OPTIONS] <NAME>

Arguments:
  <NAME>

Options:
      --description <DESCRIPTION>  [default: ""]
      --token <TOKEN>              Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --server <SERVER>
  -h, --help                       Print help
  -V, --version                    Print version

gd repo list

List repositories, optionally of one owner

Usage: gd repo list [OPTIONS]

Options:
      --owner <OWNER>    [default: ""]
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --server <SERVER>
  -h, --help             Print help
  -V, --version          Print version

gd repo grant

Give a person, agent or team (ORG/TEAM) a role on a repository; `none` removes it. With only the repository, lists who has access

Usage: gd repo grant [OPTIONS] <REPO> [PRINCIPAL] [ROLE]

Arguments:
  <REPO>


  [PRINCIPAL]


  [ROLE]
          Possible values:
          - read
          - triage
          - write
          - maintain
          - admin
          - none:     Removes the member or grant

Options:
      --server <SERVER>


      --token <TOKEN>
          Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved

          [env: GD_TOKEN]

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

gd org

Organisations and their members

Usage: gd org [OPTIONS] <COMMAND>

Commands:
  list     Organisations you belong to (all of them, for site administrators)
  create   Create an organisation; you become its administrator. Site administrators only
  members  List an organisation's members and their roles
  member   Add a member, change their role, or remove them with `none`
  usage    The organisation's plan, limits and use: active agents this month, people, storage. Organisation administrators
  help     Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd org list

Organisations you belong to (all of them, for site administrators)

Usage: gd org list [OPTIONS]

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd org create

Create an organisation; you become its administrator. Site administrators only

Usage: gd org create [OPTIONS] <NAME>

Arguments:
  <NAME>

Options:
      --description <DESCRIPTION>  [default: ""]
      --server <SERVER>
      --token <TOKEN>              Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help                       Print help
  -V, --version                    Print version

gd org members

List an organisation's members and their roles

Usage: gd org members [OPTIONS] <ORG>

Arguments:
  <ORG>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd org member

Add a member, change their role, or remove them with `none`

Usage: gd org member [OPTIONS] <ORG> <LOGIN> <ROLE>

Arguments:
  <ORG>


  <LOGIN>


  <ROLE>
          Possible values:
          - read
          - triage
          - write
          - maintain
          - admin
          - none:     Removes the member or grant

Options:
      --server <SERVER>


      --token <TOKEN>
          Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved

          [env: GD_TOKEN]

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

gd org usage

The organisation's plan, limits and use: active agents this month, people, storage. Organisation administrators

Usage: gd org usage [OPTIONS] <ORG>

Arguments:
  <ORG>

Options:
      --month <MONTH>    A past month, YYYY-MM (default: this month, UTC) [default: ""]
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd team

Teams within an organisation, for granting access to many people at once

Usage: gd team [OPTIONS] <COMMAND>

Commands:
  list    List an organisation's teams
  set     Create a team, or replace its members: `gd team set lumen/platform --member mira`
  delete  Delete a team and its grants
  help    Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd team list

List an organisation's teams

Usage: gd team list [OPTIONS] <ORG>

Arguments:
  <ORG>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd team set

Create a team, or replace its members: `gd team set lumen/platform --member mira`

Usage: gd team set [OPTIONS] <TEAM>

Arguments:
  <TEAM>  ORG/TEAM

Options:
      --member <MEMBERS>  A member of the organisation (repeatable)
      --server <SERVER>
      --token <TOKEN>     Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --name <NAME>       [default: ""]
  -h, --help              Print help
  -V, --version           Print version

gd team delete

Delete a team and its grants

Usage: gd team delete [OPTIONS] <TEAM>

Arguments:
  <TEAM>  ORG/TEAM

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd cr

Change requests: propose a branch, review it, land it

Usage: gd cr [OPTIONS] <COMMAND>

Commands:
  create      Propose a branch for landing on another: `gd cr create --title "…"`
  list        List change requests
  view        Show one, with what still blocks it
  comment     Comment, on the change or on a line of a file
  review      Approve, request changes, or comment
  check       Report a CI check on the current version: `gd cr check 12 build passed --url …`
  land        Land it, once nothing blocks it
  rebase      Replay it on the target's tip; files both changed merge line by line
  conflicts   Where it clashes with its target: each file's merge, with conflict markers. `--write DIR` saves them as DIR/PATH to edit, for `gd cr resolve --from DIR`
  undo-agent  Undo everything an agent landed on a branch since a time, as one change request. Later edits by people stay where they don't overlap; files where they do are left and listed
  resolve     Settle its clashes: each clashing file is read from DIR/PATH (markers removed), then the branch is replayed on the target's tip
  ready       Mark a draft ready for review
  close
  reopen
  help        Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd cr create

Propose a branch for landing on another: `gd cr create --title "…"`

Usage: gd cr create [OPTIONS] --title <TITLE>

Options:
      --server <SERVER>        The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --title <TITLE>
      --token <TOKEN>          Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --body <BODY>            [default: ""]
      --source <SOURCE>        The branch to land; defaults to the workspace's branch
      --target <TARGET>        Where to land it; defaults to the repository's default branch [default: ""]
      --draft
      --reviewer <REVIEWERS>   Ask someone to review (repeatable)
      --upstream <OWNER/NAME>  Propose it to the repository this one was forked from (OWNER/NAME); reading that repository is enough
  -h, --help                   Print help
  -V, --version                Print version

gd cr list

List change requests

Usage: gd cr list [OPTIONS]

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --state <STATE>    [default: open] [possible values: open, draft, landed, closed, all]
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --author <AUTHOR>  Only this author; `agent/*` for every agent [default: ""]
  -q, --query <QUERY>    Search, e.g. `is:ready reviewer:@me into:main tax` [default: ""]
      --limit <LIMIT>    How many to show (at most 200); the total is printed after [default: 50]
  -h, --help             Print help
  -V, --version          Print version

gd cr view

Show one, with what still blocks it

Usage: gd cr view [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd cr comment

Comment, on the change or on a line of a file

Usage: gd cr comment [OPTIONS] --message <MESSAGE> <NUMBER>

Arguments:
  <NUMBER>

Options:
  -m, --message <MESSAGE>
      --server <SERVER>    The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>      Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --path <PATH>
      --line <LINE>
  -h, --help               Print help
  -V, --version            Print version

gd cr review

Approve, request changes, or comment

Usage: gd cr review [OPTIONS] <NUMBER> <VERDICT>

Arguments:
  <NUMBER>


  <VERDICT>
          Possible values:
          - approve
          - changes: Request changes
          - comment

Options:
  -m, --message <MESSAGE>
          [default: ""]

      --server <SERVER>
          The repository, SERVER/OWNER/NAME; defaults to the workspace's

      --token <TOKEN>
          Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved

          [env: GD_TOKEN]

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

gd cr check

Report a CI check on the current version: `gd cr check 12 build passed --url …`

Usage: gd cr check [OPTIONS] <NUMBER> <NAME> <STATE>

Arguments:
  <NUMBER>
  <NAME>
  <STATE>   [possible values: pending, passed, failed, skipped]

Options:
      --server <SERVER>    The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>      Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --url <URL>          [default: ""]
      --summary <SUMMARY>  [default: ""]
  -h, --help               Print help
  -V, --version            Print version

gd cr land

Land it, once nothing blocks it

Usage: gd cr land [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd cr rebase

Replay it on the target's tip; files both changed merge line by line

Usage: gd cr rebase [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd cr conflicts

Where it clashes with its target: each file's merge, with conflict markers. `--write DIR` saves them as DIR/PATH to edit, for `gd cr resolve --from DIR`

Usage: gd cr conflicts [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --write <WRITE>
  -h, --help             Print help
  -V, --version          Print version

gd cr undo-agent

Undo everything an agent landed on a branch since a time, as one change request. Later edits by people stay where they don't overlap; files where they do are left and listed

Usage: gd cr undo-agent [OPTIONS] --since <SINCE> <AGENT>

Arguments:
  <AGENT>  The agent, e.g. agent/acme-claude (or just acme-claude)

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --since <SINCE>    How far back: 30m, 2h, 1d, or a UTC time like 2026-10-20 or "2026-10-20 14:05"
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --target <TARGET>  The branch (default: the default branch) [default: ""]
      --dry-run          Only say what it would undo
  -h, --help             Print help
  -V, --version          Print version

gd cr resolve

Settle its clashes: each clashing file is read from DIR/PATH (markers removed), then the branch is replayed on the target's tip

Usage: gd cr resolve [OPTIONS] --from <FROM> <NUMBER>

Arguments:
  <NUMBER>

Options:
      --from <FROM>
      --server <SERVER>   The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>     Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --delete <DELETES>  Settle a clash by deleting the file (repeatable)
  -h, --help              Print help
  -V, --version           Print version

gd cr ready

Mark a draft ready for review

Usage: gd cr ready [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd cr close

Usage: gd cr close [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd cr reopen

Usage: gd cr reopen [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd issue

Issues: work to do, assigned to people or agents; "fixes #N" in a change request closes one when it lands

Usage: gd issue [OPTIONS] <COMMAND>

Commands:
  create   Open an issue
  list
  view
  comment
  assign   Give an issue to people or agents (replaces the assignees)
  close    Close an issue as done (or `--not-planned`)
  reopen
  help     Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd issue create

Open an issue

Usage: gd issue create [OPTIONS] --title <TITLE>

Options:
      --server <SERVER>       The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --title <TITLE>
      --token <TOKEN>         Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --body <BODY>           [default: ""]
      --assignee <ASSIGNEES>  Who should work on it, a person or an agent (repeatable)
      --label <LABELS>
  -h, --help                  Print help
  -V, --version               Print version

gd issue list

Usage: gd issue list [OPTIONS]

Options:
      --server <SERVER>      The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --state <STATE>        [default: open] [possible values: open, closed, all]
      --token <TOKEN>        Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --assignee <ASSIGNEE>  [default: ""]
      --label <LABEL>        [default: ""]
  -q, --query <QUERY>        Search, e.g. `coupon label:bug assignee:@me -label:wontfix` [default: ""]
      --limit <LIMIT>        How many to show (at most 200); the total is printed after [default: 50]
  -h, --help                 Print help
  -V, --version              Print version

gd issue view

Usage: gd issue view [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd issue comment

Usage: gd issue comment [OPTIONS] --message <MESSAGE> <NUMBER>

Arguments:
  <NUMBER>

Options:
  -m, --message <MESSAGE>
      --server <SERVER>    The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>      Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help               Print help
  -V, --version            Print version

gd issue assign

Give an issue to people or agents (replaces the assignees)

Usage: gd issue assign [OPTIONS] <NUMBER> [ASSIGNEES]...

Arguments:
  <NUMBER>
  [ASSIGNEES]...

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd issue close

Close an issue as done (or `--not-planned`)

Usage: gd issue close [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --not-planned
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd issue reopen

Usage: gd issue reopen [OPTIONS] <NUMBER>

Arguments:
  <NUMBER>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd release

Releases: a tag with notes written from what landed, and files

Usage: gd release [OPTIONS] <COMMAND>

Commands:
  list
  view      A release (`latest` for the newest that isn't a pre-release)
  notes     Notes for a release from what landed since the previous one, and the version that fits
  create    Release a tag, making it at `--at` if it doesn't exist. Notes are written from what landed unless `--notes` or `--notes-file` gives them
  publish   Publish a draft: it's dated now and announced
  edit
  upload    Attach files (a file of the same name is replaced)
  download  Download a release's files into a folder (default: here)
  link      A link that downloads one file for ten minutes without signing in (for curl, CI, a browser)
  detach    Remove a file from a release
  delete    Delete a release; its tag stays. Published releases: administrators only
  help      Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd release list

Usage: gd release list [OPTIONS]

Options:
      --limit <LIMIT>    [default: 30]
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd release view

A release (`latest` for the newest that isn't a pre-release)

Usage: gd release view [OPTIONS] [TAG]

Arguments:
  [TAG]  [default: latest]

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd release notes

Notes for a release from what landed since the previous one, and the version that fits

Usage: gd release notes [OPTIONS] [TAG]

Arguments:
  [TAG]  The tag being released; it needn't exist yet [default: ""]

Options:
      --at <AT>          Where the release will be: a branch or change id (default: the default branch) [default: ""]
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --since <SINCE>    Notes since this tag (default: the latest published release) [default: ""]
  -h, --help             Print help
  -V, --version          Print version

gd release create

Release a tag, making it at `--at` if it doesn't exist. Notes are written from what landed unless `--notes` or `--notes-file` gives them

Usage: gd release create [OPTIONS] <TAG>

Arguments:
  <TAG>

Options:
      --at <AT>                  [default: ""]
      --server <SERVER>          The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>            Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --title <TITLE>            [default: ""]
      --notes <NOTES>
      --notes-file <NOTES_FILE>
      --draft                    Keep it to people who can write until `gd release publish`
      --prerelease
      --file <FILES>             Files to attach (repeatable)
  -h, --help                     Print help
  -V, --version                  Print version

gd release publish

Publish a draft: it's dated now and announced

Usage: gd release publish [OPTIONS] <TAG>

Arguments:
  <TAG>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd release edit

Usage: gd release edit [OPTIONS] <TAG>

Arguments:
  <TAG>

Options:
      --server <SERVER>          The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --title <TITLE>
      --token <TOKEN>            Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --notes <NOTES>
      --notes-file <NOTES_FILE>
      --prerelease <PRERELEASE>  [possible values: true, false]
  -h, --help                     Print help
  -V, --version                  Print version

gd release upload

Attach files (a file of the same name is replaced)

Usage: gd release upload [OPTIONS] <TAG> [FILES]...

Arguments:
  <TAG>
  [FILES]...

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd release download

Download a release's files into a folder (default: here)

Usage: gd release download [OPTIONS] <TAG>

Arguments:
  <TAG>

Options:
      --name <NAME>      Only this file
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --dir <DIR>        [default: .]
  -h, --help             Print help
  -V, --version          Print version
A link that downloads one file for ten minutes without signing in (for curl, CI, a browser)

Usage: gd release link [OPTIONS] <TAG> <NAME>

Arguments:
  <TAG>
  <NAME>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd release detach

Remove a file from a release

Usage: gd release detach [OPTIONS] <TAG> <NAME>

Arguments:
  <TAG>
  <NAME>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd release delete

Delete a release; its tag stays. Published releases: administrators only

Usage: gd release delete [OPTIONS] <TAG>

Arguments:
  <TAG>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd runner

Runners: machines of yours that run Grovedock Runs jobs (CI) for an owner's repositories

Usage: gd runner [OPTIONS] <COMMAND>

Commands:
  register  Register this machine as a runner for an owner you administer, and save its key
  start     Take jobs and run them until stopped
  list      An owner's runners
  remove    Remove a runner: its key stops working at once
  help      Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>  The server (default: $GD_SERVER, or the workspace's)
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd runner register

Register this machine as a runner for an owner you administer, and save its key

Usage: gd runner register [OPTIONS] --owner <OWNER>

Options:
      --owner <OWNER>    Your account or an organisation you administer
      --server <SERVER>  The server (default: $GD_SERVER, or the workspace's)
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --name <NAME>      The runner's name (default: this machine's)
      --label <LABELS>   Labels besides those for this machine (OS, architecture), repeatable
      --outsiders        Also run outsiders' code (forks), once a maintainer approves it. Only on a machine that starts clean for every job
  -h, --help             Print help
  -V, --version          Print version

gd runner start

Take jobs and run them until stopped

Usage: gd runner start [OPTIONS]

Options:
      --name <NAME>      Which registered runner (default: the only one)
      --server <SERVER>  The server (default: $GD_SERVER, or the workspace's)
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --work <WORK>      Where jobs run (default: a folder beside the runner's settings)
      --once             Run one job, then stop
      --containers       Run every job in a fresh Linux container (Docker), removed when the job ends: nothing a job does stays on this machine. Jobs see this runner as Linux
      --image <IMAGE>    The image for jobs that don't name one, with --containers [default: buildpack-deps:bookworm]
      --cpus <CPUS>      CPUs each job's container may use, like 2 or 1.5
      --memory <MEMORY>  Memory each job's container may use, like 4g
  -h, --help             Print help
  -V, --version          Print version

gd runner list

An owner's runners

Usage: gd runner list [OPTIONS] --owner <OWNER>

Options:
      --owner <OWNER>
      --server <SERVER>  The server (default: $GD_SERVER, or the workspace's)
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd runner remove

Remove a runner: its key stops working at once

Usage: gd runner remove [OPTIONS] --owner <OWNER> <ID>

Arguments:
  <ID>

Options:
      --owner <OWNER>
      --server <SERVER>  The server (default: $GD_SERVER, or the workspace's)
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd secret

Secrets for Runs: only runs of code already on a protected branch get them

Usage: gd secret [OPTIONS] <COMMAND>

Commands:
  set     Set a secret from standard input (so it stays out of shell history), e.g. `gd secret set DEPLOY_KEY < key.txt`. Only runs of code on a protected branch get it
  list    The repository's secrets, by name (values are never shown)
  delete
  help    Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd secret set

Set a secret from standard input (so it stays out of shell history), e.g. `gd secret set DEPLOY_KEY < key.txt`. Only runs of code on a protected branch get it

Usage: gd secret set [OPTIONS] <NAME>

Arguments:
  <NAME>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd secret list

The repository's secrets, by name (values are never shown)

Usage: gd secret list [OPTIONS]

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd secret delete

Usage: gd secret delete [OPTIONS] <NAME>

Arguments:
  <NAME>

Options:
      --server <SERVER>  The repository, SERVER/OWNER/NAME; defaults to the workspace's
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd protect

Protected branches: changes land on them only through a reviewed change request

Usage: gd protect [OPTIONS] <COMMAND>

Commands:
  list    List protected branches
  set     Protect a branch or prefix (`main`, `release/*`)
  remove  Stop protecting a branch or prefix
  help    Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd protect list

List protected branches

Usage: gd protect list [OPTIONS]

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd protect set

Protect a branch or prefix (`main`, `release/*`)

Usage: gd protect set [OPTIONS] <PATTERN>

Arguments:
  <PATTERN>

Options:
      --approvals <APPROVALS>  Approvals needed before a change request lands [default: 1]
      --server <SERVER>
      --token <TOKEN>          Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --check <CHECKS>         A check that must pass (repeatable)
      --keep-stale             Keep approvals when the branch changes after them
      --agents-direct          Let agents land on it directly, without review
      --bypass <BYPASS>        Who may land without review: a login, a team `org/team`, or `admins` (repeatable)
      --rule <RULES>           Stricter review for some paths or for agents' changes: `[agents:]N[:path,path]`, e.g. `agents:2:auth` (two people approve when an agent changes auth/). Repeatable
      --test-before-landing    A change request landing by itself is first tested (Runs) as it would land, on the branch's current tip; the branch moves to exactly what passed
  -h, --help                   Print help
  -V, --version                Print version

gd protect remove

Stop protecting a branch or prefix

Usage: gd protect remove [OPTIONS] <PATTERN>

Arguments:
  <PATTERN>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd webhook

Webhooks: call a URL (CI, chat, trackers) when something happens in a repository

Usage: gd webhook [OPTIONS] <COMMAND>

Commands:
  list    A repository's webhooks: `gd webhook list lumen/fleet`
  add     Call URL when something happens in the repository. Prints the signing secret once
  ping    Send a ping now and show how it went
  log     Recent deliveries and their answers
  remove
  help    Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd webhook list

A repository's webhooks: `gd webhook list lumen/fleet`

Usage: gd webhook list [OPTIONS] <REPO>

Arguments:
  <REPO>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd webhook add

Call URL when something happens in the repository. Prints the signing secret once

Usage: gd webhook add [OPTIONS] <REPO> <URL>

Arguments:
  <REPO>
  <URL>

Options:
      --event <EVENTS>   Only these events (repeatable): push, change_request, review, comment, check, issue
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd webhook ping

Send a ping now and show how it went

Usage: gd webhook ping [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd webhook log

Recent deliveries and their answers

Usage: gd webhook log [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd webhook remove

Usage: gd webhook remove [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd token

Access tokens for you and for agents you answer for

Usage: gd token [OPTIONS] <COMMAND>

Commands:
  list    Your tokens
  create  Create a token. Prints it once: store it as GD_TOKEN
  revoke  Revoke a token by its id
  help    Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd token list

Your tokens

Usage: gd token list [OPTIONS]

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd token create

Create a token. Prints it once: store it as GD_TOKEN

Usage: gd token create [OPTIONS] <NAME>

Arguments:
  <NAME>


Options:
      --as <ACTS_AS>
          Act as an agent you answer for, e.g. `agent/refactor-07` (created if new)

      --server <SERVER>


      --token <TOKEN>
          Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved

          [env: GD_TOKEN]

      --repo <REPOSITORIES>
          Only these repositories, OWNER/NAME or OWNER/* for all of an organisation's (repeatable); default: all you can reach

      --role <ROLE>
          Highest role the token may use

          Possible values:
          - read
          - triage
          - write
          - maintain
          - admin
          - none:     Removes the member or grant

          [default: write]

      --days <DAYS>
          Days until it expires (1–366)

          [default: 90]

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

gd token revoke

Revoke a token by its id

Usage: gd token revoke [OPTIONS] <ID>

Arguments:
  <ID>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd admin

Server administration (site administrators only)

Usage: gd admin [OPTIONS] <COMMAND>

Commands:
  identity  Ways people sign in from a browser
  limits    Organisations' plans and limits (enforced with `grovedockd server --multi-tenant`)
  help      Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd admin identity

Ways people sign in from a browser

Usage: gd admin identity [OPTIONS] <COMMAND>

Commands:
  link  Let an identity sign in as an existing account, e.g. the first administrator: `gd admin identity link ada --provider email --subject ada@example.com`
  help  Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version
Let an identity sign in as an existing account, e.g. the first administrator: `gd admin identity link ada --provider email --subject ada@example.com`

Usage: gd admin identity link [OPTIONS] --provider <PROVIDER> --subject <SUBJECT> <LOGIN>

Arguments:
  <LOGIN>

Options:
      --provider <PROVIDER>  `email`, or a sign-in provider's id such as `google`
      --server <SERVER>
      --token <TOKEN>        Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --subject <SUBJECT>    The email address, or the provider's `sub` for the person
  -h, --help                 Print help
  -V, --version              Print version

gd admin limits

Organisations' plans and limits (enforced with `grovedockd server --multi-tenant`)

Usage: gd admin limits [OPTIONS] <COMMAND>

Commands:
  show     The limits that apply to an organisation and what it uses
  set      Change some limits; the others stay. A number, or `unlimited`
  suspend  Stop an organisation writing (it can still read)
  restore  Let a suspended organisation write again
  help     Print this message or the help of the given subcommand(s)

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd admin limits show

The limits that apply to an organisation and what it uses

Usage: gd admin limits show [OPTIONS] <ORG>

Arguments:
  <ORG>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd admin limits set

Change some limits; the others stay. A number, or `unlimited`

Usage: gd admin limits set [OPTIONS] <ORG>

Arguments:
  <ORG>

Options:
      --seats <SEATS>
      --server <SERVER>
      --token <TOKEN>                  Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --agents <AGENTS>                Agents that land a change in a calendar month
      --storage <STORAGE>              e.g. 10GiB
      --private-repos <PRIVATE_REPOS>
      --rate <RATE>                    Calls a minute per person or agent, e.g. 300
      --plan <PLAN>                    The plan's name as people see it
  -h, --help                           Print help
  -V, --version                        Print version

gd admin limits suspend

Stop an organisation writing (it can still read)

Usage: gd admin limits suspend [OPTIONS] <ORG>

Arguments:
  <ORG>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd admin limits restore

Let a suspended organisation write again

Usage: gd admin limits restore [OPTIONS] <ORG>

Arguments:
  <ORG>

Options:
      --server <SERVER>
      --token <TOKEN>    Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
  -h, --help             Print help
  -V, --version          Print version

gd migrate

Move a repository from any git host to Grovedock: full history, and from GitHub, open pull requests (as change requests) and issues with their comments

Usage: gd migrate [OPTIONS] --to <TO> <FROM>

Arguments:
  <FROM>  Where it is now: any URL git can clone

Options:
      --to <TO>
          Where it goes: SERVER/OWNER/NAME
      --token <TOKEN>
          Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --github-token <GITHUB_TOKEN>
          For private GitHub repositories, and to avoid GitHub's rate limit. Prefer the GD_GITHUB_TOKEN (or GITHUB_TOKEN) environment variable or --github-token-file: a value given here is visible to other users of the machine (`ps`) [env: GD_GITHUB_TOKEN]
      --github-token-file <GITHUB_TOKEN_FILE>
          Read the GitHub token from this file
      --no-issues
          Skip issues
      --no-pull-requests
          Skip pull requests
      --github-api <GITHUB_API>
          GitHub Enterprise Server's API, e.g. https://github.example.com/api/v3
  -h, --help
          Print help
  -V, --version
          Print version

gd mirror

Keep a git repository (GitHub, GitLab, Bitbucket, any git remote) up to date with a branch: every landed change becomes the same git commit every time, pushed without force

Usage: gd mirror [OPTIONS] --to <TO>

Options:
      --to <TO>            Where to push: any URL git accepts. Credentials come from git (SSH keys or a credential helper)
      --token <TOKEN>      Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --server <SERVER>
      --rev <REV>          [default: main]
      --git-ref <GIT_REF>  [default: main]
      --dir <DIR>          The mirror's local copy (a bare git repository); defaults to the user cache
      --every <SECONDS>    Mirror again every SECONDS until interrupted; without it, mirror once and exit
  -h, --help               Print help
  -V, --version            Print version

gd export-git

Export the history to a git repository: merges included, and changes that came from git as their original commits

Usage: gd export-git [OPTIONS] <GIT_DIR>

Arguments:
  <GIT_DIR>

Options:
      --server <SERVER>
      --token <TOKEN>      Bearer token for the server ($GD_TOKEN); without one, the token `gd login` saved [env: GD_TOKEN]
      --rev <REV>          [default: main]
      --git-ref <GIT_REF>  [default: main]
  -h, --help               Print help
  -V, --version            Print version