> ## 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 generate direnv

> Top level command for generating the .envrc file for your Devbox Project. This can be used with [direnv](/docs/devbox/ide-configuration/direnv/) to automatically start your shell when you cd into your devbox directory

```bash theme={null}
devbox generate direnv [flags]
```

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

| Option                     | Description                                                                                                                                  |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `-c, --config string`      | path to directory containing a devbox.json config file                                                                                       |
| `-e, --env stringToString` | environment variables to set in the devbox environment (default \[])                                                                         |
| `--env-file string`        | path to a file containing environment variables to set in the devbox environment. If the file does not exist, then this parameter is ignored |
| `-h, --help`               | help for direnv                                                                                                                              |
| `-q, --quiet`              | Quiet mode: Suppresses logs.                                                                                                                 |

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

* [devbox generate](/docs/devbox/cli-reference/devbox-generate/) - Generate supporting files for
  your project

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