Installation
System requirements
| Requirement | Details |
|---|---|
| Node.js | >= 22.12.0 |
| Linux | x64 (GNU) |
| macOS | x64 and arm64 |
| Windows | x64 |
Install the CLI
Install the CLI globally using your preferred package manager:
npm install -g @maravilla-labs/cli
# or
pnpm add -g @maravilla-labs/cli
# or
yarn global add @maravilla-labs/cli
Verify the installation:
maravilla --version
Initialize a project
Run maravilla init inside an existing project directory. The command detects your framework and configures the appropriate adapter:
cd my-app
maravilla init
Project structure after init
After initialization, your project will contain a .maravilla/ configuration directory. When you build, the adapter produces the following output structure:
.maravilla/
├── manifest.json # Platform configuration
├── pipeline.yml # CI/CD pipeline definition
├── server.js # Bundled server application
├── server.js.map # Source maps
├── functions/ # Serverless functions (when present)
└── static/ # Static assets and prerendered pages
The manifest.json describes your app’s routing, features, and environment configuration. The runtime reads this file to serve your application.
Authentication
Register for an account and authenticate the CLI:
# Create a new account
maravilla register
# Log in to an existing account
maravilla login
# Check the currently authenticated user
maravilla whoami
CLI commands
The CLI provides the following core commands:
| Command | Description |
|---|---|
maravilla init | Initialize Maravilla in an existing project |
maravilla dev | Start the dev server with platform services (port 3001) |
maravilla build | Build a production bundle |
maravilla preview | Preview a production build locally |
maravilla platform | Manage platform services (kv, db subcommands) |
maravilla update | Update the CLI to the latest version |
Platform service management
Browse KV and database records interactively from the terminal:
# Launch interactive KV browser
maravilla platform kv
# Launch interactive database browser
maravilla platform db
# Show platform service status
maravilla platform status
Updating the CLI
Keep the CLI up to date with a single command:
maravilla update
Next steps
- Frameworks — configure SvelteKit, React Router, or Nitro-based frameworks
- Getting Started — quick start walkthrough