upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

Support explicit session token as env var for `up org token` #531

Closed RedbackThomson closed 1 month ago

RedbackThomson commented 1 month ago

What problem are you facing?

up org token currently relies on pulling the session token from the selected profile, which requires a prior step of logging in using up login. For some systems, where up is running inside a container, it would be simpler to pass that session token directly to the command as an env var which would take precedence over loading from the profile.

How could Upbound help solve your problem?

I would expect it to look something like:

UP_TOKEN=<redacted> up org token