auto-copilot-cli
is a versatile tool that offers several functionalities, including:
- AI chat help you quickly find and improve codebase and answer questions about codebase
- Code review
- Pre-commit for generating commit messages
- Code refactoring and linting structure of a folder or a file
- Test generation
- Shell command generation and execution
- Natural language to SQL translation
- Install
auto-copilot-cli
globally:# using npm npm install -g auto-copilot-cli # using install script curl -s https://raw.githubusercontent.com/rsaryev/auto-copilot-cli/main/deployment/deploy.bash | bash
- Get an API key from OpenAI.
- Refer to the CLI usage guide to learn how to use the tool.
code-chat <path>
- AI chat with codebase usage- Options:
-p, --prompt <prompt>
- Prompt for AI
- Options:
code-review
- Perform code review usage - Perform code reviewtest <file>
- Generate test usage- Options:
-p, --prompt <prompt>
- Prompt for AI-o, --output <file>
- Output file
- Options:
refactor <file>
- Refactor code usage- Options:
-p, --prompt <prompt>
- Prompt for AI-o, --output <file>
- Output file
- Options:
sql-translator <query>
- Translate natural language to SQL usage- Options:
-o, --output <output>
- Output sql file-s, --schema-path <schemaPath>
- Path to schema file (sql, prisma, any format)
- Options:
chat <chat>
- Chat with AI usage- Options:
-p, --prompt <prompt>
- Prompt for AI
- Options:
shell <goal>
- Generate and execute a shell command usagepre-commit
- Analyze git diff and generate a commit message usage- Options:
-y, --yes
- Skip confirmation
- Options:
config <key> <value>
- Set configuration usageget-config
- Print configuration
-h, --help
- Display help for command-V, --version
- Output the version number
Contributions are always welcome!