A command-line interface tool for installing and managing Cursor AI rules in your projects.
- Initialize AI rules in your project
- Update existing AI rules to their latest versions
- Interactive rule selection
- YAML-based configuration
- Git integration for rule management
We recommend installing globally:
npm install -g @multiverse-io/cari
- Cari works by taking rules from your central AI Rules repository and installing them to your project
- The only requirement for a central rules repository is that it contains a top-level
rules
directory - Within the rules directory you should have your
*.mdc
rules files - These files can be nested within folders to help you organise them by category
Initialize AI rules in your project:
Yarn:
cari init
This command will:
- Clone the AI rules repository(s) in
~/.cari
if it doesn't exist - Find all available rule files
- Allow you to select which rules to include
- Create a configuration file (.cari.yaml) in your project
- Copy the selected rule files to your project
Update the AI rules in your project:
Yarn:
cari update
This command will:
- Pull the latest changes from the AI rules repository
- Check your configuration file (.cari.yaml) for included rules
- Copy the latest version of those rules to your project
- Ask if you want to include any new central rules it finds
- Node.js >= 14.0.0
- Yarn >= 4.1.1
# Clone the repository
git clone git@github.com:Multiverse-io/cari.git
cd cari
yarn install
# Run in development mode
yarn dev
yarn dev init
yarn dev update
# Build the project
yarn build
# Run the built version
yarn start
# Run tests once
yarn test
# Run tests in watch mode
yarn test:watch
# Run tests with coverage
yarn test:coverage
Tim Gent
For support, please open an issue in the GitHub repository.