> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Work with npm Packages with the Wix CLI ## Article: Work with npm Packages with the Wix CLI ## Article Link: https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md ## Article Content: # Work with npm Packages with the Wix CLI for Sites Wix allows you to install [npm packages](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/about-npm-packages.md) on your site. This article explains how to install, update, and uninstall npm packages in your local IDE with the Wix CLI for Sites. You can also [use npm packages in the editor or the Wix IDE](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md). ## Install an npm package Before using an npm package, you need to install it on your site.
__Important:__ By installing an npm package, you agree to that npm module's license agreement.
To install a package in your local IDE with the Wix CLI for Sites: 1. Open a terminal to your project's root directory. 2. Install the package of your choice by running the following command: ```bash wix install ``` 3. Open the `package.json` file in your project to see the installed package. 4. Learn how to use the installed package from its README file. You can find your package's README file at [npmjs.com](http://npmjs.com/). ## Change a package's version Using the Wix CLI for Sites, you can update an npm package to its latest version. Currently, you can't switch to previous versions of your package using the Wix CLI for Sites.
**Important:** After changing a package's version, make sure that the code on your site is compatible with the updated version of the package.
To update a package to its latest version with the Wix CLI for Sites: 1. Open a terminal to your project's root directory. 2. Update the package of your choice by running the following command: ```bash wix update ``` 3. Open the `package.json` file in your project to see the package's new version. ## Uninstall a package You can uninstall npm packages that you no longer need.
**Warning:** When you uninstall a package, make sure to update any code that relies on that package.
To uninstall a package using the Wix CLI for Sites: 1. Open a terminal to your project's root directory. 2. Uninstall the package of your choice by running the following command: ```bash wix uninstall ``` 3. Open the `package.json` file in your project to see that the package has been removed. ## See also - [About packages](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/about-packages.md) - [About npm packages](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/about-npm-packages.md) - [Work with npm packages in the editor](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md)