enpxio context create¶
Create a new context to work with the EnPowerX Platform.
The --environment
flag sets API and OIDC endpoints internally.
That is, enpxio context create --environment dev.enpowerx.io
has the same result as enpxio context create --api https://apis.dev.enpowerx.io:443 --oidc https://auth.dev.enpowerx.io
Using --api
and --oidc
is mainly meant to be used for local development.
Synopsis¶
enpxio context create CONTEXT_NAME
[--environment ENVIRONMENT
] [--api URL
] [--oidc URL
]
Flags¶
--environment ENVIRONMENT
-
Specify the environment to use
e.genpowerx.io
ortest.enpowerx.io
Note
This sets API and OIDC endpoints internally. I.e.,
--environment test.enpowerx.io
is equivalent to
--api https://apis.test.enpowerx.io:443 --oidc https://auth.test.enpowerx.io
. --api URL
-
Specify the API endpoint URL; must contain scheme (
http
/https
) and port number
e.g.https://apis.enpowerx.io:443
Note
This is usually handled by setting
--environment
instead, except for local development. --oidc URL
-
Specify the OIDC endpoint URL
e.g.https://auth.enpowerx.io
Note
This is usually handled by setting
--environment
instead, except for local development.
Example¶
enpxio context create test --environment=test.enpowerx.io
enpxio context create local --api=http://localhost:8080 --oidc=https://auth.dev.enpowerx.io