Development Setup
Setting up local development environment and dependencies for Gemini CLI development
System Requirements
Ensure your system meets these requirements before starting
Node.js
18.0.0 or higher
JavaScript runtime environment
node --versionnpm
8.0.0 or higher
Node.js package manager
npm --versionGit
2.20.0 or higher
Version control system
git --versionVS Code
Latest (recommended)
Code editor
code --versionInstallation Steps
Follow these steps to set up your development environment
Clone Repository
Get the Gemini CLI source code from GitHub
git clone https://github.com/google-gemini/gemini-cli.git cd gemini-cli
Install Dependencies
Install all required project dependencies
npm install
Bootstrap Project
Set up monorepo and link packages
npm run bootstrap
Build Project
Compile TypeScript code
npm run build
Environment Configuration
Configure development environment and tools
VS Code Extensions
Recommended VS Code extensions
TypeScript and JavaScript Language FeaturesESLintPrettier - Code formatterGitLensThunder Client (API testing)Environment Variables
Set up necessary environment variables
GEMINI_API_KEY=your_api_keyNODE_ENV=developmentDEBUG=gemini:*LOG_LEVEL=debugVerify Installation
Confirm your development environment is set up correctly
Run Tests
npm testAll tests should pass
Start Development Mode
npm run devShould start development server
Check Code Quality
npm run lintShould have no linting errors
Next Steps
Continue your development journey with these resources