GithubHelp home page GithubHelp logo

lguzzon-scratchbook / auto-copilot-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rsaryev/auto-copilot-cli

0.0 0.0 0.0 17.28 MB

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.

License: MIT License

Shell 1.08% JavaScript 0.10% TypeScript 98.82%

auto-copilot-cli's Introduction

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

chat

Description

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

Setup

  1. 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
  2. Get an API key from OpenAI.

  3. Refer to the CLI usage guide to learn how to use the tool.

Commands

  • code-chat <path> - AI chat with codebase usage
    • Options:
      • -p, --prompt <prompt> - Prompt for AI
  • code-review - Perform code review usage - Perform code review
  • test <file> - Generate test usage
    • Options:
      • -p, --prompt <prompt> - Prompt for AI
      • -o, --output <file> - Output file
  • refactor <file> - Refactor code usage
    • Options:
      • -p, --prompt <prompt> - Prompt for AI
      • -o, --output <file> - Output file
  • 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)
  • chat <chat> - Chat with AI usage
    • Options:
      • -p, --prompt <prompt> - Prompt for AI
  • shell <goal> - Generate and execute a shell command usage
  • pre-commit - Analyze git diff and generate a commit message usage
    • Options:
      • -y, --yes - Skip confirmation
  • config <key> <value> - Set configuration usage
  • get-config - Print configuration

Options

  • -h, --help - Display help for command
  • -V, --version - Output the version number

Contributing

Contributions are always welcome!

auto-copilot-cli's People

Contributors

dependabot[bot] avatar lguzzon avatar rsaryev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.