Easily upgrade and migrate your Percy SDK to the latest version
npm install @percy/migrate!Test
@percy/migrate is used to upgrade and migrate your Percy SDK to the latest version.
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.
1. Attempts to detect your SDK by examining your project's dependencies.
2. Installs @percy/cli to your project (and uninstalls @percy/agent if present).
3. Migrates any Percy config file to the latest version.
4. Updates your SDK to the latest version.
5. Maybe prompts to run code mods on specific files.
See the migration docs for more info
sh-session
$ npx @percy/migrate --help
Upgrade and migrate your Percy SDK to the latest versionUSAGE
$ 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
``