I am trying to search for all files that are in my repo on Artifactory. I have Go installed, and am using Jfrog to query the search using:
jfrog rt s https://URL/artifactory/generic-sgca/
Which returns:
[Info] Searching artifacts...
[Info] Found 0 artifacts.
[]
Why is it not returning all folders in this repo? I believe my config is setup correctly too.
You are not supposed to be specifying the
https://url/artifactory
when using search function in the CLI.you can check the CLI's search help using
jfrog rt s -h
and you'll see that the usage is:where search pattern should:
The URL is actually a command option
--url=http://myurl:myport/artifactory
which you can leave out if you usejfrog rt config
to set the Artifactory server details before you run the search command.You can read more and find some snippet example here