# @percy/migrate

> Easily upgrade and migrate your Percy SDK to the latest version

Latest version **1.0.0** (published 2022-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @percy/migrate
pnpm add @percy/migrate
yarn add @percy/migrate
bun add @percy/migrate
```

Provides the command `percy-migrate`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-06-10 |
| First published | 2021-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 7 |
| Unpacked size | 30.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wwilsman, robdel12, cadeparade, percy-admin, fotinakis, dgjones |

## Links

- npm: https://www.npmjs.com/package/@percy/migrate
- npm.io page: https://npm.io/package/@percy/migrate

## Dependencies (7)

- [semver](https://npm.io/package/semver.md) ^7.3.4
- [inquirer](https://npm.io/package/inquirer.md) ^8.0.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^7.0.3
- [@percy/config](https://npm.io/package/@percy/config.md) ^1.1.0
- [@percy/logger](https://npm.io/package/@percy/logger.md) ^1.1.0
- [@percy/cli-command](https://npm.io/package/@percy/cli-command.md) ^1.1.0
- [inquirer-glob-prompt](https://npm.io/package/inquirer-glob-prompt.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2022-06-10
- 0.11.0 — 2021-07-19
- 0.10.0 — 2021-04-08
- 0.9.1 — 2021-04-01
- 0.9.0 — 2021-03-30
- 0.8.0 — 2021-03-24
- 0.7.1 — 2021-03-18
- 0.7.0 — 2021-03-17
- 0.6.0 — 2021-03-11
- 0.5.0 — 2021-03-11
- 0.4.0 — 2021-03-10
- 0.3.1 — 2021-03-09
- 0.3.0 — 2021-03-09
- 0.2.0 — 2021-03-03
- 0.1.1 — 2021-02-25
- … 1 more at https://npm.io/package/@percy/migrate/versions

## README

# @percy/migrate

![Test](https://github.com/percy/percy-migrate-sdk/workflows/Test/badge.svg)

`@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.

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](https://docs.percy.io/docs/migrating-to-percy-cli)

## Usage
<!-- usage -->
``` sh-session
$ 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
```
<!-- usagestop -->

---
_Source: https://npm.io/package/@percy/migrate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
