<p>This is currently under <code>glab variable</code>,</p>
<p>Manage GitLab Project and Group Variables</p>
<pre><code>USAGE
  glab variable [flags]

ALIASES
  var

CORE COMMANDS
  delete:     Delete a project or group variable
  export:     Export project or group variables.
  get:        get a project or group variable
  list:       List project or group variables
  set:        Create a new project or group variable
  update:     Update an existing project or group variable

FLAGS
  -R, --repo OWNER/REPO   Select another repository using the OWNER/REPO or `GROUP/NAMESPACE/REPO` format or full URL or git URL

INHERITED FLAGS
  --help   Show help for command

LEARN MORE
  Use 'glab &lt;command&gt; &lt;subcommand&gt; --help' for more information about a command.
</code></pre>

CC BY-SA 4.0
2024-03-18T18:17:09.370Z
2024-03-18T18:17:09.370Z
Evan Carroll
<p>I would like to set an environmental variable with <code>glab</code>. I don't see the option on <code>glab ci</code>. How can I set an environmental variable?</p>

<gitlab><glab>
How can I set an environmental variable with glab (glab-cli)?
Evan Carroll
# How can I set an environmental variable with glab (glab-cli)?

(Asked by: username_0 on 2024-03-18)

I would like to set an environmental variable with `glab`. I don't see the option on `glab ci`. How can I set an environmental variable?

**Tags:** gitlab, glab


---

## 1 answers

### Answer by username_0 on 2024-03-18. Score: 0 | Accepted answer

This is currently under glab variable,
Manage GitLab Project and Group Variables
USAGE
  glab variable [flags]

ALIASES
  var

CORE COMMANDS
  delete:     Delete a project or group variable
  export:     Export project or group variables.
  get:        get a project or group variable
  list:       List project or group variables
  set:        Create a new project or group variable
  update:     Update an existing project or group variable

FLAGS
  -R, --repo OWNER/REPO   Select another repository using the OWNER/REPO or `GROUP/NAMESPACE/REPO` format or full URL or git URL

INHERITED FLAGS
  --help   Show help for command

LEARN MORE
  Use 'glab   --help' for more information about a command.


---

