Skip to main content
Stores a connection to a real system: either an API base URL, the header that carries the credential, and the header value, or an app login with its sign-in URL, username, and password. Returns the credential without its value.

Examples

Flags

string
The https URL of the real system. Requests go to paths under it. Send exactly one of base_url and login.
string
Request body as JSON (alternative to individual flags). Can also be provided via stdin.
string
The HTTP header that carries the value. Defaults to Authorization. Not allowed with login.
string
JSON object
string
required
Credential name.
string
required
The full header value, for example Bearer followed by a token, or the login password. The API never returns it.
Global flags apply to every command. See Global flags.