CLI Overview
Start a new TinyKit project with a single command using tinykit-cli
The tinykit-cli CLI lets you scaffold new TinyKit projects with a single command. No installation required - just run it via npx.
Quick Start
npx tinykit-cli my-appThis will:
- Check your system prerequisites
- Authenticate you via browser (if needed)
- Let you select a TinyKit product
- Download and extract the project to
my-app/ - Display next steps for getting started
Features
- Zero Installation: Run directly via
npxwithout installing globally - OAuth Authentication: Secure browser-based login with token stored in OS keychain
- System Prerequisites Check: Validates Git, Node.js, and Bun availability
- Interactive Product Selection: Choose from available TinyKit products
- Progress Tracking: Real-time download progress with visual feedback
- Cross-Platform: Works on macOS, Windows, and Linux
System Requirements
| Tool | Version | Required | Notes |
|---|---|---|---|
| Git | >= 2.0.0 | Yes | For cloning and version control |
| Node.js | >= 22.0.0 | Yes | Runtime for the CLI |
| Bun | >= 1.0.0 | Recommended | TinyKit works best with Bun |
Note: While Bun is recommended for the best TinyKit experience, npm, yarn, or pnpm will also work for package management.
Basic Usage
Create a New Project
# Interactive mode (prompts for project name and product)
npx tinykit-cli
# Specify project name
npx tinykit-cli my-saas-app
# Skip prompts with flags
npx tinykit-cli my-app --product tinykit-proAuthentication
# Login to TinyKit
npx tinykit-cli login
# Check current user
npx tinykit-cli whoami
# Logout
npx tinykit-cli logoutUpdates
# Check for CLI updates
npx tinykit-cli update --check
# Update to latest version
npx tinykit-cli updateWhat's Next?
- Command Reference - Detailed documentation for all CLI commands
- Authentication - How the OAuth flow works and token storage
- Setup Wizard Guide - What to do after project creation