# CLI Reference Complete command reference for `inkreach-teable`. Global options apply to all commands. ## Global Options | Option | Description | |--------|-------------| | `--endpoint ` | Backend URL (default `http://localhost:3003`) | | `--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 (get/update/visible-choices take — id or display name, auto-resolved) inkreach-teable field list [--with-options] # --with-options: OPTIONS summary column + per-choice visibility conditions for select fields inkreach-teable field get # human mode renders select choices with their visibilityFilter conditions; --json for raw inkreach-teable field create --table-id --name [--type ] [--options ''] \ [--description ] [--lookup-options ''] [--is-lookup] # --type optional: inferred from --options shape / --name when omitted inkreach-teable field update [--name ] [--options ''] # --options goes via convert API inkreach-teable field visible-choices # evaluate select-choice visibilityFilter 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 # view presets (view-scoped shared named filter/sort bundles, applied via toolbar) inkreach-teable preset list [--view-id ] inkreach-teable preset create --table-id --view-id --name [--description ] \ [--filter ''] [--sort ''] [--group ''] [--options ''] [--column-meta ''] inkreach-teable preset update --table-id [--name ] [--description ] [--filter '' ...] inkreach-teable preset delete --table-id ``` ## 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-ids ` | | `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 ` | | `sendNotification` | `--to-user `, `--title `, `--message `, `--severity `, `--path ` | 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`). ## subscription ```bash inkreach-teable subscription list inkreach-teable subscription get inkreach-teable subscription create --name --table-id [options] inkreach-teable subscription update [options] inkreach-teable subscription delete inkreach-teable subscription events inkreach-teable subscription send ``` Record digest/instant email subscriptions. Options (`--filter`, `--send-mode`, `--schedule-*`, `--trigger-on-enter`, …) and semantics: [subscription.md](subscription.md). ## sql ```bash inkreach-teable sql '