1.0.41 • Published 12 months ago

auto-copilot-cl v1.0.41

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Auto Copilot CLI

logo

npm Node.js Package MIT License auto-copilot-cli npm downloads

Demo

https://github.com/rsaryev/auto-copilot-cli/assets/70219513/91221d9f-d894-4ed7-a035-5413267ec051

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"

Description

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.

Installation

npm install -g auto-copilot-cli

Install Script:

curl -s https://raw.githubusercontent.com/rsaryev/auto-copilot-cli/main/deployment/deploy.bash | bash

Requirements

Options

  • -r, --refactor <file> - refactor code
  • -h, --help - display help for command
  • -V, --version - output the version number

Configuration

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