ubx shell spawns an interactive shell (or runs a specific command) with all stack outputs injected as environment variables, plus UBX_ENV and UBX_STACK meta-variables.
Usage
Flags
| Flag | Description |
|---|---|
--no-inject | Skip output injection; only UBX_ENV and UBX_STACK are set |
Examples
What gets injected
All non-secret stack outputs:- Keys uppercased:
vpc_id→VPC_ID - Non-alphanumeric chars →
_ - Secrets are not injected
- Objects/arrays become compact JSON strings
UBX_ENV— current environment nameUBX_STACK— current stack name
Interactive shell
Without a command argument,ubx shell spawns $SHELL (or /bin/sh if $SHELL is not set):
Error handling
If stack outputs cannot be loaded (e.g. stack hasn’t been deployed yet), ubx emits a warning and spawns the shell without injected output variables:Related commands
ubx exec— non-interactive command runner (experimental)ubx output— display outputs in various formats

