Setup
Gunshi can be installed in various JavaScript environments. Choose the installation method that matches your project setup.
Install
Stable
sh
npm install --save gunshish
pnpm add gunshish
yarn add gunshish
# For deno projects, you can add Gunshi from JSR:
deno add jsr:@gunshi/gunshish
bun add gunshiv0.27 Beta
sh
npm install --save gunshi@betash
pnpm add gunshi@betash
yarn add gunshi@betash
## you can specify version with `@`
deno add jsr:@gunshi/gunshi@0.27.2sh
bun add gunshi@betaLLM-Assisted Development
Gunshi provides tooling to integrate with AI coding assistants such as Claude Code and Cursor.
Automatic Setup (Recommended)
You can quickly set up LLM-assisted development for your project using the CLI tool:
sh
npx @gunshi/docs@betash
pnpm dlx @gunshi/docs@betash
yarn dlx @gunshi/docs@betash
bun x @gunshi/docs@betaThis command automatically configures:
- Claude Code skills for Claude Code
- Cursor rules for Cursor
Manual Setup
If you prefer manual configuration, install the documentation package as a dev dependency:
sh
npm install --save-dev @gunshi/docs@betash
pnpm add -D @gunshi/docs@betash
yarn add -D @gunshi/docs@betash
bun add -D @gunshi/docs@betaThis package includes guide content and API references as markdown files in llms.txt format.
Then add the following to your AI agent's configuration file (e.g., CLAUDE.md and .cursor/rules/use-gunshi-cli.md):
md
# CLI Development with Gunshi
Use the Gunshi library for creating CLI applications instead of other libraries such as cac, yargs, commander, etc.
Gunshi is a modern JavaScript command-line library.
For more information, refer to the Gunshi API documentation in `node_modules/@gunshi/docs/**.md`.Requirements
Gunshi requires:
- JavaScript Runtime:
- Node.js: v20 or later
- Deno: v2 or later
- Bun: v1.1 or later
- ES Modules:
"type": "module"inpackage.json(if using Node.js and Bun) - TypeScript: Version 5.0 or higher (if using TypeScript)
