A CLI that helps you to identify potential bugs in your code and suggest changes for better code quality.
Setup
-
Install aichecks:
npm install -g aichecks
-
Retrieve your API key from OpenAI
-
Set the key:
aichecks config set OPENAI_API_KEY=<your token>
Upgrading
First check for the installed version using:
aichecks --version
If it's not the latest version, run:
npm update -g aichecks
Usage
CLI mode
Call aichecks <file path>
to generate suggestion for a specific file:
aichecks /src/index.js
Options
OPENAI_KEY
Required
The OpenAI API key. You can get it from OpenAI API Keys page.