# `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

| Name | Description | Default Value |
|------|-------------|---------------|
| `--dump-requests` | Log GraphQL requests and responses to stdout | `false`|
| `--get-curl` | Print the curl command for executing this query and exit (WARNING: includes printing your access token!) | `false`|
| `--insecure-skip-verify` | Skip validation of TLS certificates against trusted chains | `false`|
| `--trace` | Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing | `false`|
| `--user-agent-telemetry` | Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph | `true`|
| `--var` | Variable assignment in &lt;name&gt;=&lt;value&gt; form. Repeat to set multiple variables. | ``|