Package Exports
- @involvex/gemini-cli-context
- @involvex/gemini-cli-context/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@involvex/gemini-cli-context) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
# @involvex/gemini-cli-context
updates Gemini.md files for Gemini-cli .
Getting Started
Quick Start
# npx @involvex/gemini-cli-context@latest Gemini.md
Prerequisites
- Node.js
- npm
Installation
npm install
Project Structure
├── .env
├── .prettierrc
├── dist
│ └── gemini-cli-context.cjs
├── eslint.config.js
├── Gemini.md
├── package-lock.json
├── package.json
├── README.md
└── src
├── config.js
├── index.js
└── utils
└── gemini.js
Available Scripts
start
: node src/index.jslint
: eslint .lint:fix
: eslint . --fixformat:check
: prettier --check .format
: prettier --write .prebuild
: if not exist dist mkdir distbuild
: esbuild src/index.js --bundle --platform=node --outfile=dist/gemini-cli-context.cjs
AI Models Used
- TEXT_ONLY:
gemini-2.5-flash
- TEXT_AND_IMAGE:
gemini-2.5-pro
Usage
To update the project context and generate Gemini.md
(and optionally README.md
), run the following command:
npm start
You will be prompted to provide a detailed project description and whether to update README.md
.
Configuration
This project uses the Google Gemini API. To use it, you can provide your API key in two ways:
Option 1: Using a .env
file (Recommended for security)
- Obtain a Gemini API key from the Google AI Studio.
- Create a
.env
file in the root directory of this project. - Add your API key to the
.env
file:
GEMINI_API_KEY=YOUR_API_KEY
Replace YOUR_API_KEY
with your actual Gemini API key.
Option 2: Passing as a command-line argument
You can also pass the API key directly when running the script:
npm start -- --apikey="YOUR_API_KEY"
Note the --
before --apikey
which is necessary to pass arguments to the Node.js script.
Github-Repository
Support
# Enjoy !