@massiveinfinity/mavis

1.0.0-alpha.6 • Public • Published

@massiveinfinity/mavis

A wrapper around Infisical to load Environment Variables into your local terminal session for the purpose of development.

Pre-requisite

  1. Install Infisical CLI

Installation

npm install --save-dev @massiveinfinity/mavis

Configurations

  1. Create a .mavisrc file in your local repository.

Add this file to your .gitignore!

  1. Update .mavisrc file with Tenant ID and Access Token. Obtain project's Access Token from your Admin
TENANT_ID=e7bfc2ea12bb02279333f3e4c71dc156
ACCESS_TOKEN=st.656e9d0d1e71c770489383aa.2409591f615ce686caac69df4a23e111.e7bfc2ea12bb02279333f3e4c71dc156
  1. Update package.json to include the new command mavis with some arguments
{
  ...,
  "scripts": {
    "dev:v0": "NODE_ENV=development nodemon -r dotenv/config",
    "dev": "mavis --command=\"npm run dev:v0\"",
  },
  ...
}

CLI arguments

Name Argument
Command -c or --command Required Specify your NPM command to start the project. If multiple commands, wrap with double quotes "..."
Environment -e or --environment Optional. Default: "dev" Specify the environment defined in Infisical

Readme

Keywords

none

Package Sidebar

Install

npm i @massiveinfinity/mavis

Weekly Downloads

13

Version

1.0.0-alpha.6

License

Proprietary and Confidential

Unpacked Size

4.37 kB

Total Files

3

Last publish

Collaborators

  • barrymi
  • khaishien