Command references by family, grouped by what they are for:
| Group | Pages |
|---|---|
| Deploy | setup, service, join |
| Administer | administration, sessions, trust, diagnostics |
| Use | client, access, protocols, delegation |
This page lists every command with a link to its reference.
Examples use catalog ids such as prod-db; substitute your own resource names.
Use resources published in your deployment; the examples do not create them.
One binary, gdsgate on Linux and gdsgate.exe on Windows, runs every service
role and every client command, selected by subcommand. Platform differences are
noted on each command's page. A global --config <PATH> applies to all commands
and overrides the loopback dev defaults.
gdsgate [--config <PATH>] <command> [args...]Output convention:
- stdout carries data the caller may pipe or capture:
lstables, generated config fragments, byte streams, certificate PEMs. -
stderr carries status and logs. A client command prints status lines there (
→in progress,✓done,#a note,✗a failure):text ✓ authenticated as alex@acme.io (group: sre) ✓ certificate issued · ttl 5m · db-prod # connected · session a1f7… · recordingOn a terminal the lines carry glyphs and colour. Off a terminal (a
ProxyCommand, a pipe, CI) they are plain ASCII without colour.NO_COLORalso disables colour.proxy-sshputs only the SSH byte stream on stdout.-q/--quietsilences status lines; failures still print.
Diagnostic logs (tracing events) are filtered with RUST_LOG. A client
command defaults to warn; the services default to warn,gdsgate=info. A set
RUST_LOG replaces the default:
RUST_LOG=gdsgate_proxy=debug,gdsgate=info,warn gdsgate --config proxy.toml proxy
RUST_LOG=debug gdsgate ssh db-prod # raise a client command's logs for debuggingGlobal flags
| Flag | Purpose |
|---|---|
--config <PATH> |
Path to the TOML cluster-configuration file. A file named here must exist; a missing file fails the command. Without the flag a client command reads ~/.gdsgate/config.toml (%USERPROFILE%\.gdsgate\config.toml on Windows), the file gdsgate connect writes, and uses the loopback dev profile when it is absent. A service (authority, proxy, connector, all) does not read that file. GDSGATE_* environment overrides apply either way. |
--as <grant-id> |
Narrow this session to a delegation grant you own: access is your rights ∩ the grant's capabilities ∩ the session's resource, checked on every operation. After the grant is revoked or expires, the next operation is refused. -L / -R need ssh:forward@<host> and -A needs ssh:agent@<host>; ssh:connect includes neither. See gdsgate delegate. |
--no-remediate |
On an access denial that step-up or an access request could resolve, report it without offering either. Implied when stdin or stderr is not a terminal. |
--step-up-factor <auto\|passkey\|totp> |
Factor for an inline step-up. Default auto, which prefers the passkey. |
--wait |
When a denial is curable only by a human approval, file the request and block until it is approved, then retry. No effect on a step-up-only denial. |
--wait-timeout <secs> |
How long --wait blocks before giving up. Default 600. |
--quiet, -q |
Silence the client status narration on stderr; failures still print. Command data on stdout is unaffected, and diagnostics remain available through RUST_LOG. |
--help, -h |
Print help for the current command. |
--version, -V |
Print the binary's version and exit. |
On a denied ssh, db login, or proxy command at a terminal, gdsgate offers
the matching step-up, or files a JIT access request, and retries. See
User guide → MFA & step-up. The
--no-remediate / --step-up-factor / --wait flags above tune that.
Service modes
Each entry links to its full reference.
gdsgate authority
--route <auto|gateway|certificate|emergency|store>
--operator <NAME>
gdsgate authority bootstrap-admin --output-dir <DIR> [--ttl <secs>] [--if-missing]
gdsgate authority bootstrap-provisioner --output-dir <DIR> [--token <TOKEN>] [--if-missing]
gdsgate authority create-token --role {proxy|connector|admin|workload|provisioner|agent-host} [--ttl <secs>]
gdsgate authority rotate-ca
gdsgate authority rotate-onward-ca
gdsgate authority rotate-host-tls-ca
gdsgate authority rotate-spiffe-ca
gdsgate authority rotate-jwt-ca
gdsgate authority list-nodes
gdsgate authority list-offered
gdsgate authority list-scopes
gdsgate authority set-scope <prefix> --node <ID> --kind <KIND> --env <ENV>
gdsgate authority remove-scope <prefix>
gdsgate authority list-agents [--node <id>]
gdsgate authority set-agent <id> --node <id> --program <path> --can <capability>
gdsgate authority switch-agent <id> [--stop]
gdsgate authority remove-agent <id>
gdsgate authority revoke-node <id>
gdsgate authority delete-node <id>
gdsgate authority forget-user <subject>
gdsgate authority import-node --role <ROLE> --cert <PATH>
gdsgate authority list-workloads
gdsgate authority revoke-workload <spiffe-id>
gdsgate authority list-resources
gdsgate authority list-serving
gdsgate authority set-resource <id> --kind <KIND>
gdsgate authority remove-resource <id>
gdsgate authority activate --epoch <n>
gdsgate authority onward-ca-pub
gdsgate authority onward-ca-pubs
gdsgate authority init --profile <NAME> [--output <PATH>] [--store-url <URL>] [--control-keyring <REFERENCE>] [--audit-keyring <REFERENCE>] [--kms-key <NAME=KIND:COMMAND>] [--if-missing]
gdsgate authority set-profile --profile <NAME> --changed-by <NAME>
gdsgate authority init-anchor [--path <PATH>] [--if-missing] (deprecated)
Deprecated; see Deprecated key commands. See administration reference.
gdsgate authority init-revocation-key [--path <PATH>] [--if-missing] (deprecated)
Deprecated; see Deprecated key commands. See administration reference.
gdsgate authority init-approval-key [--path <PATH>] [--if-missing] (deprecated)
Deprecated; see Deprecated key commands. See administration reference.
gdsgate authority init-inventory-key [--path <PATH>] [--if-missing] (deprecated)
Deprecated; see Deprecated key commands. See administration reference.
gdsgate authority init-delegation-key [--path <PATH>] [--if-missing] (deprecated)
Deprecated; see Deprecated key commands. See administration reference.
gdsgate authority keys migrate-legacy
gdsgate authority verify-audit [--checkpoint-keys <FILE>] [--keyring <REFERENCE>]
gdsgate authority audit list [filters]
gdsgate authority migrate [--check]
gdsgate authority policy template
gdsgate authority policy validate [<FILE>] [-o <FILE>] [--rule-ids]
gdsgate authority policy pull [-o <FILE>] [--version <N>]
gdsgate authority policy history [--json]
gdsgate authority policy diff [<A>] [<B>] [--file <PATH>]
gdsgate authority policy revert <N> [--only <LIST>]
gdsgate authority policy review <N> | --pending <N> | --file <PATH>
gdsgate authority policy push <FILE>
gdsgate authority policy edit
gdsgate authority policy pending-edits
gdsgate authority policy approve-edit <version>
gdsgate authority policy reject-edit <version>
gdsgate authority recordings list [filters]
gdsgate authority recordings show <session_uid>
gdsgate authority recordings live <session_uid>
gdsgate proxy
See service reference.
gdsgate proxy init --domain <name>
See service reference.
gdsgate setup prepare --domain <name> --security-profile <profile>
See setup reference.
gdsgate setup change [--public-port <port>] [--serve <spec>]
See setup reference.
gdsgate setup restore [--list] [--checkpoint <name>]
See setup reference.
gdsgate setup check [--role client]
See setup reference.
gdsgate setup apply --bundle <dir>
See setup reference.
gdsgate connector
See service reference.
gdsgate connector recordings push [--dry-run]
See service reference.
gdsgate agent-host
See service reference.
gdsgate join <domain>
See join reference.
gdsgate all
See service reference.
gdsgate doctor
gdsgate config schema
gdsgate config check
gdsgate service install|uninstall <role>
See service reference.
gdsgate client-net
See service reference.
Client commands
See client reference.
gdsgate connect <host[:port]>
See client reference.
gdsgate login [--browser]
See client reference.
gdsgate up [--browser] [--foreground]
See client reference.
gdsgate down
See client reference.
gdsgate status [--json] [--explain] [--refresh]
See client reference.
gdsgate completion <bash|zsh|fish|powershell>
See client reference.
gdsgate machine-id [--token <jwt> | --provision-token <t> | --renew]
See client reference.
gdsgate delegate --can <cap>... [--ttl <secs>] [--bind-key <dir> | --exec <prog> [-- <args>...]]
See delegation reference.
What a grant carries into an ssh session
See delegation reference.
Saved delegations
See delegation reference.
Endpoints: what the program is given
See delegation reference.
Agent profiles
See delegation reference.
--sandbox basic and --sandbox strict
See delegation reference.
The difference between them
See delegation reference.
Security limitations
See delegation reference.
What the audit chain says about the sandbox
See delegation reference.
gdsgate delegations
See delegation reference.
gdsgate revoke <id> | --all | --owner <user>
See delegation reference.
gdsgate delegation status [--json]
See delegation reference.
gdsgate delegation renew [--endpoint <url>]
See delegation reference.
gdsgate ls
See access reference.
gdsgate request-access <resource> --reason <text> [--action <action>] [--ttl <secs>]
See access reference.
gdsgate approve <id>
See access reference.
gdsgate requests
See access reference.
gdsgate mfa enroll
See access reference.
gdsgate mfa confirm <code>
See access reference.
gdsgate mfa verify <code>
See access reference.
gdsgate mfa register-passkey
See access reference.
gdsgate mfa step-up
See access reference.
gdsgate step-up <resource> [--action <action>] [--code <totp>]
See access reference.
gdsgate ssh <target> [--exec [-- <ssh args>...]]
See protocol reference.
gdsgate ssh-config [<host_pattern>]
See protocol reference.
gdsgate proxy-ssh <resource>
See protocol reference.
gdsgate db ls
See protocol reference.
gdsgate db login <resource>
See protocol reference.
gdsgate db proxy <resource> [--listen <addr>]
See protocol reference.
gdsgate kube ls
See protocol reference.
gdsgate kube login <cluster> [--server <url>]
See protocol reference.
gdsgate kube credentials <cluster>
See protocol reference.
gdsgate kube proxy <cluster> [--listen <addr>]
See protocol reference.
gdsgate rdp ls
See protocol reference.
gdsgate rdp proxy <resource> [--listen <addr>] [--exec]
See protocol reference.
gdsgate tcp ls
See protocol reference.
gdsgate tcp proxy <resource> [--listen <addr>]
See protocol reference.
gdsgate mcp ls
See protocol reference.
gdsgate mcp proxy <resource> [--listen <addr>]
See protocol reference.
gdsgate mcp bridge <endpoint>
See protocol reference.
gdsgate web proxy <resource> [--listen <addr>]
See protocol reference.
gdsgate web trust [--quiet]
See protocol reference.
gdsgate ca rotate [--all]
See trust reference.
gdsgate ca learn-host-key <target>
See trust reference.
gdsgate ca fingerprint [--file <path>]
See trust reference.
gdsgate session list
See session reference.
gdsgate session kill [<id>] [--principal <p>] [--resource <r>]
See session reference.
gdsgate session watch
See session reference.
Environment variables
Cluster-configuration overlay
Every GDSGATE_* listed in
Configuration → Environment overrides
overlays the matching field in the TOML file. An unset variable changes
nothing.
Client-side
| Variable | Purpose |
|---|---|
GDSGATE_ID_TOKEN |
Identity token to present to the cluster (sub becomes the principal). Skips gdsgate login. |
GDSGATE_USER |
Local-dev principal name when no [oidc] is configured. Default dev. |
RUST_LOG |
Tracing filter. A client command defaults to warn; the resident client and the daemons default to warn,gdsgate=info: gdsgate* at INFO, everything else at WARN. |
Node bootstrap
| Variable | Purpose |
|---|---|
GDSGATE_ENROLL_TOKEN |
One-time node-registration token. Consumed by Authority on first start of a Proxy or Connector. Preferred over enroll.token in the file. |
Exit codes
0: command succeeded.1: generic failure, with the error logged to stderr.-
2:gdsgate doctorfound a failing check,config checkfound warnings and no error,authority verify-auditfound the audit chain broken, orjoinwas given arguments that do not describe an installation. -
3: nothing to do, where a run with--if-missingfound what it was asked to create and changed nothing. Onlyauthority init,authority bootstrap-admin,authority bootstrap-provisionerand the five deprecatedauthority init-*commands produce it, and only when that flag is passed. -
101: Rust panic, an unrecoverable internal error worth reporting.
A non-zero exit from authority policy validate indicates a policy error
suitable for CI gating.
A provisioning script tells the outcomes apart by exit code: created (0),
already there (3), failed (1). Output wording may change; do not parse it.
Under set -e, allow 3 explicitly:
gdsgate authority init --profile production --output /etc/gdsgate/authority.toml \
--control-keyring /etc/gdsgate/control.keys --audit-keyring /etc/gdsgate/audit.keys \
--if-missing || [ $? -eq 3 ]
gdsgate --config authority.toml authority bootstrap-admin \
--output-dir /var/lib/gdsgate/admin --if-missing || [ $? -eq 3 ]