Skip to content
/ cli Public

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.

Notifications You must be signed in to change notification settings

percy/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4a04251 Β· Jul 30, 2020
Jul 30, 2020
Jul 30, 2020
May 27, 2020
Apr 22, 2020
Jun 12, 2020
Apr 22, 2020
May 27, 2020
May 27, 2020
Jul 30, 2020
Jul 30, 2020
May 27, 2020
Jul 30, 2020

Repository files navigation

Percy CLI

CI

The Percy CLI is used to capture and upload snapshots to percy.io from the command line.

Installation

Using yarn:

$ yarn add @percy/cli --dev

Using npm:

$ npm install @percy/cli --save-dev

Command Topics

Advanced

In addition to the CLI packages, this repo contains core libraries responsible for Percy's CI/CD integrations, Percy API communication, DOM snapshotting, and asset discovery.

Issues

For problems directly related to the CLI, add an issue on GitHub.

For other issues, open a support request.

Developing

This project is built with lerna. The core libaries and CLI plugins are located in ./packages. Run yarn to install dependencies after cloning the repo and use the following scripts for various development tasks:

  • yarn build - build all packages
  • yarn build:watch - build and watch all packages in parallel
  • yarn clean - clean up build and coverage output
  • yarn lint - lint all packages
  • yarn readme - generate oclif readme usage
  • yarn test - run all tests, one package after another
  • yarn test:coverage - run all tests with coverage, one package after another

Individual package scripts can be invoked using yarn's workspace command. For example:

$ yarn workspace @percy/core test

Releasing

  1. Run yarn bump:version and choose an appropriate version.
  2. Commit updated versions with a matching commit (e.g. 🏷 v1.0.0).
  3. Push updated versions to GitHub and wait for CI to pass.
  4. Create a new GitHub release which will in-turn automate an NPM release.