# pact-cli

pact-cli is a tool that ensures different software components talk to each other correctly. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6112/pact-cli

## Description

Pact-CLI is a tool that ensures different software components talk to each other correctly. It acts as a bridge, sharing and checking "contracts" between systems to guarantee they understand each other’s data, preventing errors before updates are synchronised and released.

## Platform availability

Available on 0 of 10 platforms.

## Health score

56/100 (Fair), based on 3 of 4 factors.
- Maintained: 100 (last commit 18 days ago)
- Popular: 12 (3 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)

## Links

- Docker Hub: https://hub.docker.com/r/pactfoundation/pact-cli
- Official website: https://docs.pact.io/
- GitHub: https://github.com/pact-foundation/pact-cli

## Common questions

### Why can Pact broker verification fail when using pact-cli in Docker?

The verification request can fail because it lacks a Bearer token, even when the provider verifier connects. The token must be included so the broker accepts the verification.

### What should I check after installing the Linux Pact CLI binary?

Unzip the Pact-Reference CLI files, give them short names such as pact_verifier_cli, and run each with --help. Missing or mismatched binaries will stop Pact tests from running.

### Which ports and folder should I configure for the Pact mock server?

Set the master port, default 8080, the first port number it can use for test mocks, and the folder where Pact files are saved. Port conflicts or the wrong folder can prevent tests from connecting or make files hard to find.

### How do I install the optional CSV plugin for Pact tests?

Run the provided pact-plugin install command with -y so prompts are answered automatically. The plugin is stored in the .pact plugins folder, and skipping installation when tests use CSV makes those tests fail.

---
Source: Our Local Host (https://ourlocalhost.com/app/6112/pact-cli), the self-hosted and open-source app directory.
