Skip to content

Add --legacy flag to jf login and jf c add - #3655

Merged
ehl-jf merged 1 commit into
masterfrom
JGC-487-simplify-login
Aug 14, 2026
Merged

Add --legacy flag to jf login and jf c add#3655
ehl-jf merged 1 commit into
masterfrom
JGC-487-simplify-login

Conversation

@ehl-jf

@ehl-jf ehl-jf commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

By default, jf login and jf c add now only use the main JFrog Platform URL. A new --legacy flag restores prompts for each service's own URL (Artifactory/Distribution/Xray/Mission Control/Pipelines) and, for jf login, skips the browser-based web login, for Artifactory v6.x self-hosted setups where these products don't share one platform URL.

Depends on jfrog/jfrog-cli-core#1605 (not yet merged) — go.mod currently points directly at that branch (feature/JGC-487) and is marked with a remove before merging comment. This PR should not be merged until the core PR is merged/released and go.mod is updated to reference a real released version.

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the master branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./.... (Note: config/cli.go has one pre-existing, unrelated import-ordering diff from gofmt; left untouched to keep this PR scoped.)

@ehl-jf ehl-jf added the new feature Automatically generated release notes label Aug 10, 2026
Comment thread go.mod Outdated
By default, jf login and jf c add now only use the main JFrog Platform
URL. --legacy restores prompts for each service's own URL (Artifactory/
Distribution/Xray/Mission Control/Pipelines) and, for jf login, skips the
browser-based web login, for Artifactory v6.x self-hosted setups where
these products don't share one platform URL.

Depends on jfrog/jfrog-cli-core#feature/JGC-487 (not yet merged) -- go.mod
temporarily points there directly; must be updated once that PR merges.
@ehl-jf
ehl-jf force-pushed the JGC-487-simplify-login branch from a3952e5 to 621bea7 Compare August 14, 2026 07:24
@ehl-jf
ehl-jf deployed to build-gate August 14, 2026 07:24 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

@ehl-jf
ehl-jf merged commit d8f371c into master Aug 14, 2026
123 checks passed
@ehl-jf
ehl-jf deleted the JGC-487-simplify-login branch August 14, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants