Prerequisites
Before installing the Refine CLI, ensure you have:- Node.js version 20 or higher
- A package manager: npm, yarn, or pnpm
Check Node Version
Global Installation
Install the CLI globally to use it across all your projects:Output
Using with npx
Run CLI commands without global installation:- Trying out the CLI without installing
- Running one-off commands
- Ensuring you’re using the latest version
Project Installation
The CLI is automatically included as a dev dependency when you create a new Refine project:package.json
package.json
Updating the CLI
Update to the latest version:Uninstalling
Remove the global installation:Troubleshooting
Command Not Found
Ifrefine command is not found after global installation:
-
Check if the global bin directory is in your PATH:
-
Add it to your PATH in
~/.bashrcor~/.zshrc: