login - Cloud Foundry CLI Reference Guide


名称

login - 使用户登录

用法

cf login [-a API_URL] [-u USERNAME] [-p PASSWORD] [-o ORG] [-s SPACE] [--sso | --sso-passcode PASSCODE]

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 login (omit username and password to login interactively -- cf will prompt for both) cf login -u name@example.com -p pa55woRD (specify username and password as arguments) cf login -u name@example.com -p "my password" (use quotes for passwords with a space) cf login -u name@example.com -p "\"password\"" (escape quotes if used in password) cf login --sso (cf will provide a url to obtain a one-time passcode to login)

别名

l

选项

-a

API 端点(例如,https://api.example.com)

-o

组织

-p

密码

-s

空间

--skip-ssl-validation

跳过 API 端点的验证步骤。不建议使用!

--sso

Prompt for a one-time passcode to login

--sso-passcode

One-time passcode

-u

用户名

SEE ALSO

api, auth, target