src abc variables set

Set variables on a workflow instance.

Set workflow instance variables

Examples:

Set a string variable on a workflow instance:

$ src abc variables set QWdlbnRpY1dvcmtmbG93SW5zdGFuY2U6MQ== prompt="tighten the review criteria"

Set multiple variables in one request:

$ src abc variables set QWdlbnRpY1dvcmtmbG93SW5zdGFuY2U6MQ== --var prompt="tighten the review criteria" --var checkpoints='[1,2,3]'

Set a structured JSON value:

$ src abc variables set QWdlbnRpY1dvcmtmbG93SW5zdGFuY2U6MQ== checkpoints='[1,2,3]'

NOTE: Values are interpreted as JSON literals when valid. Otherwise they are sent as plain strings.

Usage

SH
$ src abc variables set [options] <workflow-instance-id> [<name>=<value> ...]

Flags

NameDescriptionDefault Value
--dump-requestsLog GraphQL requests and responses to stdoutfalse
--get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
--insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
--traceLog the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracingfalse
--user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue
--varVariable assignment in <name>=<value> form. Repeat to set multiple variables.``