eraspace

Config

Flags every command accepts, and the environment variables that can replace them.

Global flags

--dir <path>
The app directory. Defaults to the nearest directory above with an eraspace.json.
--app <name or id>
The app to act on. Defaults to the app bound to this checkout. Env: ERASPACE_APP.
--url <origin>
The platform to talk to. Defaults to the hosted platform. Env: ERASPACE_URL.

Environment

ERASPACE_URL
The platform to deploy to, instead of the hosted one.
ERASPACE_APP
The app to act on, instead of the one bound to this checkout.
ERASPACE_TOKEN
An API token from eraspace token create, for CI.
ERASPACE_TOKEN_API
The platform origin the token belongs to. The CLI never sends the token anywhere else.

CI

Create a token once, then set it and its platform origin in CI.

npx eraspace token create --name ci   # add --read for inspection and logs only

export ERASPACE_TOKEN=<token>
export ERASPACE_TOKEN_API=<platform origin>
npx eraspace deploy