Skip to main content

Install the CLI from an internal Chocolatey repository

Use this page if your organization manages Windows software with Chocolatey and installs packages only from its own repository, not from community.chocolatey.org. It is for the team that approves packages and deploys them. People who can use the public feed run choco install autoheal and do not need this page (see Install).

What is in the package?​

The autoheal package contains the CLI binaries. It does not download anything when it installs, so:

  • Machines that cannot reach github.com or community.chocolatey.org can install it.
  • You push the package to your repository as it is. You do not need to internalize or repackage it.
ItemValue
Package idautoheal
Architectures64-bit Windows: x64 and ARM64. The install script keeps the binary for the machine and deletes the other.
Install location%ChocolateyInstall%\lib\autoheal\tools\<arch>\autoheal.exe
Commandsautoheal and ah, as shims in %ChocolateyInstall%\bin
Verification datalegal\VERIFICATION.txt in the package: the source archive URLs and the SHA256 of each binary
Admin rightsRequired, as for every machine-wide Chocolatey install

1. Get the package​

Each CLI release on the releases page has two Chocolatey files:

  • autoheal.<version>.nupkg: the package.
  • autoheal.<version>.nupkg.sha256: its SHA256.

Download both for the version you want. Use stable versions only. A version with a suffix such as -rc1 is a release candidate.

If your Chocolatey for Business license includes Package Internalizer, you can also get the package from the community feed:

POWERSHELL
choco download autoheal --version <version> --source https://community.chocolatey.org/api/v2/

The package has no remote resources, so --internalize makes no changes to it.

2. Verify the package​

Check that the package file has the published SHA256:

POWERSHELL
(Get-FileHash .\autoheal.<version>.nupkg -Algorithm SHA256).Hash
Get-Content .\autoheal.<version>.nupkg.sha256

The two values must be the same.

To verify the binaries inside, open the package as a zip file and compare each autoheal.exe with legal\VERIFICATION.txt:

POWERSHELL
Copy-Item .\autoheal.<version>.nupkg .\autoheal.zip
Expand-Archive .\autoheal.zip -DestinationPath .\autoheal-pkg
Get-FileHash .\autoheal-pkg\tools\amd64\autoheal.exe, .\autoheal-pkg\tools\arm64\autoheal.exe -Algorithm SHA256
Get-Content .\autoheal-pkg\legal\VERIFICATION.txt

VERIFICATION.txt also gives the release archive that each binary came from. Those archives are listed in the release's checksums.txt.

Then do the scans and reviews that your process requires.

3. Push the package to your repository​

Push the package with choco push, or with the upload method of your repository server (Nexus, Artifactory, ProGet, Chocolatey Central Management, or another NuGet server):

POWERSHELL
choco push .\autoheal.<version>.nupkg --source https://<your-repository>/ --api-key <your-repository-api-key>

If you promote packages through stages (for example, test and then production), push to the first stage and promote from there as usual.

4. Install on machines​

From an administrator shell:

POWERSHELL
choco install autoheal --source <your-repository-name-or-url> -y
autoheal version

You can deploy the same command with Chocolatey Central Management, Intune, Configuration Manager, Ansible, Puppet, or any other tool that runs Chocolatey.

To remove the CLI:

POWERSHELL
choco uninstall autoheal -y

5. Keep the CLI up to date​

Each new CLI version is a new package. Repeat steps 1 to 3 for each version, then upgrade the machines:

POWERSHELL
choco upgrade autoheal --source <your-repository-name-or-url> -y

To get a notification when a new version is released, watch the autoheal-cli repository on GitHub for releases (Watch → Custom → Releases).

On a Chocolatey install, autoheal update does not replace the binary. It tells the user to run choco upgrade autoheal, also on a machine that cannot reach github.com.

Network access​

The CLI must reach the Autoheal URL that users log in to, for example acme.autoheal.ai or your BYOC host. autoheal login opens a browser on that machine for the sign-in.

When a person runs the CLI in a terminal, it checks github.com at most once a day for a newer version. If it cannot reach github.com, the check fails silently. To turn off the check on every machine, set this machine-wide environment variable:

POWERSHELL
[Environment]::SetEnvironmentVariable('AUTOHEAL_NO_UPDATE_CHECK', '1', 'Machine')

Application control​

The CLI binaries are not yet code-signed. If you use application control such as App Control for Business (WDAC) or AppLocker, allow autoheal.exe by its SHA256 from VERIFICATION.txt, or by the path %ChocolateyInstall%\lib\autoheal\tools\. A hash rule must change with each version. Code signing is planned (coming soon).