1.0.0-alpha.6 • Published 2 years ago

@massiveinfinity/mavis v1.0.0-alpha.6

Weekly downloads
-
License
Proprietary and C...
Repository
-
Last release
2 years ago

@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

NameArgument
Command-c or --commandRequiredSpecify your NPM command to start the project. If multiple commands, wrap with double quotes "..."
Environment-e or --environmentOptional. Default: "dev"Specify the environment defined in Infisical
1.0.0-alpha.6

2 years ago

1.0.0-alpha.5

2 years ago

1.0.0-alpha.4

2 years ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago