Build and link the Aurelia CLI locally
masterIf you are developing the CLI itself and want to test your changes against a real Aurelia project, follow these steps to build and link it:
- Clone the repository:
git clone https://github.com/aurelia/cli.git - Enter the directory:
cd cli - Install dependencies:
npm install - Create a global link:
npm link - Create a new project using the linked CLI:
au new(or use an existing project). - Link the CLI to your specific project: In your project directory, run
npm link aurelia-cli. This ensures that commands likeau runuse your local development version of the CLI.
git clone https://github.com/aurelia/cli.git
cd cli
npm install
npm link
# In your project directory:
npm link aurelia-cli