Reference
CLI command reference
Every command, argument and flag of the gebsecure CLI, generated from the command definitions in cli/src.
Every command, argument and flag of the GebSecure CLI. See cli/README.md for installation, authentication, CI usage and the policy-as-code workflow.
Commands#
gebsecure login— Log in and store credentials for the active profilegebsecure logout— Revoke the session and remove stored credentials for the profilegebsecure whoami— Show the authenticated principal, organization and permissionsgebsecure init— Scaffold gebsecure.yaml and a policies/ directory in a repositorygebsecure config— Manage configuration profiles and settingsgebsecure config list— Show effective settings and where each value comes fromgebsecure config get— Print the effective value of a settinggebsecure config set— Set a value in the active (or --profile) profilegebsecure config unset— Remove a value from the active (or --profile) profilegebsecure config use— Switch the default profile (created if it does not exist)gebsecure config profiles— List profilesgebsecure config delete-profile— Delete a profile and its stored credentialsgebsecure config path— Show the configuration directory and files
gebsecure agents— Manage agent identities and their credentialsgebsecure agents list— List agents in the project/environmentgebsecure agents get— Show an agent and its credentials (metadata only)gebsecure agents create— Register an agent and issue its first credential (shown once)gebsecure agents suspend— Suspend an agent (all requests are denied until activated)gebsecure agents activate— Re-activate a suspended or disabled agentgebsecure agents credentials— List an agent's credentials (metadata only)gebsecure agents rotate— Rotate an agent credential (new secret shown once; the old one works during the grace period)gebsecure agents revoke— Revoke agent credentials immediately
gebsecure policies— Policy-as-code: validate, format, test, diff, deploy and roll back policiesgebsecure policies list— List server policies visible in the projectgebsecure policies get— Show a policy (metadata, versions, tests) or print its sourcegebsecure policies versions— List the versions and deployment history of a policygebsecure policies validate— Validate policy files (offline), optionally also with the servergebsecure policies fmt— Format policy files canonically (or check formatting with --check)gebsecure policies test— Run policy tests (offline against the directory, or on the server)gebsecure policies diff— Diff local policy files against the server (or two server versions)gebsecure policies plan— Show what deploy would change (same as deploy --dry-run)gebsecure policies deploy— Deploy policy files (same as "gebsecure deploy")gebsecure policies rollback— Roll a policy back to a previous version
gebsecure secrets— Manage vault secrets (values are write-only and never displayed)gebsecure secrets list— List secrets (metadata only)gebsecure secrets get— Show secret metadata and versionsgebsecure secrets create— Store a new secret (value from stdin, --from-file or a hidden prompt)gebsecure secrets rotate— Write a new version of a secret (new value, or --generate)gebsecure secrets revoke— Revoke a secret version (default: the current version)
gebsecure integrations— Connector catalog and connections (install, test, disable, delete, OAuth)gebsecure integrations catalog— List available connectors, or show one connectorgebsecure integrations list— List connections in the projectgebsecure integrations get— Show a connectiongebsecure integrations create— Install a connector into the project as a named connectiongebsecure integrations test— Run the connection's health checkgebsecure integrations disable— Disable a connection (executions through it are refused)gebsecure integrations enable— Re-enable a disabled connectiongebsecure integrations delete— Delete a connectiongebsecure integrations oauth— Install a connection via OAuth (authorization code + PKCE)
gebsecure simulate— Simulate authorization decisions for scenario files (exit 7 on expectation mismatch)gebsecure deploy— Deploy the policy directory to an environment (plan, confirm, apply)gebsecure logs— Query the audit log (filters, --follow, table/json/ndjson/yaml output)gebsecure logs export— Export audit events (ndjson, csv or json) to a file or stdout
gebsecure completion— Print a shell completion script (bash, zsh, fish, powershell)gebsecure version— Print the CLI version
Global flags#
Accepted by every command.
| Flag | Description |
|---|---|
| `-o, --output <table | json |
-q, --quiet |
Suppress informational messages; lists print IDs only |
--no-color |
Disable colored output (also NO_COLOR) |
-p, --profile <name> |
Configuration profile (env GEBSECURE_PROFILE) |
--api-url <url> |
Control-plane API URL (env GEBSECURE_API_URL) |
--gateway-url <url> |
Gateway URL (env GEBSECURE_GATEWAY_URL) |
| `--org <id | slug>` |
| `--project <id | slug>` |
| `-e, --env <id | slug>` |
--debug |
Log HTTP requests and show stack traces on errors (credentials are redacted) |
Exit codes#
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error (including an aborted confirmation) |
| 2 | Usage error (unknown command or flag, missing argument, confirmation required with no terminal) |
| 3 | Not authenticated (no credentials, expired or revoked session, HTTP 401) |
| 4 | Permission denied (HTTP 403) |
| 5 | Not found (HTTP 404, or a named resource/file does not exist) |
| 6 | Validation failed (invalid policy source, invalid input, HTTP 400/422) |
| 7 | Check failed: policy tests failed, a simulation expectation did not match, fmt --check/diff found differences, or the server blocked a deployment |
| 8 | Conflict (HTTP 409/412) |
| 9 | Service unavailable, rate limited, timeout or network error (HTTP 429/5xx) |
| 130 | Interrupted (Ctrl-C) |
Environment variables#
| Variable | Purpose |
|---|---|
GEBSECURE_API_KEY |
API key (gsk_…) used for every request; takes precedence over stored credentials |
GEBSECURE_CLIENT_ID, GEBSECURE_CLIENT_SECRET, GEBSECURE_SCOPE |
Client credentials (service account or agent) exchanged for short-lived tokens |
GEBSECURE_TOKEN |
A pre-obtained access token |
GEBSECURE_EMAIL, GEBSECURE_PASSWORD |
Non-interactive login (prefer --password-stdin) |
GEBSECURE_PROFILE |
Profile to use |
GEBSECURE_API_URL, GEBSECURE_GATEWAY_URL |
API and gateway URLs |
GEBSECURE_ORG, GEBSECURE_PROJECT, GEBSECURE_ENVIRONMENT |
Organization, project and environment (id or slug) |
GEBSECURE_OUTPUT |
Default output format |
GEBSECURE_CONFIG_DIR |
Configuration directory (default %APPDATA%\gebsecure on Windows, $XDG_CONFIG_HOME/gebsecure or ~/.config/gebsecure elsewhere) |
NO_COLOR |
Disable colours |
Credential precedence: GEBSECURE_API_KEY > GEBSECURE_CLIENT_SECRET > GEBSECURE_TOKEN > the profile's stored credential.
Setting precedence (highest first): command-line flag > environment variable > project file (gebsecure.yaml) > active profile > default.
gebsecure login#
Log in with email and password (interactive, password read without echo), or store an API key or client credentials for non-interactive use. Credentials are saved per profile in the CLI config directory with owner-only permissions and are never printed. Session access tokens are refreshed automatically.
gebsecure login [flags]| Flag | Description |
|---|---|
--email <email> |
Account email (prompted when omitted; env GEBSECURE_EMAIL) |
--password-stdin |
Read the password from stdin (env GEBSECURE_PASSWORD is also accepted) |
--with-api-key |
Store an API key (gsk_…) read from stdin or a hidden prompt instead of logging in |
--with-client-credentials |
Store client credentials (secret read from stdin or a hidden prompt) |
--client-id <id> |
Credential or principal id for --with-client-credentials |
--scope <scopes> |
Space-separated scopes to request with --with-client-credentials |
Examples:
gebsecure login
gebsecure login --email dev@example.com --org acme
printf %s "$PASSWORD" | gebsecure login --email ci@example.com --password-stdin
printf %s "$GEBSECURE_KEY" | gebsecure login --with-api-key --profile cigebsecure logout#
Revokes the login session on the server (access and refresh tokens) and deletes the profile's stored credentials. For a stored API key or client credentials, only the local copy is removed — revoke the key itself in the console or API.
gebsecure logout [flags]gebsecure whoami#
Show the authenticated principal, organization and permissions
gebsecure whoami [flags]gebsecure init#
Creates gebsecure.yaml linking the directory to an organization, project and environment, and a policies/ directory with a starter policy, its tests and a simulation scenario. When logged in, the organization and project are detected.
gebsecure init [dir] [flags]| Argument | Description |
|---|---|
dir |
Target directory (default: current directory) |
| Flag | Description |
|---|---|
| `--scope <org | project |
--policies-dir <dir> |
Policy directory (relative to the project file) (default policies) |
--no-starter |
Do not create the starter policy, tests and scenario |
--force |
Overwrite existing files |
Examples:
gebsecure init
gebsecure init --project payments --env staging
gebsecure init infra/gebsecure --scope projectgebsecure config#
Profiles hold the API URL, organization, project, environment and default output format. Effective settings are resolved with this precedence (highest first): command-line flag > GEBSECURE_* environment variable > project file (gebsecure.yaml) > active profile > default.
gebsecure config <command> [flags]| Command | Description |
|---|---|
list |
Show effective settings and where each value comes from |
get |
Print the effective value of a setting |
set |
Set a value in the active (or --profile) profile |
unset |
Remove a value from the active (or --profile) profile |
use |
Switch the default profile (created if it does not exist) |
profiles |
List profiles |
delete-profile |
Delete a profile and its stored credentials |
path |
Show the configuration directory and files |
gebsecure config list#
Show effective settings and where each value comes from
gebsecure config list [flags]Aliases: show
gebsecure config get#
Print the effective value of a setting
gebsecure config get <key> [flags]| Argument | Description |
|---|---|
key (required) |
Setting name (api-url, gateway-url, org, project, environment, output) |
gebsecure config set#
Set a value in the active (or --profile) profile
gebsecure config set <key> <value> [flags]| Argument | Description |
|---|---|
key (required) |
Setting name (api-url, gateway-url, org, project, environment, output) |
value (required) |
New value |
Examples:
gebsecure config set api-url https://api.gebsecure.example.com
gebsecure --profile staging config set environment staginggebsecure config unset#
Remove a value from the active (or --profile) profile
gebsecure config unset <key> [flags]| Argument | Description |
|---|---|
key (required) |
Setting name (api-url, gateway-url, org, project, environment, output) |
gebsecure config use#
Switch the default profile (created if it does not exist)
gebsecure config use <profile> [flags]| Argument | Description |
|---|---|
profile (required) |
Profile name |
gebsecure config profiles#
List profiles
gebsecure config profiles [flags]gebsecure config delete-profile#
Delete a profile and its stored credentials
gebsecure config delete-profile <profile> [flags]| Argument | Description |
|---|---|
profile (required) |
Profile name |
| Flag | Description |
|---|---|
-y, --yes |
Skip the confirmation prompt (required when stdin is not a terminal) |
gebsecure config path#
Show the configuration directory and files
gebsecure config path [flags]gebsecure agents#
Manage agent identities and their credentials
gebsecure agents <command> [flags]Aliases: agent
| Command | Description |
|---|---|
list |
List agents in the project/environment |
get |
Show an agent and its credentials (metadata only) |
create |
Register an agent and issue its first credential (shown once) |
suspend |
Suspend an agent (all requests are denied until activated) |
activate |
Re-activate a suspended or disabled agent |
credentials |
List an agent's credentials (metadata only) |
rotate |
Rotate an agent credential (new secret shown once; the old one works during the grace period) |
revoke |
Revoke agent credentials immediately |
gebsecure agents list#
List agents in the project/environment
gebsecure agents list [flags]Aliases: ls
| Flag | Description |
|---|---|
| `--status <active | suspended |
--tag <tag> |
Filter by tag |
--search <text> |
Search by name |
--all-environments |
Do not filter by the configured environment |
--limit <n> |
Maximum agents to return (1-200) (default 50) |
gebsecure agents get#
Show an agent and its credentials (metadata only)
gebsecure agents get <agent> [flags]| Argument | Description |
|---|---|
agent (required) |
Agent id (agt_…) or exact name |
gebsecure agents create#
Register an agent and issue its first credential (shown once)
gebsecure agents create <name> [flags]| Argument | Description |
|---|---|
name (required) |
Agent name |
| Flag | Description |
|---|---|
--description <text> |
Description |
| `--risk-tier <low | standard |
--tag <tag> |
Tag (repeatable or comma-separated) (repeatable) |
--framework <name> |
Agent framework (e.g. langchain) |
--model <name> |
Model identifier |
| `--credential-type <client_secret | public_key |
--public-key <jwk-file> |
Public JWK file for --credential-type public_key |
--scope <scope> |
Restrict the credential to these scopes (repeatable) |
--expires-in-days <n> |
Credential lifetime in days (1-730) |
--credential-file <path> |
Write the new credential (JSON: clientId, clientSecret, tokenUrl) to this file with owner-only permissions instead of printing the secret |
Examples:
gebsecure agents create billing-bot --risk-tier elevated --tag billing
gebsecure agents create ci-agent --credential-file ./ci-agent.jsongebsecure agents suspend#
Suspend an agent (all requests are denied until activated)
gebsecure agents suspend <agent> [flags]| Argument | Description |
|---|---|
agent (required) |
Agent id (agt_…) or exact name |
| Flag | Description |
|---|---|
--reason <text> |
Reason recorded in the audit log |
gebsecure agents activate#
Re-activate a suspended or disabled agent
gebsecure agents activate <agent> [flags]| Argument | Description |
|---|---|
agent (required) |
Agent id (agt_…) or exact name |
| Flag | Description |
|---|---|
--reason <text> |
Reason recorded in the audit log |
gebsecure agents credentials#
List an agent's credentials (metadata only)
gebsecure agents credentials <agent> [flags]| Argument | Description |
|---|---|
agent (required) |
Agent id (agt_…) or exact name |
gebsecure agents rotate#
Rotate an agent credential (new secret shown once; the old one works during the grace period)
gebsecure agents rotate <agent> [flags]| Argument | Description |
|---|---|
agent (required) |
Agent id (agt_…) or exact name |
| Flag | Description |
|---|---|
--credential <cred_id> |
Credential to rotate (default: the only active one) |
--grace-minutes <n> |
Minutes the previous credential keeps working (0 revokes it immediately) (default 60) |
--credential-file <path> |
Write the new credential (JSON: clientId, clientSecret, tokenUrl) to this file with owner-only permissions instead of printing the secret |
gebsecure agents revoke#
Revoke agent credentials immediately
gebsecure agents revoke <agent> [flags]| Argument | Description |
|---|---|
agent (required) |
Agent id (agt_…) or exact name |
| Flag | Description |
|---|---|
--credential <cred_id> |
Credential to revoke (default: the only usable one) |
--all |
Revoke every active or rotating credential of the agent |
--reason <text> |
Reason recorded in the audit log (default revoked via CLI) |
-y, --yes |
Skip the confirmation prompt (required when stdin is not a terminal) |
gebsecure policies#
Works from the policies directory (policies.dir in gebsecure.yaml): one <name>.gsl file per policy and optional <name>.test.yaml tests. validate, fmt and test run offline with the same engine as the server.
gebsecure policies <command> [flags]Aliases: policy
| Command | Description |
|---|---|
list |
List server policies visible in the project |
get |
Show a policy (metadata, versions, tests) or print its source |
versions |
List the versions and deployment history of a policy |
validate |
Validate policy files (offline), optionally also with the server |
fmt |
Format policy files canonically (or check formatting with --check) |
test |
Run policy tests (offline against the directory, or on the server) |
diff |
Diff local policy files against the server (or two server versions) |
plan |
Show what deploy would change (same as deploy --dry-run) |
deploy |
Deploy policy files (same as "gebsecure deploy") |
rollback |
Roll a policy back to a previous version |
gebsecure policies list#
List server policies visible in the project
gebsecure policies list [flags]Aliases: ls
| Flag | Description |
|---|---|
| `--status <draft | active |
gebsecure policies get#
Show a policy (metadata, versions, tests) or print its source
gebsecure policies get <policy> [flags]| Argument | Description |
|---|---|
policy (required) |
Policy id (pol_…) or name |
| Flag | Description |
|---|---|
--source |
Print only the GSL source |
--version <n> |
Version number to show (default: latest) |
gebsecure policies versions#
List the versions and deployment history of a policy
gebsecure policies versions <policy> [flags]| Argument | Description |
|---|---|
policy (required) |
Policy id (pol_…) or name |
| Flag | Description |
|---|---|
--deployments |
Show deployment history instead of versions |
gebsecure policies validate#
Parses and validates every policy file with the same validator the server uses, and runs conflict analysis across the directory. Works offline; --remote additionally validates each file with the API.
gebsecure policies validate [policies...] [flags]| Argument | Description |
|---|---|
policies (multiple) |
Policy names or .gsl files (default: every file in the directory) |
| Flag | Description |
|---|---|
--dir <dir> |
Policy directory (default: policies.dir in gebsecure.yaml, else ./policies) |
--remote |
Also validate with the server (POST /v1/policies/validate) |
gebsecure policies fmt#
Rewrites each file in canonical GSL formatting. The formatter does not preserve comments, so files containing comments are left untouched unless --force is given.
gebsecure policies fmt [policies...] [flags]| Argument | Description |
|---|---|
policies (multiple) |
Policy names or .gsl files (default: every file in the directory) |
| Flag | Description |
|---|---|
--dir <dir> |
Policy directory (default: policies.dir in gebsecure.yaml, else ./policies) |
--check |
Do not write; exit 7 if any file is not formatted |
--force |
Also rewrite files that contain comments (comments are removed) |
gebsecure policies test#
Runs every <name>.test.yaml against the full set of local policies with the same evaluation engine as the server. --remote instead runs the tests stored on the server against the environment's effective policy set (deployed policies, RBAC grants).
gebsecure policies test [policies...] [flags]| Argument | Description |
|---|---|
policies (multiple) |
Policy names or .gsl files (default: every file in the directory) |
| Flag | Description |
|---|---|
--dir <dir> |
Policy directory (default: policies.dir in gebsecure.yaml, else ./policies) |
| `--scope <org | project |
--remote |
Run the server-side tests of the named (or all local) policies |
gebsecure policies diff#
Diff local policy files against the server (or two server versions)
gebsecure policies diff [policies...] [flags]| Argument | Description |
|---|---|
policies (multiple) |
Policy names or .gsl files (default: every file in the directory) |
| Flag | Description |
|---|---|
--dir <dir> |
Policy directory (default: policies.dir in gebsecure.yaml, else ./policies) |
| `--scope <org | project |
--from <n> |
With one policy: server version number to diff from |
--to <n> |
With one policy: server version number to diff to (default: latest) |
Examples:
gebsecure policies diff
gebsecure policies diff agent-baseline --from 1 --to 3gebsecure policies plan#
Show what deploy would change (same as deploy --dry-run)
gebsecure policies plan [policies...] [flags]| Argument | Description |
|---|---|
policies (multiple) |
Policy names or .gsl files (default: every file in the directory) |
| Flag | Description |
|---|---|
--dir <dir> |
Policy directory (default: policies.dir in gebsecure.yaml, else ./policies) |
| `--scope <org | project |
gebsecure policies deploy#
Deploy policy files (same as "gebsecure deploy")
gebsecure policies deploy [policies...] [flags]| Argument | Description |
|---|---|
policies (multiple) |
Policy names or .gsl files (default: every file in the directory) |
| Flag | Description |
|---|---|
--dir <dir> |
Policy directory (default: policies.dir in gebsecure.yaml, else ./policies) |
| `--scope <org | project |
-m, --message <text> |
Version message / deployment comment |
--dry-run |
Show the plan without applying it |
--diff |
Show source diffs in the plan (--no-diff to hide) (default true) |
-y, --yes |
Skip the confirmation prompt (required when stdin is not a terminal) |
gebsecure policies rollback#
Roll a policy back to a previous version
gebsecure policies rollback <policy> [flags]| Argument | Description |
|---|---|
policy (required) |
Policy id (pol_…) or name |
| Flag | Description |
|---|---|
--to <n> |
Version number to roll back to (default: the previously deployed version) |
--comment <text> |
Comment recorded with the rollback |
-y, --yes |
Skip the confirmation prompt (required when stdin is not a terminal) |
gebsecure secrets#
Secret values are read from stdin, a file or a hidden prompt — never echoed and never printed. The vault is write-only: list and get return metadata and masks only.
gebsecure secrets <command> [flags]Aliases: secret
| Command | Description |
|---|---|
list |
List secrets (metadata only) |
get |
Show secret metadata and versions |
create |
Store a new secret (value from stdin, --from-file or a hidden prompt) |
rotate |
Write a new version of a secret (new value, or --generate) |
revoke |
Revoke a secret version (default: the current version) |
gebsecure secrets list#
List secrets (metadata only)
gebsecure secrets list [flags]Aliases: ls
| Flag | Description |
|---|---|
| `--type <api_key | oauth_token |
gebsecure secrets get#
Show secret metadata and versions
gebsecure secrets get <secret> [flags]| Argument | Description |
|---|---|
secret (required) |
Secret id (sec_…) or name |
gebsecure secrets create#
Store a new secret (value from stdin, --from-file or a hidden prompt)
gebsecure secrets create <name> [flags]| Argument | Description |
|---|---|
name (required) |
Secret name (letters, digits, _ . : / -) |
| Flag | Description |
|---|---|
| `--type <api_key | oauth_token |
--description <text> |
Description |
| `--scope <org | project |
--allow-agent <agt_id> |
Restrict use to these agents (repeatable) |
--allow-connector <key> |
Restrict use to these connectors (repeatable) |
--expires-at <iso-time> |
Expiry timestamp (ISO 8601) |
--rotation-days <n> |
Rotation reminder interval in days |
--from-file <path> |
Read the value from a file |
--from-stdin |
Read the value from stdin (implied when stdin is not a terminal) |
--json |
The input is the full JSON value object for the type (e.g. cloud, certificate) |
--username <user> |
Username for database secrets (not secret) |
Examples:
gebsecure secrets create stripe-key --type api_key --from-file ./stripe.key
printf %s "$TOKEN" | gebsecure secrets create github-token --type oauth_token
gebsecure secrets create db --type database --username app # prompts for the password
gebsecure secrets create aws --type cloud --json --from-file aws.jsongebsecure secrets rotate#
Write a new version of a secret (new value, or --generate)
gebsecure secrets rotate <secret> [flags]| Argument | Description |
|---|---|
secret (required) |
Secret id (sec_…) or name |
| Flag | Description |
|---|---|
--generate |
Let the vault generate a random value (generic and api_key secrets) |
--length <n> |
Generated value length (16-128) |
--from-file <path> |
Read the value from a file |
--from-stdin |
Read the value from stdin (implied when stdin is not a terminal) |
--json |
The input is the full JSON value object for the type (e.g. cloud, certificate) |
--username <user> |
Username for database secrets (not secret) |
gebsecure secrets revoke#
Revoke a secret version (default: the current version)
gebsecure secrets revoke <secret> [flags]| Argument | Description |
|---|---|
secret (required) |
Secret id (sec_…) or name |
| Flag | Description |
|---|---|
--version <n> |
Version to revoke |
--reason <text> |
Reason recorded in the audit log |
-y, --yes |
Skip the confirmation prompt (required when stdin is not a terminal) |
gebsecure integrations#
Connector catalog and connections (install, test, disable, delete, OAuth)
gebsecure integrations <command> [flags]Aliases: integration, connections
| Command | Description |
|---|---|
catalog |
List available connectors, or show one connector |
list |
List connections in the project |
get |
Show a connection |
create |
Install a connector into the project as a named connection |
test |
Run the connection's health check |
disable |
Disable a connection (executions through it are refused) |
enable |
Re-enable a disabled connection |
delete |
Delete a connection |
oauth |
Install a connection via OAuth (authorization code + PKCE) |
gebsecure integrations catalog#
List available connectors, or show one connector
gebsecure integrations catalog [connector] [flags]| Argument | Description |
|---|---|
connector |
Connector key to show in detail |
| Flag | Description |
|---|---|
--category <category> |
Filter by category |
gebsecure integrations list#
List connections in the project
gebsecure integrations list [flags]Aliases: ls
gebsecure integrations get#
Show a connection
gebsecure integrations get <connection> [flags]| Argument | Description |
|---|---|
connection (required) |
Connection id (conn_…) or name |
gebsecure integrations create#
Install a connector into the project as a named connection
gebsecure integrations create <name> [flags]| Argument | Description |
|---|---|
name (required) |
Connection name (lowercase letters, digits, _ and -) |
| Flag | Description |
|---|---|
--connector <key> |
Connector key (see "integrations catalog") |
--auth-type <type> |
Auth method (default: the connector's first) |
| `--config <json | @file>` |
--allowed-host <host> |
Additional allowed egress hosts (repeatable) |
--secret <sec_id> |
Use an existing vault secret as the credential |
| `--credential-type <api_key | oauth_token |
--from-file <path> |
Read the credential value from a file |
--from-stdin |
Read the credential value from stdin |
--json |
The credential input is the full JSON value object |
--environment-only |
Bind the connection to the configured environment only |
--description <text> |
Description |
Examples:
gebsecure integrations create github-main --connector github --credential-type api_key --from-file gh.token
gebsecure integrations create slack --connector slack --auth-type oauth2gebsecure integrations test#
Run the connection's health check
gebsecure integrations test <connection> [flags]Aliases: health
| Argument | Description |
|---|---|
connection (required) |
Connection id (conn_…) or name |
gebsecure integrations disable#
Disable a connection (executions through it are refused)
gebsecure integrations disable <connection> [flags]| Argument | Description |
|---|---|
connection (required) |
Connection id (conn_…) or name |
gebsecure integrations enable#
Re-enable a disabled connection
gebsecure integrations enable <connection> [flags]| Argument | Description |
|---|---|
connection (required) |
Connection id (conn_…) or name |
gebsecure integrations delete#
Delete a connection
gebsecure integrations delete <connection> [flags]| Argument | Description |
|---|---|
connection (required) |
Connection id (conn_…) or name |
| Flag | Description |
|---|---|
-y, --yes |
Skip the confirmation prompt (required when stdin is not a terminal) |
gebsecure integrations oauth#
Starts the OAuth installation for a connection and prints the provider authorization URL. By default a loopback listener on 127.0.0.1 receives the redirect and the CLI completes the installation (tokens are stored in the vault, never shown). With --redirect-uri, paste the URL you were redirected to.
gebsecure integrations oauth <connection> [flags]| Argument | Description |
|---|---|
connection (required) |
Connection id (conn_…) or name |
| Flag | Description |
|---|---|
--client-id <id> |
OAuth client id registered with the provider |
--scope <scope> |
Scopes to request (default: the connector defaults) (repeatable) |
--port <n> |
Loopback port for the redirect (0 = random; must match the registered redirect URI) (default 0) |
--redirect-uri <url> |
Use this registered redirect URI and paste the final URL instead of a loopback listener |
--client-secret-stdin |
Read the OAuth client secret from stdin (confidential clients) |
--open |
Open the authorization URL in a browser (--no-open to only print it) (default true) |
--timeout <n> |
Seconds to wait for the redirect (default 600) |
gebsecure simulate#
Evaluates the requests in each scenario file (YAML/JSON: { environment?, requests: [...] } or a list of requests) and prints the decision, the risk input, and the policies that matched. Default: against the policies deployed in the environment (server). --candidate: the server evaluates your local policy files in place of the deployed versions (and reports changed decisions). --local: fully offline against the local policy directory. Requests with "expect" make the command exit 7 when the decision differs.
gebsecure simulate <scenarios...> [flags]Aliases: sim
| Argument | Description |
|---|---|
scenarios (required) (multiple) |
Scenario files or directories |
| Flag | Description |
|---|---|
--local |
Evaluate offline against the local policy directory |
--candidate |
Evaluate local policy files as candidates on the server (baseline = deployed) |
--fail-on-change |
With --candidate: exit 7 if any decision differs from the deployed baseline |
--dir <dir> |
Policy directory (default: policies.dir in gebsecure.yaml, else ./policies) |
| `--scope <org | project |
Examples:
gebsecure simulate simulations/
gebsecure simulate refunds.yaml --candidate --fail-on-change
gebsecure simulate simulations/ --local -o jsongebsecure deploy#
Validates every policy file and runs the policy tests locally, then computes a plan against the server (create, update, deploy, unchanged), shows it with diffs, asks for confirmation (--yes for CI), uploads new versions and tests, and deploys them. The server re-runs the tests and conflict analysis against the effective policy set and blocks a deployment that fails; the command then exits with code 7.
gebsecure deploy [policies...] [flags]| Argument | Description |
|---|---|
policies (multiple) |
Only these policy names or .gsl files (default: all) |
| Flag | Description |
|---|---|
--dir <dir> |
Policy directory (default: policies.dir in gebsecure.yaml, else ./policies) |
| `--scope <org | project |
-m, --message <text> |
Version message / deployment comment |
--dry-run |
Show the plan without applying it |
--diff |
Show source diffs in the plan (--no-diff to hide) (default true) |
-y, --yes |
Skip the confirmation prompt (required when stdin is not a terminal) |
Examples:
gebsecure deploy
gebsecure deploy --env production --yes
gebsecure deploy --dry-run -o jsongebsecure logs#
Searches audit events, newest first, and prints them oldest first. --follow keeps polling for new events until interrupted (Ctrl-C). Use -o ndjson for one JSON event per line (also used for json while following).
gebsecure logs [command] [flags]Aliases: audit
| Command | Description |
|---|---|
export |
Export audit events (ndjson, csv or json) to a file or stdout |
| Flag | Description |
|---|---|
--since <time> |
Start time: duration ago (30m, 24h, 7d) or ISO-8601 |
--until <time> |
End time (exclusive): duration ago or ISO-8601 |
--category <name> |
Category (identity, policy, authorization, execution, vault, …) |
--action <name> |
Action, e.g. policy.deploy; a trailing * matches a prefix |
| `--outcome <success | failure |
--actor <id> |
Actor id |
--agent <agt_id> |
Agent id |
--resource-type <type> |
Resource type |
--resource <id> |
Resource id |
| `--decision <ALLOW | DENY |
--min-risk <n> |
Minimum risk score (0-100) |
--trace <trace_id> |
Trace id |
--search <text> |
Free-text search in action, resource and details |
--all-projects |
Do not filter by the configured project |
--limit <n> |
Maximum events to return (1-1000) (default 50) |
-f, --follow |
Poll for new events until interrupted |
--interval <n> |
Polling interval in seconds for --follow (default 2) |
Examples:
gebsecure logs --since 1h --category policy
gebsecure logs --agent agt_… --decision DENY -f
gebsecure logs --action "secret.*" -o ndjsongebsecure logs export#
Export audit events (ndjson, csv or json) to a file or stdout
gebsecure logs export [flags]| Flag | Description |
|---|---|
--since <time> |
Start time: duration ago (30m, 24h, 7d) or ISO-8601 |
--until <time> |
End time (exclusive): duration ago or ISO-8601 |
--category <name> |
Category (identity, policy, authorization, execution, vault, …) |
--action <name> |
Action, e.g. policy.deploy; a trailing * matches a prefix |
| `--outcome <success | failure |
--actor <id> |
Actor id |
--agent <agt_id> |
Agent id |
--resource-type <type> |
Resource type |
--resource <id> |
Resource id |
| `--decision <ALLOW | DENY |
--min-risk <n> |
Minimum risk score (0-100) |
--trace <trace_id> |
Trace id |
--search <text> |
Free-text search in action, resource and details |
--all-projects |
Do not filter by the configured project |
--limit <n> |
Maximum events to return (1-1000) (default 50) |
-f, --follow |
Poll for new events until interrupted |
--interval <n> |
Polling interval in seconds for --follow (default 2) |
| `--format <ndjson | csv |
--out <file> |
Write to this file instead of stdout |
Examples:
gebsecure logs export --since 7d --format csv --out audit.csvgebsecure completion#
Prints a completion script generated from the command definitions. See the comment at the top of each script for installation.
gebsecure completion <shell> [flags]| Argument | Description |
|---|---|
shell (required) |
Target shell (bash, zsh, fish, powershell) |
Examples:
gebsecure completion bash > ~/.local/share/bash-completion/completions/gebsecure
gebsecure completion zsh > "${fpath[1]}/_gebsecure"
gebsecure completion fish > ~/.config/fish/completions/gebsecure.fish
gebsecure completion powershell | Out-String | Invoke-Expressiongebsecure version#
Print the CLI version
gebsecure version [flags]