# CLI Reference Complete command reference for `inkreach-teable`. Global options apply to all commands. ## Global Options | Option | Description | |--------|-------------| | `--endpoint ` | Backend URL (default `http://localhost:3000`) | | `--token ` | Personal Access Token | | `--base-id ` | Default base id | | `--json` | Output raw JSON (for agent parsing) | | `--debug` | Print HTTP requests/responses to stderr | | `-v, --version` | Show version | Config precedence: global flag > env (`INKREACH_TEABLE_ENDPOINT`/`INKREACH_TEABLE_TOKEN`/`INKREACH_TEABLE_BASE_ID`) > `~/.inkreach-teable/config.json`. ## auth ```bash inkreach-teable auth status # verify token + show user inkreach-teable auth login --endpoint --token [--base-id ] inkreach-teable auth token list inkreach-teable auth token create --name [--scopes ] [--base-ids ] [--full-access] [--expires ] inkreach-teable auth token delete ``` - `auth token create` returns the full token **only once**. Default scopes: `automation|read,automation|create,automation|update,automation|delete,table|read,record|read,record|create,record|update`. ## base / table / field / record / view These resources use the official-teable-compatible API. Full guide: [tables-fields.md](tables-fields.md). ```bash # base inkreach-teable base list inkreach-teable base get # table inkreach-teable table list [--base-id ] inkreach-teable table get inkreach-teable table create --name [--base-id ] [--fields ''] inkreach-teable table update --name inkreach-teable table delete # field inkreach-teable field list inkreach-teable field get inkreach-teable field create --table-id --name --type [--options ''] inkreach-teable field update [--name ] [--options ''] inkreach-teable field delete # record inkreach-teable record get --table-id [--filter ''] [--projection ''] [--page-size ] [--page ] [--search ] inkreach-teable record get-one inkreach-teable record create --table-id --fields '' # single inkreach-teable record create --table-id --records '' # batch inkreach-teable record update --table-id --records '' inkreach-teable record delete --table-id --record-ids # view inkreach-teable view list inkreach-teable view get inkreach-teable view create --table-id --name [--type ] inkreach-teable view update [--name ] inkreach-teable view delete ``` ## workflow ```bash inkreach-teable workflow list [--base-id ] inkreach-teable workflow get [--base-id ] inkreach-teable workflow create --name [--description ] [--base-id ] inkreach-teable workflow update [--name ] [--description ] [--base-id ] inkreach-teable workflow delete [--base-id ] inkreach-teable workflow activate [--base-id ] inkreach-teable workflow deactivate [--base-id ] inkreach-teable workflow test [--base-id ] ``` Full automation flow: [automation-guide.md](automation-guide.md). ## trigger ```bash inkreach-teable trigger set --type [options] [--base-id ] ``` | `--type` | Required options | |----------|------------------| | `recordCreated` | `--table-id` | | `recordUpdated` | `--table-id`, `--field-ids ''` | | `recordCondition` | `--table-id`, `--conditions ''` | | `recordCreatedOrUpdated` | `--table-id` | | `formSubmitted` | `--table-id`, `--form-id ` | | `scheduledTime` | `--schedule '{"timing":{"type":"minutes","interval":5}}'` | | `buttonClick` | `--table-id`, `--field-ids ''` | | `webhook` | (none) | Common optional: `--batch ''` (record triggers only). Details: [trigger-types.md](../api-reference/trigger-types.md). ## action ```bash inkreach-teable action add --type [options] [--base-id ] inkreach-teable action update [--config ''] [--code ] [--code-file ] [--name ] inkreach-teable action delete [--base-id ] ``` Per-type options: | `--type` | Options | |----------|---------| | `script` | `--code ` / `--code-file `, `--timeout ` | | `sendEmail` | `--to `, `--subject `, `--body ` | | `httpRequest` | `--url `, `--method `, `--headers `, `--req-body ` | | `createRecord` | `--target-table `, `--records ` | | `updateRecord` | `--target-table `, `--records ` | | `getRecords` | `--target-table `, `--query ` | Details: [action-types.md](../api-reference/action-types.md). ## secret ```bash inkreach-teable secret list [--base-id ] inkreach-teable secret set --name --value [--description ] [--base-id ] inkreach-teable secret update [--name ] [--value ] [--description ] [--base-id ] inkreach-teable secret delete [--base-id ] ``` Values are write-only — `list` never returns them. Scripts read via `process.env.`. ## runs ```bash inkreach-teable runs list [--status failed|succeeded|running] [--base-id ] inkreach-teable runs get [--base-id ] inkreach-teable runs rerun [--base-id ] ``` `rerun` only works on `failed` executions (backend validates). ## fire ```bash inkreach-teable fire button-click inkreach-teable fire webhook [--body ''] [--method ] ``` Manually trigger for testing. Webhook needs no auth (backend is `@Public`). ## sql ```bash inkreach-teable sql '