Installation
Get set up to build MALV-based AI products.
Prerequisites
You'll need:
- Node.js 18+ - Download here
- npm or yarn - Comes with Node.js
Install the CLI
The CLI helps you create projects, run development servers, and manage your apps.
npm i -g @malv/cli
Or with yarn:
yarn global add @malv/cli
Verify It Works
Check that everything installed correctly:
malv --version
You should see a version number like 1.0.0.
Create Your First Project
Now you're ready to scaffold a project:
malv create
Follow the prompts to name your project. This creates everything you need to start building.
What You Get
After running malv create, your project looks like this:
my-project/
├── malv.json # Project configuration
├── .malv/ # Generated files (gitignored)
├── packages/
│ ├── apps/ # Your apps live here
│ └── web/ # Web interfaces
└── package.json
The malv.json file is where you register your apps. The CLI reads this to know what to run.
Start Building
Install dependencies and start the development server:
cd my-project
yarn install
malv dev
Your project is now running locally. Time to create your first app.
Updating the CLI
Keep the CLI up to date:
malv update
The CLI checks for updates automatically and will let you know when a new version is available.