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 gunshiLLM-Assisted Development
Gunshi provides tooling to integrate with AI coding assistants such as Claude Code.
Automatic Setup (Recommended)
You can quickly set up LLM-assisted development for your project using the CLI tool:
sh
npx @gunshi/docssh
pnpm dlx @gunshi/docssh
yarn dlx @gunshi/docssh
bun x @gunshi/docsThis command automatically configures Claude Code skills for Claude Code.
Manual Setup
If you prefer manual configuration, install the documentation package as a dev dependency:
sh
npm install --save-dev @gunshi/docssh
pnpm add -D @gunshi/docssh
yarn add -D @gunshi/docssh
bun add -D @gunshi/docsThis 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):
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)
