Skip to content

pact-foundation/choco

Repository files navigation

Pact CLI Tools for Windows via Choco

Tests

Pact CLI Tools bucket for Chocolatey, the Windows command-line installer.

Supported Platforms

OS Architecture Supported
Windows x86_64
Windows aarch64

Installation

Unified CLI

# Download the required package
curl https://github.com/pact-foundation/choco/releases/download/choco/pact.0.9.1.nupkg -OutFile pact.nupkg

# Install the Unified CLI
choco install -y pact --source .

# Windows on ARM - requires ForceARM64 parameter
choco install -y pact --params "'/ForceARM64:true'"  --source .

Individual Packages

Pact Broker Client

curl https://github.com/pact-foundation/choco/releases/download/choco/pact-broker-client.0.5.0.nupkg -OutFile pact-broker-client.nupkg
choco install -y pact-broker-client --source .

Pact Mock Server

curl https://github.com/pact-foundation/choco/releases/download/choco/pact-mock-server.2.1.0.nupkg -OutFile pact-mock-server.nupkg
choco install -y pact-mock-server --source .

Pact Verifier

curl https://github.com/pact-foundation/choco/releases/download/choco/pact-verifier.1.3.0.nupkg -OutFile pact-verifier.nupkg
choco install -y pact-verifier --source .

Pact Plugin

curl https://github.com/pact-foundation/choco/releases/download/choco/pact-plugin.0.2.0.nupkg -OutFile pact-plugin.nupkg
choco install -y pact-plugin --source .

Pact Stub Server

curl https://github.com/pact-foundation/choco/releases/download/choco/pact-stub-server.0.7.0.nupkg -OutFile pact-stub-server.nupkg
choco install -y pact-stub-server --source .

Pact Legacy

curl https://github.com/pact-foundation/choco/releases/download/choco/pact-legacy.2.5.6.nupkg -OutFile pact-legacy.nupkg
choco install -y pact-legacy --source .

Chocolatey GitHub Actions Example

- name: Install Pact via Chocolatey
  if: runner.os == 'Windows'
  shell: powershell
  run: |
    curl https://github.com/pact-foundation/choco/releases/download/choco/pact.0.9.1.nupkg -OutFile pact.nupkg
    if ("${{ runner.arch }}" -eq "ARM64") {
      choco install -y pact --source . --params "'/ForceARM64:true'"
    } else {
      choco install -y pact --source .
    }
    pact --help

About

Pact CLI tools available for Windows via Chocolatey (Choco)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published