Add --legacy flag to jf login and jf c add - #3655
Merged
Merged
Conversation
cyrilc-pro
approved these changes
Aug 11, 2026
vitaliil-jfrog
approved these changes
Aug 11, 2026
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
force-pushed
the
JGC-487-simplify-login
branch
from
August 14, 2026 07:24
a3952e5 to
621bea7
Compare
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

By default,
jf loginandjf c addnow only use the main JFrog Platform URL. A new--legacyflag restores prompts for each service's own URL (Artifactory/Distribution/Xray/Mission Control/Pipelines) and, forjf 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.modcurrently points directly at that branch (feature/JGC-487) and is marked with aremove before mergingcomment. This PR should not be merged until the core PR is merged/released andgo.modis updated to reference a real released version.masterbranch.go vet ./....go fmt ./.... (Note:config/cli.gohas one pre-existing, unrelated import-ordering diff fromgofmt; left untouched to keep this PR scoped.)