Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Prerequisites

Before installing CLI/test, make sure you have Rust and Cargo installed on your system. You can install them by following the instructions on the Rust installation page.

Installing CLI/test

The easiest way to install clitest is using Cargo:

cargo install clitest

This will download and compile clitest, making it available in your system’s PATH.

Faster Install with cargo-binstall

If you have cargo-binstall installed, you can download a pre-built binary instead of compiling from source:

cargo binstall clitest

Installing in CI

For GitHub Actions, the cargo-install action provides caching out of the box:

- name: Install clitest
  uses: baptiste0928/cargo-install@v3
  with:
    crate: clitest

Verifying the Installation

After installation, you can verify that CLI/test is properly installed by running:

clitest --version

This should display the version number of your CLI/test installation.

Updating CLI/test

To update clitest to the latest version, simply run the installation command again:

cargo install clitest

Uninstalling clitest

If you need to uninstall CLI/test, you can use Cargo’s uninstall command:

cargo uninstall clitest