Skip to main content

Environment Manager. CLI to manage environment variables. This tool was created to simplify working with multiple .env files across different projects and environments (development, staging, and local).

Project description

CLI to manage environment variables. This tool was created to simplify working with multiple .env files across different projects and environments (development, staging, and local).

Installation

To install the package, simply run:

pip install envm

Commands

save

Save the current environment file to the environments database. By default, it looks for a .env file in the current directory.

Options:

  • --envfile: Specify a different environment file name (default: .env)
  • --overwrite/--no-overwrite: Overwrite existing environment if it exists (default: false)
$ envm save users.dev
$ envm save users.dev --envfile .env.prod
$ envm save users.dev --overwrite

ls

List all your saved environment files. Shows a count of total environments at the end.

$ envm ls

use

Create an environment file in the current directory from a saved environment. By default, it creates a .env file.

Options:

  • --envfile: Specify a different output file name (default: .env)
  • --overwrite/--no-overwrite: Overwrite existing file if it exists (default: false)
$ envm use users.dev
$ envm use users.dev --envfile .env.prod
$ envm use users.dev --overwrite

delete

Delete a saved environment file. Use --force to skip confirmation:

$ envm delete users.dev
$ envm delete users.dev --force

Enable Shell Completion

Enable autocompletion for your environment variable files

zsh

curl https://raw.githubusercontent.com/emmanueloctavi0/envm/refs/heads/main/src/completion/envm_complete.zsh >> ~/.zshrc

bash

curl https://raw.githubusercontent.com/emmanueloctavi0/envm/refs/heads/main/src/completion/envm_complete.bash >> ~/.bashrc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envm-0.1.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envm-0.1.3-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file envm-0.1.3.tar.gz.

File metadata

  • Download URL: envm-0.1.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for envm-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b3a40a16a5fc8f55d4fbb8c9cc78e06a10be618bf2945f975bd37f0982fc53e5
MD5 2b3490322c2db132dbc09512a6028887
BLAKE2b-256 c2a136118f9eac216b94dc6890a2e4e7ae27e80780e056a23931e4f4cfe6546a

See more details on using hashes here.

File details

Details for the file envm-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: envm-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for envm-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db07f64d3cac485cd56f110965ad947aa57317d89095c5c105689cd8f9bd6b6f
MD5 74b1f225d416922ff13043729ecb2dd7
BLAKE2b-256 82f4b2752b9921b05d2d5dbba79f39b2952ec177f9b7d168d16dd9b387b9c739

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page