Skip to content

A command-line program to easily control your environment properties.

Notifications You must be signed in to change notification settings

NeoUtils/EnvManager

Repository files navigation

EnvManager

Easily control your environment properties.

Installation

To install, download the installation file available at releases, extract, and run install.sh (Linux) with administrator permissions. For more detailed information, consult the installation instructions.

Compatibility: GNU/Linux, Termux

How It Works

EnvManager is ideal for projects with multiple environments, where variables are managed by a property file (named target) in the key=value format. With EnvManager, you can switch between different environments and perform other manipulations directly from the terminal.

Usage

After installation, EnvManager is accessed with the envm command, followed by a command and its arguments.

$ envm [options] <command> [arguments]

Other options: --path=, --version, --show-config

You can get the instructions for any command with the --help option.

$ envm --help

More information

Essential Commands

These commands cover the main functionalities for daily use.

install

Initialize EnvManager in your project directory with the install command.

$ envm install

Options: --target=, --force

More details

save

Save the current properties as an environment using save, followed by the environment name (named tag).

$ envm save <tag>

Options: --clipboard

More details

list

List the saved environments with the list command.

$ envm list

To list properties of a specific environment, add the tag after the command.

$ envm list <tag>

Options: --current, --target

More details

checkout

Switch to a different environment with checkout.

$ envm checkout <tag>

Options: --force

More details

delete

Delete one or more environments with delete.

$ envm delete <tags>

Options: --all

More details

Other Commands

set

Add or modify properties with set.

$ envm set <properties>

Options: --tag=, --all, --target-only

More details

remove

Remove specific properties with remove.

$ envm remove <keys>

Options: --tag=, --all, --target-only

More details

rename

Rename an environment with rename.

$ envm rename <old-tag> <new-tag>

rollback

Revert changes in the target, synchronizing with the current environment, using rollback.

$ envm rollback

Others commands

See the documentation for the other commands at docs.