Click to view demo
Usage.mov
Click to view usage
# Refactor code
$ copilot -r <file>
# Rename all files in the current directory to lowercase
$ copilot "rename files in the current directory to lowercase"
# Convert all images in the current directory to size 100x100
$ copilot "convert all images in the current directory to size 100x100"
# Create a file with implementation of binary search
$ copilot "create a js file with implementation of binary search"
# Create a simple web server in Node.js using Koajs
$ copilot "create a simple web server in Node.js using Koajs"
# Start PostgreSQL in Docker
$ copilot "start PostgreSQL in Docker"
Auto Copilot is a powerful and useful tool for developers that uses OpenAI models to translate natural language into commands, scripts, refactoring code and more that will help you achieve your goal as safely as possible.
npm install -g auto-copilot-cli
Install Script:
curl -s https://raw.githubusercontent.com/rsaryev/auto-copilot-cli/main/deployment/deploy.bash | bash
- Node.js v18.16.0 or higher - Install Node.js
- OpenAI API key - Get OpenAI API key
-r, --refactor <file>
- refactor code-h, --help
- display help for command-V, --version
- output the version number
-m, --model <modelName>
- OpenAI model name (default: "gpt-3.5-turbo")-k, --openai-api-key <key>
- OpenAI API key (Get OpenAI API key)-e, --editor <editor>
- Editor to open files (default: "code")