Downloads:

170,234

Downloads of v 1.33.1:

353

Last Update:

19 Jan 2020

Package Maintainer(s):

Software Author(s):

  • JFrog Ltd

Tags:

JFrog CLI admin

JFrog CLI

This is not the latest version of JFrog CLI available.

  • 1
  • 2
  • 3

1.33.1 | Updated: 19 Jan 2020

Downloads:

170,234

Downloads of v 1.33.1:

353

Maintainer(s):

Software Author(s):

  • JFrog Ltd

Tags:

JFrog CLI admin

  • 1
  • 2
  • 3
JFrog CLI 1.33.1

This is not the latest version of JFrog CLI available.

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install JFrog CLI, run the following command from the command line or from PowerShell:

>

To upgrade JFrog CLI, run the following command from the command line or from PowerShell:

>

To uninstall JFrog CLI, run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade jfrog-cli -y --source="'INTERNAL REPO URL'" --version="'1.33.1'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade jfrog-cli -y --source="'INTERNAL REPO URL'" --version="'1.33.1'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install jfrog-cli
  win_chocolatey:
    name: jfrog-cli
    version: '1.33.1'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'jfrog-cli' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '1.33.1'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller jfrog-cli
{
    Name     = "jfrog-cli"
    Version  = "1.33.1"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'jfrog-cli':
  ensure   => '1.33.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved by moderator gep13 on 22 Jan 2020.

Description

JFrog CLI is a compact and smart client that provides a simple interface that automates access to Artifactory, Bintray and Mission Control through their respective REST APIs. By using the JFrog CLI, you can greatly simplify your automation scripts making them more readable and easier to maintain. Several features of the JFrog CLI makes your scripts more efficient and reliable:

  • Multi-threaded upload and download of artifacts make builds run faster
  • Checksum optimization reduces redundant file transfers
  • Wildcards and regular expressions give you an easy way to collect all the artifacts you wish to upload or download.
  • "Dry run" gives you a preview of file transfer operations before you actually run them

tools\chocolateyBeforeModfy.ps1
$jfrogDir = "$env:ProgramData\Jfrog"
if(Test-Path -Path "$jfrogDir" -ErrorAction SilentlyContinue)
{
    Write-Warning ("Removing legacy directory '$jFrogDir'.")
    Remove-Item -Path $jfrogDir -Force -Recurse > $null
}

$jfrogDir = $jfrogDir -replace '\\','\\' #this formats the path to work with -replace
$path     = "Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
$oldPath  = (Get-ItemProperty -Path $path -Name PATH).Path
if($oldPath | Select-String -Pattern 'jfrog')
{
    Write-Warning ("Removing legacy PATH entry '$jFrogDir'.")
    $newPath  = $oldPath -replace ";$jfrogDir\\",";"
    Set-ItemProperty -Path $path -Name PATH –Value $newPath

    &"C:\ProgramData\Chocolatey\bin\RefreshEnv.cmd"
}
tools\chocolateyInstall.ps1
#JFrog CLI is completely contained within an .exe that is provided by the team at JFrog.
$ErrorActionPreference = 'Stop'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageArgs = @{
  packageName            = 'jfrog-cli'
  fileType               = 'EXE'
  url64bit               = 'https://dl.bintray.com/jfrog/jfrog-cli-go/1.33.1/jfrog-cli-windows-amd64/jfrog.exe'
  checksum64             = 'dea11a07608572b1ad4085d8bf9f40f629feee50bfd37063d85d23283cd118f9'
  checksumType64         = 'sha256'
  silentArgs             = ''
  validExitCodes         = @(0)
  softwareName           = 'jfrog-cli'
}

Get-ChocolateyWebFile `
    -PackageName 'JFrog CLI' `
    -FileFullPath "$toolsDir\jfrog.exe" `
    -Url64 $packageArgs.url64bit `
    -Checksum64 $packageArgs.checksum64 `
    -ChecksumType64 $packageArgs.checksumType64 `
    -ForceDownload

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
JFrog CLI V2 2.11.0 1116 Thursday, January 13, 2022 Approved
JFrog CLI V2 2.10.1 946 Tuesday, January 4, 2022 Approved
JFrog CLI V2 2.10.0 204 Friday, December 31, 2021 Approved
JFrog CLI V2 2.8.3 1360 Monday, December 6, 2021 Approved
JFrog CLI V2 2.8.1 206 Thursday, December 2, 2021 Approved
JFrog CLI V2 2.8.0 27 Tuesday, November 30, 2021 Approved
JFrog CLI V2 2.7.0 218 Monday, November 29, 2021 Approved
JFrog CLI V2 2.6.2 1889 Thursday, November 25, 2021 Approved
JFrog CLI V2 2.6.1 311 Monday, November 22, 2021 Approved

This package has no dependencies.

Discussion for the JFrog CLI Package

Ground Rules:

  • This discussion is only about JFrog CLI and the JFrog CLI package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or JFrog CLI, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus