A CLI tool for retrieving components from a remote repository. Similar to npm install
but for components. There's no updating mechanism, so you can edit and modify installed components as you wish.
- Node.js 18 or higher
- Git
First, you need to install the package. You can do this globally or locally.
npm i -g retrieva
pnpm i -g retrieva
yarn global add retrieva
Any project using retrieva must have a retrieva.json
file in the root directory. The init command will create this file for you.
retrieva init
Interested in how the retrieva.json
file looks like? Check out the one in this repository here.
To install one or more components, use the get
command. Retrieva will then fetch the remote repository and install the components in the local project.
retrieva get <components...> # e.g. retrieva get button card