GithubHelp home page GithubHelp logo

dimafe6 / envault-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from envault/cli

0.0 0.0 0.0 450 KB

An NPX CLI to connect to your Envault server and sync its credentials to your local .env file.

Home Page: https://github.com/envault/envault

License: MIT License

JavaScript 1.86% TypeScript 97.95% Batchfile 0.19%

envault-cli's Introduction

Envault CLI

The Envault CLI allows you to connect to your Envault server and sync its credentials to your local .env file.

Usage

To use the Envault CLI, you must have Node.js installed on your computer.

On your Envault dashboard, you will find an initialization command for each environment, which you can run to establish a connection to your Envault server, and pull your variables. This command only needs to be run the first time you connect your .env to Envault. An example initialization command:

npx envault-ex vault.envault.dev 84632 iCNaGGLou6v0mRas

After you've run your environment initialization command for the first time, you can pull your .env again easily:

npx envault-ex

Secure files

Secure files will be downloaded to the ./.secure_files directory.

Options

By default, Envault will not pull variables that are not already present in your .env file. To enable this behaviour, use the --constructive flag:

npx envault-ex --constructive

You are able to customise the name of your .env file using the --filename flag:

npx envault-ex vault.envault.dev 84632 iCNaGGLou6v0mRas --filename=.myenv

The Envault CLI will sometimes prompt you to confirm your actions, especially those made in constructive mode. To bypass these prompts, use the --force flag:

npx envault-ex --force

The Envault CLI will prompt you to confirm replace exists Secured Files. To bypass these prompts, use the --forceDownload flag. And all local files will be replaced server files:

npx envault-ex --forceDownload

Handling multiple environments

You can store multiple environments instead of overwriting when authenticating a new environment.

You are able to sync a specific .env by providing the server and environment ID. This is especially useful if you have multiple .env files. For example:

npx envault-ex envault.server.test 1 llT8J6tEDbtJgSln 
npx envault-ex envault.server.test 2 BXYtZdNkQjtWSqE6

Now, you may sync each environment:

npx envault-ex 												// Will still sync .env from "1"
npx envault-ex envault.server.test 2 --filename=.env.settings  // Will sync .env.settings from "2"

If no server and environment provided it will default to the first environment that was added.

Need Help?

๐Ÿž If you spot a bug with Envault, please submit a detailed issue, and wait for assistance.

๐Ÿค” If you have a question or feature request, please start a new discussion.

๐Ÿ” If you discover a vulnerability within Envault, please review our security policy.

envault-cli's People

Contributors

danharrin avatar dependabot[bot] avatar dimafe6 avatar tonning avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.