1.0.0-alpha.6 • Published 2 years ago
@massiveinfinity/mavis v1.0.0-alpha.6
@massiveinfinity/mavis
A wrapper around Infisical to load Environment Variables into your local terminal session for the purpose of development.
Pre-requisite
- Install Infisical CLI
Installation
npm install --save-dev @massiveinfinity/mavisConfigurations
- Create a
.mavisrcfile in your local repository.
Add this file to your .gitignore!
- Update
.mavisrcfile with Tenant ID and Access Token. Obtain project's Access Token from your Admin
TENANT_ID=e7bfc2ea12bb02279333f3e4c71dc156
ACCESS_TOKEN=st.656e9d0d1e71c770489383aa.2409591f615ce686caac69df4a23e111.e7bfc2ea12bb02279333f3e4c71dc156- Update
package.jsonto include the new commandmaviswith 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 |
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