AI-powered CLI tool that serves as your intelligent coding assistant, powered by OpenAI's GPT-4 and Anthropic's Claude models.
# Using npm
npm install -g azgcode
# Using yarn
yarn global add azgcode
# Using pnpm
pnpm add -g azgcode
The chat command is your primary interface to all CLI capabilities. It's like having an AI enginner in your terminal!
# Start interactive chat session
azgcode chat -i
# Or send a single message
azgcode chat [message] [options]
- Free-form Conversations
# Start interactive chat session
azgcode chat -i
# Chat about anything
azgcode chat "Explain how async/await works"
azgcode chat "What's the best way to structure a React project?"
# Chat about your codebase
azgcode chat "What files are in this project?"
azgcode chat "Analyze our current architecture"
azgcode chat "Suggest improvements for our code structure"
- Generate Code & Components
# Generate a React component
azgcode chat --component Header --framework react --typescript --styling tailwind
# Generate specific code
azgcode chat "Create a form validation function in TypeScript"
- Code Analysis & Fixes
# Analyze code
azgcode chat "Analyze this component for performance issues"
# Fix code
azgcode chat "Fix this code: [paste code]"
- Project Generation
# Create new projects
azgcode chat --project next-app --styling tailwind
-
-i, --interactive
- Start interactive chat session -
--component <name>
- Generate a component -
--project <type>
- Generate a project -
--framework <framework>
- Specify framework -
--styling <style>
- Choose styling method -
--typescript
- Use TypeScript -
--test
- Include tests -
-f, --file <path>
- Focus on specific file -
-d, --directory <path>
- Focus on directory
- Full access to your project context
- Natural conversations about code and programming
- Real-time code generation and analysis
- Project-aware suggestions
- History-aware responses
- Code explanations and improvements
- Best practices recommendations
azgcode analyze [options]
Options:
--security Run security checks
--performance Analyze performance
--dependencies Scan dependencies
--output <path> Save results to file
azgcode fix <path> [options]
Options:
-a, --apply Apply suggested fixes
-d, --dry-run Show fixes without applying
-b, --backup Create backup files
-i, --interactive Interactive mode
azgcode create <name> [options]
Options:
-t, --type <type> Project type (react, node, express, next)
-l, --language <lang> Language choice (typescript, javascript)
--styling <framework> CSS framework
--testing <framework> Testing framework
- Frameworks: React, Next.js, Express, Node.js
- Languages: TypeScript, JavaScript
- Styling: Tailwind CSS, Sass, Styled-components, CSS Modules
- Testing: Jest, Vitest, Cypress, Playwright
Default settings in config.ts
:
{
defaultModel: 'gpt-4',
maxTokens: 4000,
temperature: 0.7,
retryAttempts: 3,
retryDelay: 1000
}
- Node.js >= 18.0.0
- npm, yarn, or pnpm
This CLI tool requires an OpenAI API key or Anthropic API key for AI functionality. Set your API key in your environment variables:
export OPENAI_API_KEY=your_key_here
# or
export ANTHROPIC_API_KEY=your_key_here
Sami
Made with ❤️ by AZGCode