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