Manage project environment variables with ease. ✨
Choose one of the following:
-
Download and install the latest release
-
Install with Homebrew 🍺
brew install twelvelabs/tap/envctl
-
Install from source 💻
go install github.com/twelvelabs/envctl@latest
First, initialize your project:
envctl init
Which generates an .envctl.yaml
file:
environments:
- name: local
vars:
EXAMPLE: "hello local"
- name: prod
vars:
EXAMPLE: "hello prod"
Then exec a command in one of the named environments:
envctl exec local -- sh -c 'echo $EXAMPLE'
# => hello local
envctl exec prod -- sh -c 'echo $EXAMPLE'
# => hello prod
# Ensures all required dependencies are installed
# and bootstraps the project for local development.
make setup
# Run tests.
make test
# Run the app.
make run
# Show help.
make