haru.cli
0.5.0
dotnet tool install --global haru.cli --version 0.5.0
dotnet new tool-manifest
dotnet tool install --local haru.cli --version 0.5.0
#tool dotnet:?package=haru.cli&version=0.5.0
nuke :add-package haru.cli --version 0.5.0
Overview
Haru CLI is a minimal command-line utility designed specifically for scaffolding and managing the Haru API Template. It provides a simple, no-boilerplate approach to initializing projects and handling database migrations within the Haru ecosystem.
Installation
Haru CLI is distributed as a .NET Global Tool via NuGet.
Prerequisites
- .NET 9.0 SDK
Verify your environment:
dotnet --version
Global Installation
To install Haru CLI on your system:
dotnet tool install --global haru.cli --version 0.5.0
Management
Update:
dotnet tool update --global haru.cli
Uninstall:
dotnet tool uninstall --global haru.cli
Commands
Run the base command to view all available options:
haru
Technical Specification:
Haru CLI v0.5.0
Usage: haru [command] [options]
Commands:
install Initialize system dependencies
uninstall Remove local configurations
create <name> Scaffold a new Haru API project
migrate <name> Generate a database migration
update-db Execute pending migrations
Quick Start
1. Create a Project
Generate a new instance of the Haru API:
haru create MyProjectName
2. Database Setup
Initialize and apply your first migration:
haru migrate InitialSetup
haru update-db
Deployment Notes
- Platform Support: Windows, macOS, and Linux.
- Framework: Built on .NET 9.0.
- Path Configuration: Ensure your .NET tools directory is included in your system's PATH.
Development Rationale
Haru CLI is built to eliminate manual setup when using the Haru API Template. By using the .NET Global Tools distribution, it ensures that developers have a consistent, easy-to-update interface for project management without manual binary handling.
Maintainer
Haru CLI is developed and maintained by John Joshua Manalo Escarez (Haruki エスシ)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
Initial release. Supports project creation, EF Core migrations,
and database updates.