create-mivo
v0.1.2
Published
Scaffold and initialize high-performance MIVO MikroTik management platforms
Maintainers
Readme
create-mivo
The official scaffolding and initialization CLI for MIVO — a high-performance Next.js MikroTik hotspot & voucher management platform.
Modeled after industry-standard tools like create-cloudflare and create-next-app.
Quick Start
Interactive Mode (Standard)
npx create-mivo [dir]
# or
pnpm create mivo [dir]
# or
bun create mivo [dir]This launches an interactive terminal interface powered by Ink, featuring:
- Preflight Doctor: Validates Node.js version (
>= 20.0.0) and target directory write permissions. - Project Path Selector: Custom or default directory input with live validation.
- Package Manager Selector: Interactive choice between
pnpm(recommended),npm,bun, andyarn. - Superadmin Provisioning: Interactive form for username, email, and masked password input.
- Cryptographic Secret Generator: Previews a 32-byte hex token with interactive key regeneration (
[↻]or custom input). - Multi-Task Runner: Live animated terminal spinners for scaffolding,
.envinjection, SQLite provisioning, Drizzle migrations, and seeding. - Summary Screen: Dynamic next-steps instructions customized to your chosen package manager.
Headless Mode (CI/CD & Docker)
For automated environments, Docker containers, or non-interactive scripts:
npx create-mivo my-mivo \
--admin-user admin \
--admin-email [email protected] \
--admin-password mysecretpass \
--pm pnpm \
--yesCLI Flags
| Flag | Type | Description |
| :--- | :--- | :--- |
| [dir] | string | Target folder name (default: mivo-app) |
| --admin-user <name> | string | Superadmin username |
| --admin-email <email> | string | Superadmin email address |
| --admin-password <pass> | string | Superadmin password (minimum 8 characters) |
| --secret <hex> | string | 32-byte hex secret key (auto-generated if omitted) |
| --pm <manager> | string | Package manager to use (pnpm, npm, yarn, bun) |
| --use-pnpm | boolean | Use pnpm as package manager |
| --use-npm | boolean | Use npm as package manager |
| --use-yarn | boolean | Use yarn as package manager |
| --use-bun | boolean | Use bun as package manager |
| -y, --yes | boolean | Non-interactive execution (accepts defaults & flags) |
| --dry-run | boolean | Simulate execution without writing files to disk |
| -h, --help | boolean | Display CLI help and flag reference |
| -V, --version | boolean | Display installed version |
Development
# Typecheck
pnpm check:type
# Build bundle
pnpm build
# Watch mode
pnpm dev