Skip to main content

mantil env

Exports project environment variables

Then you can use that variables in other shell comands.

Mantil project is determined by the current shell folder. You can be anywhere in the project tree.

If not specified (--stage option) default project stage is used.

USAGE

  mantil env [options]

OPTIONS

  -s, --stage string   Project stage to target instead of default
-u, --url Show only project API url

EXAMPLES

  ==> Set environment variables in terminal
$ eval $(mantil env)

==> Use current stage api url in other shell commands
$ curl -X POST $(mantil env -url)/ping

GLOBAL OPTIONS

      --help       Show command help
--no-color Don't use colors in output