﻿# octopus project variables

Manage project variables in Octopus Deploy

```text
Usage:
  octopus project variables [command]

Aliases:
  variables, variable

Available Commands:
  create Create a variable for a project
  delete Delete a project variable
  exclude Exclude a variable set from a project
  help Help about any command
  include Include a variable set in a project
  list List project variables
  update Update the value of a project variable
  view View all values of a project variable

Global Flags:
  -h, --help                   Show help for a command
      --no-prompt              Disable prompting in interactive mode
  -f, --output-format string   Specify the output format for a command ("json", "table", or "basic") (default "table")
  -s, --space string           Specify the space for operations

Use "octopus project variables [command] --help" for more information about a command.
```

## Examples

:::div{.success}
**Octopus Samples instance**

Many of the examples we use, reference the [samples instance](https://samples.octopus.app/app#/users/sign-in) of Octopus Deploy. If you'd like to explore the samples instance, you can log in as a guest.
:::

```bash
octopus project variable list "Deploy Web App"
octopus project variable view --name "DatabaseName" --project Deploy
octopus project variable update

```

## Learn more

- [Octopus CLI](/docs/octopus-rest-api/cli)
- [Creating API keys](/docs/octopus-rest-api/how-to-create-an-api-key)
