raspberry-cli
v1.0.4
Published
CLI tool for managing and building Raspberry framework projects.
Maintainers
Readme
🍓 Raspberry CLI
The official CLI for managing and building Raspberry framework projects.
Simple. Fast. Developer-first.
🚀 Overview
raspberry-cli is a tiny but powerful command-line tool built for the Raspberry Framework.
It helps you create, build, and serve Raspberry projects effortlessly — all from your terminal.
📦 Package Info
| Property | Value |
|-----------|--------|
| Name | raspberry-cli |
| Version | 1.0.1 |
| License | ISC |
| Language | TypeScript |
| Runtime | Node.js |
⚙️ Installation
🔹 Global Install
npm install -g raspberry-cli
# or
pnpm add -g raspberry-cliNow you can use the raspberry command anywhere 🎉
🔹 Local Development
# clone and setup
git clone https://github.com/codewithdripzy/raspberry-cli.git
cd raspberry-cli
pnpm install
# run in dev mode
pnpm run dev⚡ Quick Start
Create a new project interactively:
raspberry create my-appBuild your project:
raspberry buildRun it locally:
raspberry serve🧠 Example Scripts
You can also wire commands directly into your project’s package.json:
{
"scripts": {
"build": "raspberry build",
"start": "raspberry start",
"dev": "raspberry dev"
}
}🧩 Commands
| Command | Description |
| -------- | -------------------------------------------------- |
| create | Scaffold a new project from a template. |
| build | Compile TypeScript and prepare a production build. |
| serve | Run a local development server. |
Example usage:
raspberry create my-project --template 1.0.0
raspberry build --out dist
raspberry serve --port 3000🎨 Templates
Templates are located in src/templates.
The default 1.0.0 template includes both TypeScript and JavaScript variants:
src/templates/1.0.0/tsTemplate.ts→ TypeScriptsrc/templates/1.0.0/js/→ JavaScript
🧑💻 Development
The CLI is TypeScript-based and built for Node.js.
Common commands:
pnpm install # install dependencies
pnpm run dev # start in dev mode
pnpm run build # compile TypeScriptRecommended workflow:
- Fork & create a feature branch
pnpm install && pnpm run dev- Add tests if possible
- Submit a PR with a clear description
🤝 Contributing
Pull requests, ideas, and discussions are highly welcome! Before contributing:
- Keep PRs small & focused.
- Ensure the build passes.
- Add/update relevant tests.
Join discussions or open issues on GitHub Discussions.
🧩 Example App
A sample Raspberry project lives in tests/myapp.
Try it out:
pnpm link --global
cd tests/myapp
pnpm install
pnpm run devOr directly run the CLI with ts-node:
node -r ts-node/register src/index.ts create example-app🩵 Troubleshooting
- Command not found? → Ensure global npm/pnpm bin is in your
$PATH. - Build errors? → Run
pnpm run buildfor compiler diagnostics.
🪪 License
This project is licensed under the ISC License. See LICENSE for details.
