After configuring your ENVs through the Portunus UI, there are two main ways to interact with them:

  • using a local .env file, you can automatically connect with Portunus
  • print-env is configured to process the PORTUNUS_JWT key to pull in all associated variables
  • install print-env  version >= 2.2.0 CLI 
  • include your desired team+project+stage in .env with the format:  PORTUNUS_JWT=[jwt]/[team id]/[project name]/[stage name]
    • running print-env will print out the ENV associated with the team+project+stage provided above
    • example usage: env $(print-env) node some-command

  • You can call the api directly via https://cli.mindswire.com/env?team=[team id]&project=[project name]&stage=[stage name]
  • supply your jwt token via the portunus-jwt header
  • The environment variables are a JSON object found in the response.vars field