query
Run SQL/GraphQL query.
Usage
tailor-sdk query [options]Options
| Option | Alias | Description | Required | Default | Env |
|---|---|---|---|---|---|
--workspace-id <WORKSPACE_ID> | -w | Workspace ID | No | - | TAILOR_PLATFORM_WORKSPACE_ID |
--profile <PROFILE> | -p | Workspace profile | No | - | TAILOR_PLATFORM_PROFILE |
--config <CONFIG> | -c | Path to SDK config file | No | "tailor.config.ts" | TAILOR_PLATFORM_SDK_CONFIG_PATH |
--engine <ENGINE> | - | Query engine (sql or gql) | Yes | - | - |
--query <QUERY> | -q | Query string to execute directly; omit to start REPL mode | No | - | - |
--file <FILE> | -f | Read query string from file; omit to start REPL mode | No | - | - |
--edit | - | Open a temporary file in your editor; omit to start REPL mode | No | false | - |
--machine-user <MACHINE_USER> | -m | Machine user name for query execution | Yes | - | TAILOR_PLATFORM_MACHINE_USER_NAME |
--newline-on-enter | - | REPL: when true, Enter inserts a newline and Shift+Enter submits. Use --no-newline-on-enter to swap. | No | - | - |
See Global Options for options available to all commands.