1

CLI: Environment Variables


Avatar
Doug Ayers

Ability to specify authentication details (or any argument) as environment variables so that they don't need to be passed directly on the command string.

For security, this would hide the credentials from terminal command history, and hide them from logs when the CLI commands are invoked via other scripts or programs.

For ergonomics and organization, the ability to have different .env files makes it easy to run commands for different accounts, projects, etc without tweaking the command itself too much.

Example:

UILICIOUS_ACCESS_KEY="123"

-or-

UILICIOUS_USERNAME="me"

UILICIOUS_PASSWORD="secret"

Then use cli without explicitly mentioning credentials:

uilicious project run {project_id} {test_name}

If other arguments can be specified as environment variables then even the project id and test name could be externalized:

UILICIOUS_PROJECT_ID="456"

UILICIOUS_TEST_NAME="my_test"

uilicious project run

Originally posted in Discord

A

Activity Newest / Oldest

Avatar

Shi Ling

Post moved to this board