Skip to content

Cursor Rule is a command-line tool for pulling Cursor editor rule files to local projects.

Notifications You must be signed in to change notification settings

fchc7/cursor-rules

Repository files navigation

Cursor Rule

Version Test Coverage

中文文档

Introduction

Cursor Rule is a command-line tool for pulling Cursor rule files to your local .cursor/rules directory. It helps users manage and update their Cursor rules efficiently, making it easier to customize your Cursor editor experience.

Features

  • Pull specific rule files from JavaScript, Rust, or common modules
  • List and select modules to pull all files from
  • Interactive selection of rule files
  • Command-line options for quick selection of modules
  • Detailed success and failure reporting

Installation

Prerequisites

  • Node.js (v16.0.0 or higher)
  • npm (v6.0.0 or higher)

Install via npm

npm install -g  @fchc8/cursor-rules

Install from source

git clone https://github.com/fchc7/cursor-rules.git
cd cursor-rules
npm install
npm link

Usage

Basic Usage

pullrule [options]

Options

  • -j, --js: Pull JavaScript rules
  • -r, --rust: Pull Rust rules
  • -c, --common: Pull common rules
  • -l, --list: List and select modules to pull all files from
  • -h, --help: Display help information
  • -V, --version: Display version information

Examples

  1. Pull specific rule files interactively:
    pullrule
  2. Pull JavaScript rules interactively:
    pullrule --js
  3. Pull all files from selected modules:
    pullrule --list
  4. Pull all JavaScript and common rules:
    pullrule --js --common --list

License

This project is licensed under the MIT License.

About

Cursor Rule is a command-line tool for pulling Cursor editor rule files to local projects.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published