How to export jFrog Artifactory repositories through REST API or a jFrog CLI command? - rest

Using the UI, I can export Artifactory repositories. I'll be able to do it as mentioned in the documentation.
But what if I want to do it through a Rest API call or a jFrog CLI command?

JFrog has a CLI that can be used for many kinds of command line, automated or maintenance tasks. This CLI integrates great with CI/CD and with on demand tasks like downloading a file or a full repository.
Another option is to use the Artifactory REST API, which can be used to download a whole repository or folder from it. There are a zillion options for the REST API.
For system export, you need to use the Export System REST API call.

Related

JFrog Artifactory with VS, APIs, and DBs

Can JFrog Artifactory be used to store deployment artifacts for promotion, for applications developed with Visual Studio ?
Also, can JFrog Artifactory be used for API deployment and DataBase deployment?
If the requirement is to have the .NET projects perform build and store artifacts from Visual Studio against the Artifactory, please follow the instructions here. Additionally, if the query regarding API deployment is around the programmatic access against the Artifactory instance, please refer to Artifactory REST API wiki.

Is there a cli equivalent of Github cli for Bitbucket?

I'm looking for a Bitbucket tool that is similar to the Github cli. I'm aware of API, but that's not what I'm looking for. This tool is for the Bitbucket cloud version.
i don't think so there is one yet officially. If it's of any use, you could make use of my script https://github.com/psadi/bbcli - it is api based, and its for enterprise.

Automate mirroring GitHub to GCP Source Repository?

We run Google Cloud Functions (python), which require to be deployed from Google Cloud Source Repository. Since all the code is stored on GitHub we resort to first mirroring GitHub into Source Repository. Although this only requires a few mouse clicks, it becomes a burden to repeat over 3+ projects (dev, staging, production) times 5+ repos (5+ apps).
I am looking to automate the mirroring config, preferably to add into the Terraform automation we already use, into a hands-off project configuration. Does the Google API support this mirroring automation? So far on my Google Cloud expedition everything was available in their API!
I fail to find Terraform examples though, and would appreciate a tip.
Come to think of it, if I can take Source Repository out of the equation, that would be just fine with me too. After all, I only use it as a pass-through / empty shell.
The Cloud Source Repository API includes a Repo resource that has a Mirror Config object where you could type in your Github's URL, webhook and credentials to automate this procedure. I would initially test it with the create method, but if you have an existing Cloud Source Repository I believe the patch method will also be worth exploring.
Additionally, there is an open Feature Request in order to connect a repository via the Cloud Build GitHub App that I recommend you to star and follow, as it could further ease your automation needs.

How can I upload a file to Azure Artifacts from my powershell console using Azure DevOps REST Api?

I want to upload a file to Azure Artifacts using the Rest API. Can I do it?
We use on-prem Azure DevOps Server 2019.
Please, note that it is not a nuget or an npm package. It is just a file.
It is not a nuget or an npm package. It is just a file.
If what you want to upload is files instead of packages, in Azure devops, I'm afraid only Universal package can available for files to stored.
BUT, what the issue is Universal package does not supported for Azure devops server. It only support in azure devops service now.
In our official forum, there has such suggestion raised to request for this feature added in Azure devops server/TFS. You can vote and share your demand there to raise its priority. Our product group will review it regularly to consider take some features into develop plan.

Add Artifactory repository via CLI or Rest

Is it somehow possible to configure Artifactory via a CLI or a Rest API?
For example I'd like to add users or repositories.
It looks like its possible to configure it via https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateRepository. But Artifactory Pro is necessary to use this features.