Skip to content

query

Run SQL/GraphQL query.

Usage

tailor-sdk query [options]

Options

OptionAliasDescriptionRequiredDefaultEnv
--workspace-id <WORKSPACE_ID>-wWorkspace IDNo-TAILOR_PLATFORM_WORKSPACE_ID
--profile <PROFILE>-pWorkspace profileNo-TAILOR_PLATFORM_PROFILE
--config <CONFIG>-cPath to SDK config fileNo"tailor.config.ts"TAILOR_PLATFORM_SDK_CONFIG_PATH
--engine <ENGINE>-Query engine (sql or gql)Yes--
--query <QUERY>-qQuery string to execute directly; omit to start REPL modeNo--
--file <FILE>-fRead query string from file; omit to start REPL modeNo--
--edit-Open a temporary file in your editor; omit to start REPL modeNofalse-
--machine-user <MACHINE_USER>-mMachine user name for query executionYes-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.