Skip to content

twelvelabs/envctl

Repository files navigation

envctl

build codecov

Manage project environment variables with ease. ✨

Installation

Choose one of the following:

  • Download and install the latest release :octocat:

  • Install with Homebrew 🍺

    brew install twelvelabs/tap/envctl
  • Install from source 💻

    go install github.com/twelvelabs/envctl@latest

Usage

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

Development

# 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

About

Manage project environment variables

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •