auth - Cloud Foundry CLI Reference Guide


NAME

auth - Authenticate non-interactively

USAGE

cf auth USERNAME PASSWORD cf auth CLIENT_ID CLIENT_SECRET --client-credentials

WARNING

Providing your password as a command line option is highly discouraged Your password may be visible to others and may be recorded in your shell history

EXAMPLES

cf auth name@example.com "my password" (use quotes for passwords with a space) cf auth name@example.com "\"password\"" (escape quotes if used in password)

OPTIONS

--client-credentials

Use (non-user) service account (also called client credentials)

SEE ALSO

api, login, target