ubx exec runs a command with all stack outputs injected as environment variables. Output keys are uppercased and non-alphanumeric characters replaced with underscores — matching ubx output --format env.
Usage
Requirements
--experimentalglobal flag required- A deployed stack with outputs in
.ubx/
Examples
Environment injection
Stack outputs become environment variables:- Keys uppercased:
vpc_id→VPC_ID - Non-alphanumeric chars replaced with
_:db.endpoint→DB_ENDPOINT - Secrets are not injected (shown as
[sensitive]in output) - Objects and arrays become compact JSON strings
Experimental flag
--experimental:
Exit codes
The exit code from the child command is propagated. If the command cannot be started, ubx exits 1.Related commands
ubx shell— interactive shell with outputs injectedubx output— display outputs in various formats

