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

# devbox secrets download

> Download environment variables into the specified file

## Synopsis[​](#synopsis "Direct link to Synopsis")

Download environment variables stored into the specified file (most commonly a .env file). The
format of the file is one NAME=VALUE per line.

```bash theme={null}
devbox secrets download <file1> [flags]
```

## Options[​](#options "Direct link to Options")

```
--environment string   Environment name (e.g. dev, prod)
                       (default "dev")
-f, --format string    File format: env or json (default "env")
-h, --help             help for download
--org-id string        Organization id to namespace secrets by
--project-id string    Project id to namespace secrets by
```

## SEE ALSO[​](#see-also "Direct link to SEE ALSO")

* [devbox-secrets](/docs/devbox/cli-reference/devbox-secrets/) - Manage environment variables and
  secrets

[Edit this page](https://github.com/jetify-com/docs/tree/main/docs/devbox/cli-reference/devbox-secrets-download/index.mdx)
