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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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