> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Manage Secrets

> Manage squid secrets in SQD Cloud with the sqd secrets CLI.

# `sqd secrets`

Manage account secrets

The secrets are [exposed as a context](/en/cloud/resources/env-variables#secrets), and are accessible to all the squids deployed by the current SQD Cloud [organization](/en/cloud/resources/organizations).

* [`sqd secrets list`](#sqd-secrets-list)
* [`sqd secrets remove NAME`](#sqd-secrets-remove-name)
* [`sqd secrets set NAME VALUE`](#sqd-secrets-set-name-value)

## `sqd secrets list`

List organization secrets in the Cloud

```
USAGE
  $ sqd secrets list [--interactive] [-o <value>]

FLAGS
  -o, --org=<value>       Organization
      --[no-]interactive  Disable interactive mode

ALIASES
  $ sqd secrets ls
```

*See code: [src/commands/secrets/list.ts](https://github.com/subsquid/squid-cli/blob/v3.3.5/src/commands/secrets/list.ts)*

## `sqd secrets remove NAME`

Delete an organization secret in the Cloud

```
USAGE
  $ sqd secrets remove NAME [--interactive] [-o <value>]

ARGUMENTS
  NAME  The secret name

FLAGS
  -o, --org=<value>       Organization
      --[no-]interactive  Disable interactive mode

ALIASES
  $ sqd secrets rm
```

*See code: [src/commands/secrets/remove.ts](https://github.com/subsquid/squid-cli/blob/v3.3.5/src/commands/secrets/remove.ts)*

## `sqd secrets set NAME VALUE`

Add or update an organization secret in the Cloud. `VALUE` is required by `@subsquid/cli@3.3.5`; omitting it does not read the value from standard input. The secret is exposed as an environment variable to all squids in the organization. Changes take effect only after a squid is restarted or updated.

<Warning>
  The value is a positional command-line argument and may be recorded in shell
  history. Use the Cloud console when that is not acceptable.
</Warning>

```
USAGE
  $ sqd secrets set NAME VALUE [--interactive] [-o <value>]

ARGUMENTS
  NAME   The secret name
  VALUE  The secret value

FLAGS
  -o, --org=<value>       Organization
      --[no-]interactive  Disable interactive mode
```

*See code: [src/commands/secrets/set.ts](https://github.com/subsquid/squid-cli/blob/v3.3.5/src/commands/secrets/set.ts)*


## Related topics

- [Environment variables and secrets](/en/cloud/resources/env-variables.md)
- [Deployment manifest](/en/cloud/reference/manifest.md)
- [Organizations](/en/cloud/resources/organizations.md)
- [Troubleshooting](/en/cloud/troubleshooting.md)
- [Deployment Guide](/en/cloud/deployment-guide.md)
