Reference
apex variable
Variables: set a repository's non-secret configuration from the terminal
apex variable [command]Examples
Set a repository variable; a variable is not secret, so --value is allowed.
apex variable set NODE_VERSION --value 24 --repo acme/webA repository's variables and their values, as JSON.
apex variable list --repo acme/web --jsonSubcommands
apex variable set
Set a variable on one or more repositories, from --value or stdin
apex variable set [options] <name>| Argument | Description |
|---|---|
<name> | variable name, as a workflow reads it: vars.NAME |
| Option | Description |
|---|---|
--value <value> | the value (not secret, so a flag is allowed); otherwise read from stdin |
--repo <owner/repo> | repository to set it on (repeatable) |
apex variable list
A repository's variables, names and values
apex variable list [options]| Option | Description |
|---|---|
--repo <owner/repo> | repository |
--json | machine-readable output |
apex variable delete
Delete a variable from one or more repositories
apex variable delete [options] <name>| Argument | Description |
|---|---|
<name> | variable name |
| Option | Description |
|---|---|
--repo <owner/repo> | repository (repeatable) |
-y, --yes | do not ask; required when not on a terminal |