Skip to content

mw phabricator auth login

Releasev0.35.0 · cfeceb67

mw phabricator auth login [flags]

Open Phabricator’s browser login and paste its token into a hidden prompt. Verifying the token activates ongoing access until revoked. Use –method token for an existing API token, or –method phab-cfg to validate and copy credentials from an existing file. Save separate accounts with –profile; otherwise use the verified username in lowercase. The first login becomes the default; later logins ask before switching it. Use –default to switch explicitly. The default destination is Wikimedia Phabricator; –url explicitly selects another HTTPS endpoint. A project-local phab.cfg never chooses where a newly entered token is sent.

--config-file <string>
phab.cfg file to import (otherwise search standard locations)
--config-section <string>
Section to import from phab.cfg (otherwise its [main] default)
--default
Make this profile the default (otherwise ask before switching an existing default)
--insecure-storage
Store credentials in the private plaintext configuration
--method <string>
Login method: browser, token or phab-cfg (supplied tokens skip browser launch) Default: browser.
--no-browser
Print the login URL without opening the browser
--provider <string>
Override the credential provider (keyring, windows-credential-manager, keepassxc or plaintext)
-t, --token <string>
API token (prefer a hidden prompt or stdin)
--token-stdin
Read the API token from stdin
--url <string>
Explicit Phabricator HTTPS endpoint Default: https://phabricator.wikimedia.org.
-u, --username <string>
Expected Phabricator username (otherwise discovered from the token)
--help
Help for this command
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
mw phabricator auth login --profile personal
mw phabricator auth login --profile bot --method token
mw phabricator auth login --profile bot --token-stdin
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.