Search code examples
artifactoryjfrog-cli

How do I recalculate a repo's indices with the jfrog cli?


I sometimes have to manually recalculate repo indices: https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-CalculateHelmChartIndex

I already use the jfrog cli. This seems like something that would be an easy command with the jfrog cli but I do not see it in the docs: https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory


Solution

  • Please note the CLI is capable of running any cURL REST API against Artifactory. For more information, please refer to this documentation page or use below example:

    $ jf rt curl -XPOST /api/helm/$REPO_NAME/reindex --server-id $SERVER_ID