Skip to main content
The CLI reads its settings from the environment and from one optional config file. Secrets come only from the environment.

Environment variables

The config file

The file is optional. When it exists, it looks like this:
  • default names the profile to use when nothing else chooses one. It is optional.
  • profiles maps a name to settings. Each profile may set apiUrl. Nothing else is read from a profile.
  • The file must not contain tokens. The CLI does not read a token from it.
A malformed file stops the command with a message that says what is wrong.

Choosing the API address

The first of these that is set wins:
  1. --api-url <url> on the command line.
  2. PARMANA_API_URL.
  3. The apiUrl of the chosen profile.
  4. The production address, https://parmana-api-real.vercel.app.

Choosing the profile

The first of these that is set wins:
  1. --profile <name> on the command line. If the name is not in the config file, the command stops.
  2. PARMANA_PROFILE.
  3. The default in the config file.

Address rules

An address must be https. The one exception is a local address, http://127.0.0.1 or http://localhost, for development against a local server. Trailing slashes are removed.

Timeouts

Each request waits 30 seconds by default. Change it with --timeout <seconds>, for example --timeout 60. The value must be a positive number.