1 | # @carbon/upgrade
|
2 |
|
3 | > A tool for upgrading Carbon versions
|
4 |
|
5 | ## Getting started
|
6 |
|
7 | To install `@carbon/upgrade` in your project, you will need to run the following
|
8 | command using [npm](https://www.npmjs.com/):
|
9 |
|
10 | ```bash
|
11 | npm install -S @carbon/upgrade
|
12 | ```
|
13 |
|
14 | If you prefer [Yarn](https://yarnpkg.com/en/), use the following command
|
15 | instead:
|
16 |
|
17 | ```bash
|
18 | yarn add @carbon/upgrade
|
19 | ```
|
20 |
|
21 | ## Usage
|
22 |
|
23 | You 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)
|
25 | by 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 |
|
31 | Below is a full output of the options and commands available:
|
32 |
|
33 | ```bash
|
34 | Usage: carbon-upgrade [options]
|
35 |
|
36 | Commands:
|
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 |
|
41 | Options:
|
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 |
|
53 | We're always looking for contributors to help us fix bugs, build new features,
|
54 | or help us improve the project documentation. If you're interested, definitely
|
55 | check out our [Contributing Guide](/.github/CONTRIBUTING.md)! 👀
|
56 |
|
57 | ## 📝 License
|
58 |
|
59 | Licensed under the [Apache 2.0 License](/LICENSE).
|