Skip to main content
Add credentials to a session that has already started, for example when Mo asks for a test account. Values come from your shell environment or a dotenv-format file, never from the command line, and the output lists only names.

Arguments

string
required
The session to update. Archived sessions can’t receive secrets.

Options

string
Read the named variable from your current shell. Repeatable. Pass the name only, not NAME=VALUE.
string
Load variables from a dotenv-format file. Repeatable.
Pass 1 to 10 secrets with nonempty values of up to 65,536 characters. qa secrets set rejects __proto__ and BASE_URL; BASE_URL is a public target URL that qa start accepts, not a secret. A file that sets BASE_URL is rejected and nothing is saved. Remove BASE_URL from the file, or export the values you need and pass them with --env-var.

Examples

Save credentials, then tell Mo their names: