-
Notifications
You must be signed in to change notification settings - Fork 0
context list use delete
The read-side and switch-side subcommands for the
context model. These don't change context fields
themselves — for that see context add,
context init, or context update.
List every configured context. Marks the current one.
noetl context listExample output:
CURRENT NAME SERVER_URL RUNTIME AUTH0
* gke-prod https://gateway.acme.com distributed acme.us.auth0.com
gke-pf http://127.0.0.1:18082 distributed acme.us.auth0.com
local http://localhost:8082 local (none)
Show the current context's details, including whether a gateway
session token is cached and which kube_* fields are set.
noetl context currentExample output:
Current context: gke-prod
Server URL: https://gateway.acme.com
Runtime: distributed
Auth0: acme.us.auth0.com
Audience: (none)
Token: cached
Kube ctx: gke_acme_us-central1_prod
Kube ns: noetl
If no context is current, the CLI says so:
No current context set.
Switch the current context. Persists across shell sessions
(it updates ~/.noetl/config.toml).
noetl context use gke-prodFor a one-off command that uses a different context without
changing the current one, see
noetl --context <name>.
Remove a context from the config file. If you delete the current
context, no context will be current until you context use another
one (or pass --context per command).
noetl context delete old-stagingNotes:
- Does not stop a managed port-forward daemon for the context.
Run
noetl context port-forward <name> --stopfirst if one is running, otherwise the daemon will outlive the context until you kill it manually. - Does not remove the PID file at
~/.noetl/port-forwards/<name>.pidif one is left behind by a prior daemon.
Set the default runtime mode for the current context.
noetl context set-runtime local
noetl context set-runtime distributed
noetl context set-runtime autoSame effect as noetl context update <current> --runtime=<mode>,
but shorter. Per-command --runtime flags override this.
- Context model — what each field means.
-
context add,context init,context update— write-side commands. -
Global flags —
--context <name>for one command at a time.
NoETL CLI
Contexts
- Context model
context addcontext init --from-gatewaycontext updatecontext port-forwardcontext list / use / current / delete
Auth
Architecture
Cross-wiki