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/web

A repository's variables and their values, as JSON.

apex variable list --repo acme/web --json

Subcommands

apex variable set

Set a variable on one or more repositories, from --value or stdin

apex variable set [options] <name>
Arguments
ArgumentDescription
<name>variable name, as a workflow reads it: vars.NAME
Options
OptionDescription
--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]
Options
OptionDescription
--repo <owner/repo>repository
--jsonmachine-readable output

apex variable delete

Delete a variable from one or more repositories

apex variable delete [options] <name>
Arguments
ArgumentDescription
<name>variable name
Options
OptionDescription
--repo <owner/repo>repository (repeatable)
-y, --yesdo not ask; required when not on a terminal