Generated from
@teamgrid/cli@1.0.6at Developer Platform commite6f6b47fa223. Runnode scripts/sync-cli-reference.mjs --checkto detect drift; do not edit this page manually.
create and download bounded exports.
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 exports create— Create an asynchronous export.teamgrid exports get— Get export job status.teamgrid exports download-intent— Create an export download intent.teamgrid exports download— Download a completed export through TeamGrid.
teamgrid exports create
Create an asynchronous export.
Syntax
teamgrid exports create [options]
API operation and scope
| Operation | HTTP | Scope | API reference |
|---|---|---|---|
createExport |
POST /exports |
exports:write |
Create an asynchronous export |
Command options
| Option | Description | Required | Choices | Default |
|---|---|---|---|---|
--data <json|@file|-> |
export specification JSON | Yes | — | — |
--idempotency-key <key> |
stable retry key | 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.
Example
teamgrid exports create --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 exports get
Get export job status.
Syntax
teamgrid exports get [options] <id>
API operation and scope
| Operation | HTTP | Scope | API reference |
|---|---|---|---|
getExport |
GET /exports/{id} |
exports:read |
Get export job status |
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 exports 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 exports download-intent
Create an export download intent.
Syntax
teamgrid exports download-intent [options] <id>
API operation and scope
| Operation | HTTP | Scope | API reference |
|---|---|---|---|
createExportDownloadIntent |
POST /exports/{id}/download-intent |
exports:read |
Create an export download intent |
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 exports download-intent 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 exports download
Download a completed export through TeamGrid.
Syntax
teamgrid exports download [options] <id>
API operation and scope
| Operation | HTTP | Scope | API reference |
|---|---|---|---|
downloadExport |
GET /exports/{id}/download |
exports:read |
Download a completed export through TeamGrid |
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 |
|---|---|---|---|---|
--file <path> |
create a new output file without overwriting | No | — | — |
--stdout |
write raw export bytes to standard output | No | — | — |
--intent-token-stdin |
read a short-lived download intent token from stdin | No | — | — |
--max-bytes <number> |
download safety limit (1–52428800) | No | — | 52428800 |
The global options and implicit -h, --help option also apply.
Output
Choose exactly one destination. --file creates a new file without overwriting it; --stdout writes raw export bytes and must not be combined with table or JSON processing. File-mode completion metadata follows the selected global output mode.
Example
teamgrid exports download ID --file ./teamgrid-export.bin
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.