envctl

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 3 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL