﻿# CLI

> Encrypt, run, and manage .env files from the command line

This reference covers the Rust CLI for Dotenvx 3.0. Available commands depend on your build features. Use [dotenvx install --add](/docs/cli/install-add/) to add a feature.

![Sunglasses beside a laptop keyboard](/cli.png)

- [run](/docs/cli/run/)
- [run --file](/docs/cli/run-f/)
- [run --keys-file](/docs/cli/run-fk/)
- [run --env](/docs/cli/run-env/)
- [run --overload](/docs/cli/run-overload/)
- [run --strict](/docs/cli/run-strict/)
- [run --ignore](/docs/cli/run-ignore/)
- [run --convention](/docs/cli/run-convention/)
- [run --token](/docs/cli/run-token/)
- [get](/docs/cli/get/)
- [get --file](/docs/cli/get-key-f/)
- [get --keys-file](/docs/cli/get-key-fk/)
- [get --env](/docs/cli/get-key-env/)
- [get --overload](/docs/cli/get-key-overload/)
- [get --strict](/docs/cli/get-key-strict/)
- [get --ignore](/docs/cli/get-key-ignore/)
- [get --convention](/docs/cli/get-convention/)
- [get --token](/docs/cli/get-token/)
- [get --all](/docs/cli/get-all/)
- [get --pretty-print](/docs/cli/get-pretty-print/)
- [get --format](/docs/cli/get-format/)
- [set](/docs/cli/set/)
- [set --file](/docs/cli/set-key-value-f/)
- [set --keys-file](/docs/cli/set-key-value-fk/)
- [set --token](/docs/cli/set-token/)
- [set --encrypt](/docs/cli/set-key-value-encrypt/)
- [set --plain](/docs/cli/set-key-value-plain/)
- [set --no-create](/docs/cli/set-key-value-no-create/)
- [del](/docs/cli/del/)
- [del --file](/docs/cli/del-key-f/)
- [encrypt](/docs/cli/encrypt/)
- [encrypt --file](/docs/cli/encrypt-f/)
- [encrypt --keys-file](/docs/cli/encrypt-fk/)
- [encrypt --token](/docs/cli/encrypt-token/)
- [encrypt --with](/docs/cli/encrypt-with/)
- [encrypt --stdout](/docs/cli/encrypt-stdout/)
- [encrypt --no-create](/docs/cli/encrypt-no-create/)
- [decrypt](/docs/cli/decrypt/)
- [decrypt --file](/docs/cli/decrypt-f/)
- [decrypt --keys-file](/docs/cli/decrypt-fk/)
- [decrypt --token](/docs/cli/decrypt-token/)
- [decrypt --stdout](/docs/cli/decrypt-stdout/)
- [keypair](/docs/cli/keypair/)
- [keypair --file](/docs/cli/keypair-f/)
- [keypair --keys-file](/docs/cli/keypair-fk/)
- [keypair --token](/docs/cli/keypair-token/)
- [keypair --pretty-print](/docs/cli/keypair-pretty-print/)
- [keypair --format](/docs/cli/keypair-format/)
- [install](/docs/cli/install/)
- [install --add](/docs/cli/install-add/)
- [install --remove](/docs/cli/install-remove/)
- [install --build](/docs/cli/install-build/)
- [install --version](/docs/cli/install-version/)
- [install --directory](/docs/cli/install-directory/)
- [install --os](/docs/cli/install-os/)
- [install --arch](/docs/cli/install-arch/)
- [install --id](/docs/cli/install-id/)
- [install --hostname](/docs/cli/install-hostname/)
- [update](/docs/cli/update/)
- [update --hostname](/docs/cli/update-hostname/)
- [uninstall](/docs/cli/uninstall/)
- [login](/docs/cli/login/)
- [login --hostname](/docs/cli/login-hostname/)
- [logout](/docs/cli/logout/)
- [logout --hostname](/docs/cli/logout-hostname/)
- [token](/docs/cli/token/)
- [token --unmask](/docs/cli/token-unmask/)
- [info](/docs/cli/info/)
- [info --pretty-print](/docs/cli/info-pretty-print/)
- [protect](/docs/cli/protect/)
- [protect --docker](/docs/cli/protect-docker-directory/)
- [ls](/docs/cli/ls/)
- [ls --file](/docs/cli/ls-f/)
- [ls --exclude-file](/docs/cli/ls-ef/)
- [ls --json](/docs/cli/ls-json/)
- [genexample](/docs/cli/genexample/)
- [genexample --file](/docs/cli/genexample-f/)
- [gitignore](/docs/cli/gitignore/)
- [gitignore --pattern](/docs/cli/gitignore-pattern/)
- [precommit](/docs/cli/precommit/)
- [precommit --install](/docs/cli/precommit-install/)
- [precommit --uninstall](/docs/cli/precommit-uninstall/)
- [prebuild](/docs/cli/prebuild/)
- [native](/docs/cli/native/)
- [native up](/docs/cli/native/up/)
- [native up --file](/docs/cli/native/up-f/)
- [native up --keys-file](/docs/cli/native/up-fk/)
- [native down](/docs/cli/native/down/)
- [native down --file](/docs/cli/native-down-f/)
- [native down --keys-file](/docs/cli/native-down-fk/)
- [native push](/docs/cli/native/push/)
- [native push --file](/docs/cli/native-push-f/)
- [native push --keys-file](/docs/cli/native-push-fk/)
- [native pull](/docs/cli/native/pull/)
- [native pull --file](/docs/cli/native-pull-f/)
- [native pull --keys-file](/docs/cli/native-pull-fk/)
- [native list](/docs/cli/native/list/)
- [native list --pretty-print](/docs/cli/native/list-pretty-print/)
- [native show](/docs/cli/native/show/)
- [native show --pretty-print](/docs/cli/native/show-pretty-print/)
- [1password](/docs/cli/1password/)
- [1password up](/docs/cli/1password-up/)
- [1password up --file](/docs/cli/1password-up-f/)
- [1password up --keys-file](/docs/cli/1password-up-fk/)
- [1password down](/docs/cli/1password-down/)
- [1password down --file](/docs/cli/1password-down-f/)
- [1password down --keys-file](/docs/cli/1password-down-fk/)
- [1password push](/docs/cli/1password-push/)
- [1password push --file](/docs/cli/1password-push-f/)
- [1password push --keys-file](/docs/cli/1password-push-fk/)
- [1password pull](/docs/cli/1password-pull/)
- [1password pull --file](/docs/cli/1password-pull-f/)
- [1password pull --keys-file](/docs/cli/1password-pull-fk/)
- [1password list](/docs/cli/1password/list/)
- [1password list --pretty-print](/docs/cli/1password/list-pretty-print/)
- [1password show](/docs/cli/1password/show/)
- [1password show --pretty-print](/docs/cli/1password/show-pretty-print/)
- [bitwarden](/docs/cli/bitwarden/)
- [bitwarden up](/docs/cli/bitwarden-up/)
- [bitwarden up --file](/docs/cli/bitwarden-up-f/)
- [bitwarden up --keys-file](/docs/cli/bitwarden-up-fk/)
- [bitwarden down](/docs/cli/bitwarden-down/)
- [bitwarden down --file](/docs/cli/bitwarden-down-f/)
- [bitwarden down --keys-file](/docs/cli/bitwarden-down-fk/)
- [bitwarden push](/docs/cli/bitwarden-push/)
- [bitwarden push --file](/docs/cli/bitwarden-push-f/)
- [bitwarden push --keys-file](/docs/cli/bitwarden-push-fk/)
- [bitwarden pull](/docs/cli/bitwarden-pull/)
- [bitwarden pull --file](/docs/cli/bitwarden-pull-f/)
- [bitwarden pull --keys-file](/docs/cli/bitwarden-pull-fk/)
- [bitwarden list](/docs/cli/bitwarden/list/)
- [bitwarden list --pretty-print](/docs/cli/bitwarden/list-pretty-print/)
- [bitwarden show](/docs/cli/bitwarden/show/)
- [bitwarden show --pretty-print](/docs/cli/bitwarden/show-pretty-print/)
- [armor](/docs/cli/armor/introduction/)
- [armor up](/docs/cli/armor/up/)
- [armor up --file](/docs/cli/armor/up-f/)
- [armor up --token](/docs/cli/armor/up-token/)
- [armor up --team](/docs/cli/armor/up-team/)
- [armor down](/docs/cli/armor/down/)
- [armor down --file](/docs/cli/armor-down-f/)
- [armor down --token](/docs/cli/armor-down-token/)
- [armor down --team](/docs/cli/armor-down-team/)
- [armor push](/docs/cli/armor/push/)
- [armor push --file](/docs/cli/armor-push-f/)
- [armor push --token](/docs/cli/armor-push-token/)
- [armor push --team](/docs/cli/armor-push-team/)
- [armor pull](/docs/cli/armor/pull/)
- [armor pull --file](/docs/cli/armor/pull-f/)
- [armor pull --token](/docs/cli/armor/pull-token/)
- [armor pull --team](/docs/cli/armor/pull-team/)
- [armor list](/docs/cli/armor/list/)
- [armor list --pretty-print](/docs/cli/armor/list-pretty-print/)
- [armor list --token](/docs/cli/armor/list-token/)
- [armor show](/docs/cli/armor/show/)
- [armor show --pretty-print](/docs/cli/armor/show-pretty-print/)
- [armor show --token](/docs/cli/armor/show-token/)
- [armor show --team](/docs/cli/armor/show-team/)
- [armor open](/docs/cli/armor/open/)
- [armor open --file](/docs/cli/armor/open-f/)
- [armor invite](/docs/cli/armor/invite/)
- [armor invite --team](/docs/cli/armor/invite-team/)
- [armor invite --email](/docs/cli/armor/invite-email/)
- [armor invite --token](/docs/cli/armor/invite-token/)
- [armor login](/docs/cli/armor/login/)
- [armor login --hostname](/docs/cli/armor-login-hostname/)
- [armor logout](/docs/cli/armor/logout/)
- [armor logout --hostname](/docs/cli/armor-logout-hostname/)
- [armor status](/docs/cli/armor/status/)
- [armor settings](/docs/cli/armor/settings/)
- [armor settings username](/docs/cli/armor/settings-username/)
- [armor settings token](/docs/cli/armor/settings-token/)
- [armor settings token --unmask](/docs/cli/armor/settings-token-unmask/)
- [armor settings device](/docs/cli/armor/settings-device/)
- [armor settings device --unmask](/docs/cli/armor/settings-device-unmask/)
- [armor settings hostname](/docs/cli/armor/settings-hostname/)
- [armor settings path](/docs/cli/armor/settings-path/)
- [armor settings on](/docs/cli/armor/settings-on/)
- [armor settings off](/docs/cli/armor/settings-off/)
- [del KEY](/docs/cli/del-key/)
- [encrypt KEY_PLAIN](/docs/cli/encrypt-plain-suffix/)
- [genexample directory](/docs/cli/genexample-directory/)
- [get --all --pretty-print](/docs/cli/get-all-pretty-print/)
- [get --format eval-export](/docs/cli/get-eval-export/)
- [get --format eval](/docs/cli/get-eval/)
- [get (json)](/docs/cli/get-json/)
- [get --convention=nextjs](/docs/cli/get-key-convention-nextjs/)
- [get -f directory](/docs/cli/get-key-f-directory/)
- [get KEY -f](/docs/cli/get-key-f/)
- [get KEY](/docs/cli/get-key/)
- [get --format shell](/docs/cli/get-shell/)
- [keypair --format json](/docs/cli/keypair-json/)
- [keypair KEY](/docs/cli/keypair-key/)
- [keypair --format shell](/docs/cli/keypair-shell/)
- [prebuild directory](/docs/cli/prebuild-directory/)
- [precommit directory](/docs/cli/precommit-directory/)
- [protect --docker](/docs/cli/protect-docker/)
- [run Alternate Values](/docs/cli/run-alternate-values/)
- [run Command Substitution](/docs/cli/run-command-substitution/)
- [run Contextual Help](/docs/cli/run-contextual-help/)
- [run DOTENV_ENV=production](/docs/cli/run-convention-flow-dotenv-env/)
- [run --convention=nextjs](/docs/cli/run-convention-nextjs/)
- [run Default Values](/docs/cli/run-default-values/)
- [run DOTENV_FILE=.env.ci](/docs/cli/run-dotenv-private-key-ci/)
- [run Combine Multiple](/docs/cli/run-dotenv-private-key-multiple/)
- [run DOTENV_FILE=.env.production](/docs/cli/run-dotenv-private-key-production/)
- [run DOTENV_PRIVATE_KEY](/docs/cli/run-dotenv-private-key/)
- [run Environment Variable Precedence](/docs/cli/run-environment-variable-precedence/)
- [run -f directory](/docs/cli/run-f-directory/)
- [run -f](/docs/cli/run-f/)
- [run Interpolation Syntax Summary](/docs/cli/run-interpolation-syntax-summary/)
- [run Multiline](/docs/cli/run-multiline/)
- [run Shell Expansion](/docs/cli/run-shell-expansion/)
- [run -- node index.js](/docs/cli/run-validate/)
- [run Variable Expansion](/docs/cli/run-variable-expansion/)
- [set KEY_PLAIN value](/docs/cli/set-key-plain-suffix/)
- [set Values with leading dash](/docs/cli/set-key-value-with-leading-dash/)
- [set Values with spaces](/docs/cli/set-key-value-with-spaces/)
- [set KEY value](/docs/cli/set-key-value/)
- [--quiet](/docs/cli/quiet/)
- [--verbose](/docs/cli/verbose/)
- [--debug](/docs/cli/debug/)
- [--log-level](/docs/cli/log-level/)
- [--help](/docs/cli/help/)
- [--version](/docs/cli/version/)
