1.0.2 â€Ē Published 10 months ago

swap-env v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

swap-env

The best .env switching tool available

About

Swap-Env is an open-source tool which makes switching between multiple .env files very easy.

Star 🌟 & watch 👀 the repository to get updates.

Features:

  • 🧑‍ðŸ’ŧ Tech Stack Independent: It integrates will all tech stacks.
  • ðŸŠķ Fast->Faster->Fastest: Switches envs in a blink.
  • ⚡ïļ Interactive: CLI tool but very interactive.

Dependencies

  • NodeJs : Make sure you have NodeJs installed.

Installation

Run command after making sure NodeJs is installed:

npm i -g swap-env

That's it.

Once complete swap-env will be available as a CLI command.

To test your installation run command:

swap-env --help

How To Use?

Navigate to your Project

Initialize:

To initialize run command:

swap-env init

This command will initialize swap-env into your current project.

It creates /envs folder in the root folder of your project.

Fill this folder up with all the .env files you'll ever need.

You are good to go.

How to Switch:

To switch between .env(s) run command:

swap-env switch

This will open a interactive selector, where you can use your arrow keys to select a target Environment.

Viewing all Environments:

To view all available envs run command:

swap-env ls

Checking current Environment:

To view current Environment run command:

swap-env current
1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago