Get started!
Learn about nefi's usage
Introduction
nefi /ˈnɛfi/ is an AI-powered agent that automates code management and feature integration in Next.js codebases through natural language commands, handling everything from git operations to package management and file modification. This tool streamlines the process of adding new features while maintaining high code quality standards.
Motivation
The whole idea behind this tool is to reduce the amount of manual work and time spent on common tasks like setting up the next-enterprise boilerplate for your personal needs. It is common that not every application requires e.g. storybook integration (althought we love it!). nefi allows you to just type remove storybook from my project
and it will be done.
The best way to start interacting with nefi is to use it along with the next-enterprise boilerplate as it contains solid, minimalistic and robust project structure out of the box
Tutorial
Follow the instructions and paste following commands in your terminal:
and thats it!
API Keys
nefi relies heavily on the Anthropic's API.
Every time the agent is launched it will search for the key in the following places
ANTHROPIC_API_KEY
in your shell environment variablesANTHROPIC_API_KEY
in your.env
file in a directory where you've launchednefi
ANTHROPIC_API_KEY
in your.env.local
file in a directory where you've launchednefi
If the key is not found, the agent will prompt you to enter it and will create a .env.local
file (or append the key to the existing one) in the directory where you've launched nefi
.
How to obtain the API key
Set up an Anthropic account
Please visit console.anthropic.com and set up an account.
Navigate to the API keys section
Navigate to the section where API keys are being managed by either
- clicking on your profile icon and selecting "API Keys"
- or navigating to the "Settings" tab and selecting "API Keys"
Create a new API key
Click on the "Create API key" button and give it a name.
Copy the API key
Copy the API key and paste it into running nefi
, your shell environment variables or .env
file.
Command parameters
There are some command parameters that can be passed to the nefi
command:
-
--verbose
- enables verbose logging. Useful for debugging and troubleshooting. Please refer to the reporting an issue guide for more information. -
--usage
- prints the usage of the Anthropic API in tokens