﻿# octopus tenant variables update

Update the value of a tenant variable in Octopus Deploy

```text
Usage:
  octopus tenant variables update [flags]

Flags:
      --environment strings           Assign environment scopes to the variable. Multiple scopes can be supplied.
  -l, --library-variable-set string   The library variable set
  -n, --name string                   The name of the variable
  -p, --project string                The project
  -t, --tenant string                 The tenant
      --value string                  The value to set on the 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

```

## 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 tenant variables update
octopus tenant variables update --tenant "Bobs Fish Shack" --name "site-name" --value "Bob's Fish Shack" --project "Awesome Web Site" --environment "Test"
octopus tenant variables update --tenant "Sally's Tackle Truck" --name dbPassword --value "12345" --library-variable-set "Shared Variables"

```

## Learn more

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