The Feathers CLI can be installed globally or used directly withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/feathersjs/feathers/llms.txt
Use this file to discover all available pages before exploring further.
npx. We recommend using npx to always use the latest version.
Prerequisites
Before installing the Feathers CLI, ensure you have:- Node.js 14 or higher - Download Node.js
- npm or yarn - Comes with Node.js
Installation methods
Use with npx (recommended)
Run the CLI directly without installing:This ensures you always use the latest version of the CLI.
Verify installation
Check that the CLI is working:5.0.41).
Getting started with the CLI
Once installed, you can start generating code:Generate a new application
- Application name
- Project description
- Framework (Express or Koa)
- Database type
- Schema format
- Authentication options
Using the shorthand
The CLI provides a convenient shorthand for generators:Command-line options
Skip interactive prompts by providing options:--help with any command to see available options:
Troubleshooting
Node version error
If you see an error about Node version, ensure you’re running Node.js 14 or higher:Permission errors (global install)
If you encounter permission errors with global installation:- On macOS/Linux: Use
sudo(not recommended) or configure npm to install globally without sudo - On Windows: Run your terminal as Administrator
- Better solution: Use
npxinstead of global installation
Command not found
Iffeathers command is not found:
- Use
npx @feathersjs/cliinstead - Or ensure the global installation directory is in your PATH
- Or install as a local dev dependency and use
npx feathers
Next steps
CLI Overview
Learn about available generators
Generate application
Create your first Feathers app
Generate service
Add a service to your application
Configuration
Configure your Feathers application