This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

azgcode
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

AZGCode CLI 🤖

AI-powered CLI tool that serves as your intelligent coding assistant, powered by OpenAI's GPT-4 and Anthropic's Claude models.

🚀 Installation

# Using npm
npm install -g azgcode

# Using yarn
yarn global add azgcode

# Using pnpm
pnpm add -g azgcode

🎯 Core Feature: AI Chat Assistant

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]

What You Can Do with Chat:

  1. 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"
  1. 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"
  1. Code Analysis & Fixes
# Analyze code
azgcode chat "Analyze this component for performance issues"

# Fix code
azgcode chat "Fix this code: [paste code]"
  1. Project Generation
# Create new projects
azgcode chat --project next-app --styling tailwind

Chat Options

  • -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

Interactive Chat Features

  • 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

🛠️ Additional Commands

Analyze

azgcode analyze [options]

Options:
--security        Run security checks
--performance     Analyze performance
--dependencies    Scan dependencies
--output <path>   Save results to file

Fix

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

Create

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

🎨 Supported Technologies

  • Frameworks: React, Next.js, Express, Node.js
  • Languages: TypeScript, JavaScript
  • Styling: Tailwind CSS, Sass, Styled-components, CSS Modules
  • Testing: Jest, Vitest, Cypress, Playwright

🔧 Configuration

Default settings in config.ts:

{
  defaultModel: 'gpt-4',
  maxTokens: 4000,
  temperature: 0.7,
  retryAttempts: 3,
  retryDelay: 1000
}

🚀 Requirements

  • Node.js >= 18.0.0
  • npm, yarn, or pnpm

📝 Note

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

👤 Author

Sami


Made with ❤️ by AZGCode

Package Sidebar

Install

npm i azgcode

Weekly Downloads

1

Version

1.3.1

License

UNLICENSED

Unpacked Size

197 kB

Total Files

82

Last publish

Collaborators

  • azag