jf login

Log in to a JFrog Platform via your web browser. Available for Artifactory 7.64.0 and above.

Synopsis

jf login [options]

Aliases: none

Arguments

ArgumentRequiredDescription
(none)This command takes no arguments

Options

This command has no flags.

Examples

Log in via Web Browser

jf login

A browser window opens. You complete authentication there, and the CLI stores the session.

When to Use

Use jf login for interactive developer workflows when you want the simplest authentication experience. The browser handles SSO (SAML, OAuth), MFA, and other identity provider flows automatically.

Do not use jf login when:

  • Running in CI/CD pipelines (no browser available) — use jf config add --access-token or environment variables instead
  • Running in headless/SSH environments — use jf config add with token-based auth
  • You need scripted/automated authentication — use jf config add --interactive=false

Important Notes

  • Requires Artifactory 7.64.0 or above. Earlier versions do not support browser-based login.
  • The CLI stores the resulting session in the configuration directory (~/.jfrog/). You do not need to log in again until the session expires.
  • If the browser does not open automatically, the CLI prints a URL you can copy and paste manually.
  • The login creates or updates a server configuration. If a server already exists for the same URL, it is overwritten.

Expected Output

$ jf login
Opening your browser to log in...
If your browser doesn't open automatically, visit:
  https://acme.jfrog.io/ui/login?...

Login succeeded. Server configuration saved.


What’s Next

For programmatic access and CI/CD, create an access token.