@percy/migrate
v1.0.0
Published
Easily upgrade and migrate your Percy SDK to the latest version
Downloads
957
Readme
@percy/migrate
@percy/migrate
is used to upgrade and migrate your Percy SDK to the latest version.
What does it do?
This automates the following steps necessary to migrate your SDK to the latest version. In fact, each step can be performed manually without this tool to achieve the same outcome.
- Attempts to detect your SDK by examining your project's dependencies.
- Installs
@percy/cli
to your project (and uninstalls@percy/agent
if present). - Migrates any Percy config file to the latest version.
- Updates your SDK to the latest version.
- Maybe prompts to run code mods on specific files.
See the migration docs for more info
Usage
$ npx @percy/migrate --help
Upgrade and migrate your Percy SDK to the latest version
USAGE
$ npx @percy/migrate [SDK_NAME]
ARGUMENTS
SDK_NAME name of the Percy SDK to migrate (detected by default)
OPTIONS
-h, --help show CLI help
-q, --quiet log errors only
-v, --verbose log everything
-v, --version show CLI version
--only-cli only run @percy/cli installation
--silent log nothing
--skip-cli skip @percy/cli installation
EXAMPLES
$ npx @percy/migrate
$ npx @percy/migrate @percy/puppeteer
$ npx @percy/migrate --only-cli