TeamGriddeveloper
TeamGrid Developer

teamgrid service-accounts

10 executable @teamgrid/cli commands in the service-accounts group, generated from CLI 1.0.6.

Generated from @teamgrid/cli@1.0.6 at Developer Platform commit e6f6b47fa223. Run node scripts/sync-cli-reference.mjs --check to detect drift; do not edit this page manually.

manage service-account principals and credentials.

Global options

Global options can be placed before the command group.

Option Description Required Choices Default
-V, --version output the version number No
-o, --output <format> output format No table, json, jsonl table
--profile <name> credential profile No
--base-url <url> override the regional API v1 base URL No
--timeout <milliseconds> request timeout No 30000
--retries <count> safe-request retry count (0–5) No 2

Commands

teamgrid service-accounts list

List service accounts.

Syntax

teamgrid service-accounts list [options]

API operation and scope

Operation HTTP Scope API reference
listServiceAccounts GET /service-accounts service-accounts:read List service accounts

Command options

Option Description Required Choices Default
--all read every page No
--cursor <cursor> resume from an opaque cursor No
--limit <number> resources per page (1–200) No
--max-pages <number> safety limit for –all (1–10000) No 10000

The global options and implicit -h, --help option also apply.

Output

Without --all, table output renders the page data and JSON preserves the complete page envelope. With --all, table and JSON aggregate all traversed resources while JSONL streams one resource per line.

Example

teamgrid service-accounts list

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts get

Get a service account.

Syntax

teamgrid service-accounts get [options] <id>

API operation and scope

Operation HTTP Scope API reference
getServiceAccount GET /service-accounts/{id} service-accounts:read Get a service account

Arguments

Argument Required Variadic Choices Default Description
id Yes No Identifier or value named by the command syntax.

Command options

This command defines no additional options.

The global options and implicit -h, --help option also apply.

Output

The command uses the global output mode: human-readable table by default, or machine-readable json/jsonl.

Example

teamgrid service-accounts get ID

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts create

Create a service account and its initial credential.

Syntax

teamgrid service-accounts create [options]

API operation and scope

Operation HTTP Scope API reference
createServiceAccount POST /service-accounts service-accounts:write Create a service account and its initial credential

Command options

Option Description Required Choices Default
--data <json|@file|-> service account create JSON Yes
--idempotency-key <key> stable retry key No
--secret-file <path> create a new mode-0600 credential file without overwriting No
--secret-stdout write only the raw reveal-once credential to stdout No

The global options and implicit -h, --help option also apply.

Output

Choose exactly one reveal-once destination. --secret-file creates a new protected file without overwriting it; --secret-stdout writes only the raw secret. When a file is used, the non-secret receipt follows the selected global output mode.

Example

teamgrid service-accounts create --data @request.json --secret-file ./teamgrid-secret.txt

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts update

Enable or disable a service account.

Syntax

teamgrid service-accounts update [options] <id>

API operation and scope

Operation HTTP Scope API reference
updateServiceAccount PATCH /service-accounts/{id} service-accounts:write Enable or disable a service account

Arguments

Argument Required Variadic Choices Default Description
id Yes No Identifier or value named by the command syntax.

Command options

Option Description Required Choices Default
--data <json|@file|-> service account status update JSON Yes
-y, --yes skip the destructive-operation confirmation No

The global options and implicit -h, --help option also apply.

Output

The command uses the global output mode: human-readable table by default, or machine-readable json/jsonl.

Confirmation and automation

This command can change or remove data and asks for confirmation by default. In a reviewed non-interactive job, pass --yes or set TEAMGRID_CLI_ASSUME_YES=1; otherwise the command exits with code 2. Cancelling an interactive confirmation exits with code 0.

Example

teamgrid service-accounts update ID --data @request.json

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts revoke

Permanently revoke a service account.

Syntax

teamgrid service-accounts revoke [options] <id>

API operation and scope

Operation HTTP Scope API reference
revokeServiceAccount DELETE /service-accounts/{id} service-accounts:write Permanently revoke a service account

Arguments

Argument Required Variadic Choices Default Description
id Yes No Identifier or value named by the command syntax.

Command options

Option Description Required Choices Default
-y, --yes skip the destructive-operation confirmation No

The global options and implicit -h, --help option also apply.

Output

The command uses the global output mode: human-readable table by default, or machine-readable json/jsonl.

Confirmation and automation

This command can change or remove data and asks for confirmation by default. In a reviewed non-interactive job, pass --yes or set TEAMGRID_CLI_ASSUME_YES=1; otherwise the command exits with code 2. Cancelling an interactive confirmation exits with code 0.

Example

teamgrid service-accounts revoke ID

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts grants get

Get the complete service account resource grant set.

Syntax

teamgrid service-accounts grants get [options] <serviceAccountId>

API operation and scope

Operation HTTP Scope API reference
getServiceAccountResourceGrants GET /service-accounts/{id}/resource-grants resource-grants:read Get the complete service account resource grant set

Arguments

Argument Required Variadic Choices Default Description
serviceAccountId Yes No Identifier or value named by the command syntax.

Command options

This command defines no additional options.

The global options and implicit -h, --help option also apply.

Output

The command uses the global output mode: human-readable table by default, or machine-readable json/jsonl.

Example

teamgrid service-accounts grants get SERVICE_ACCOUNT_ID

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts grants replace

Replace the complete service account resource grant set.

Syntax

teamgrid service-accounts grants replace [options] <serviceAccountId>

API operation and scope

Operation HTTP Scope API reference
replaceServiceAccountResourceGrants PUT /service-accounts/{id}/resource-grants resource-grants:write Replace the complete service account resource grant set

Arguments

Argument Required Variadic Choices Default Description
serviceAccountId Yes No Identifier or value named by the command syntax.

Command options

Option Description Required Choices Default
--data <json|@file|-> complete resource-grant set JSON Yes
--if-match <etag> latest strong resource-grant policy ETag Yes
-y, --yes skip the destructive-operation confirmation No

The global options and implicit -h, --help option also apply.

Output

The command uses the global output mode: human-readable table by default, or machine-readable json/jsonl.

Confirmation and automation

This command can change or remove data and asks for confirmation by default. In a reviewed non-interactive job, pass --yes or set TEAMGRID_CLI_ASSUME_YES=1; otherwise the command exits with code 2. Cancelling an interactive confirmation exits with code 0.

Example

teamgrid service-accounts grants replace SERVICE_ACCOUNT_ID --data @request.json --if-match ETAG

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts credentials create

Create an independent service account credential.

Syntax

teamgrid service-accounts credentials create [options] <serviceAccountId>

API operation and scope

Operation HTTP Scope API reference
createServiceAccountCredential POST /service-accounts/{id}/credentials credentials:write Create an independent service account credential

Arguments

Argument Required Variadic Choices Default Description
serviceAccountId Yes No Identifier or value named by the command syntax.

Command options

Option Description Required Choices Default
--data <json|@file|-> service credential create JSON Yes
--idempotency-key <key> stable retry key No
--secret-file <path> create a new mode-0600 credential file without overwriting No
--secret-stdout write only the raw reveal-once credential to stdout No

The global options and implicit -h, --help option also apply.

Output

Choose exactly one reveal-once destination. --secret-file creates a new protected file without overwriting it; --secret-stdout writes only the raw secret. When a file is used, the non-secret receipt follows the selected global output mode.

Example

teamgrid service-accounts credentials create SERVICE_ACCOUNT_ID --data @request.json --secret-file ./teamgrid-secret.txt

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts credentials rotate

rotate and reveal a service-account credential exactly once.

Syntax

teamgrid service-accounts credentials rotate [options] <serviceAccountId> <credentialId>

API operation and scope

Operation HTTP Scope API reference
rotateServiceAccountCredential POST /service-accounts/{id}/credentials/{credentialId}/rotation credentials:write Rotate a service account credential

Arguments

Argument Required Variadic Choices Default Description
serviceAccountId Yes No Identifier or value named by the command syntax.
credentialId Yes No Identifier or value named by the command syntax.

Command options

Option Description Required Choices Default
--data <json|@file|-> optional rotation JSON No
--idempotency-key <key> stable retry key No
--secret-file <path> create a new mode-0600 credential file without overwriting No
--secret-stdout write only the raw reveal-once credential to stdout No
-y, --yes skip the destructive-operation confirmation No

The global options and implicit -h, --help option also apply.

Output

Choose exactly one reveal-once destination. --secret-file creates a new protected file without overwriting it; --secret-stdout writes only the raw secret. When a file is used, the non-secret receipt follows the selected global output mode.

Confirmation and automation

This command can change or remove data and asks for confirmation by default. In a reviewed non-interactive job, pass --yes or set TEAMGRID_CLI_ASSUME_YES=1; otherwise the command exits with code 2. Cancelling an interactive confirmation exits with code 0.

Example

teamgrid service-accounts credentials rotate SERVICE_ACCOUNT_ID CREDENTIAL_ID --secret-file ./teamgrid-secret.txt

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

teamgrid service-accounts credentials revoke

Revoke a service account credential.

Syntax

teamgrid service-accounts credentials revoke [options] <serviceAccountId> <credentialId>

API operation and scope

Operation HTTP Scope API reference
revokeServiceAccountCredential DELETE /service-accounts/{id}/credentials/{credentialId} credentials:write Revoke a service account credential

Arguments

Argument Required Variadic Choices Default Description
serviceAccountId Yes No Identifier or value named by the command syntax.
credentialId Yes No Identifier or value named by the command syntax.

Command options

Option Description Required Choices Default
-y, --yes skip the destructive-operation confirmation No

The global options and implicit -h, --help option also apply.

Output

The command uses the global output mode: human-readable table by default, or machine-readable json/jsonl.

Confirmation and automation

This command can change or remove data and asks for confirmation by default. In a reviewed non-interactive job, pass --yes or set TEAMGRID_CLI_ASSUME_YES=1; otherwise the command exits with code 2. Cancelling an interactive confirmation exits with code 0.

Example

teamgrid service-accounts credentials revoke SERVICE_ACCOUNT_ID CREDENTIAL_ID

Exit codes

The command uses the stable CLI exit codes (0, 1, 2, 3, 4, 5, 6, 7, 130). See the linked table for the meaning and automation behavior of each code.

Stable documentation · Developer Experience · Reviewed 2026-08-10Edit this page ↗
Documentation feedbackWas this page useful?
Esc

Search TeamGrid Developer

Find guides, concepts and every API operation.