Skip to content

enpxio context

Manage connections to instances of the EnPowerX Platform. A context contains:

Contexts are used to encapsulate all relevant connection details. A context contains:

  • API Endpoint
  • OIDC settings
  • OIDC Endpoint
  • Client ID
  • Client Credentials
  • Scopes
  • Grant Type

There is a default context pre-configured to use the production API endpoint.

Contexts are unauthenticated by default. You can use auth command to change this.

Synopsis

enpxio context COMMAND

Commands

COMMAND is one of the following:

create
Create a new context
remove
Remove the given context
list
Lists all available contexts
set-default
Set the default context

Example

enpxio context create test --environment=test.enpowerx.io
enpxio context create dev --environment=dev.enpowerx.io
enpxio context create local --api=http://localhost:8080 --oidc=https://auth.dev.enpowerx.io

enpxio auth login --context test device $TEST_CLIENT_ID
enpxio auth login --context dev device $DEV_CLIENT_ID
enpxio auth login --context local device $DEV_CLIENT_ID