@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.
@percy/cli
to your project (and uninstalls @percy/agent
if present).See the migration docs for more info
$ 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