UNPKG

1.97 kBMarkdownView Raw
1# @carbon/upgrade
2
3> A tool for upgrading Carbon versions
4
5## Getting started
6
7To install `@carbon/upgrade` in your project, you will need to run the following
8command using [npm](https://www.npmjs.com/):
9
10```bash
11npm install -S @carbon/upgrade
12```
13
14If you prefer [Yarn](https://yarnpkg.com/en/), use the following command
15instead:
16
17```bash
18yarn add @carbon/upgrade
19```
20
21## Usage
22
23You can install `@carbon/upgrade` in your project, or use a tool like
24[`npx`](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b)
25by running the following command in your project:
26
27 # Runs the command in "dry" mode, which means no files are altered.
28 # To update the files, re-run the command without the `-d` flag.
29 npx @carbon/upgrade -d
30
31Below is a full output of the options and commands available:
32
33```bash
34Usage: carbon-upgrade [options]
35
36Commands:
37 carbon-upgrade run to upgrade your project[default]
38 carbon-upgrade migrate <package> <from> run a specific migration for a
39 <to> package
40
41Options:
42 --help Show help [boolean]
43 --version Show version number [boolean]
44 --verbose display the full output while running a command [default: false]
45 --dry, -d view the result of running this command without changing any
46 files [default: false]
47 --ignore, -i provide a glob pattern for directories you would like ignored
48 [default: ""]
49```
50
51## 🙌 Contributing
52
53We're always looking for contributors to help us fix bugs, build new features,
54or help us improve the project documentation. If you're interested, definitely
55check out our [Contributing Guide](/.github/CONTRIBUTING.md)! 👀
56
57## 📝 License
58
59Licensed under the [Apache 2.0 License](/LICENSE).