TinyKit Pro Docs

Command Reference

Complete reference for all tinykit-cli CLI commands

The tinykit-cli CLI provides five commands for managing TinyKit projects and authentication.

Global Options

These options are available for all commands:

OptionDescription
--verboseEnable verbose output for debugging
-v, --versionShow CLI version number
-h, --helpShow help information

init

Create a new TinyKit project. This is the default command when running npx tinykit-cli.

Syntax

npx tinykit-cli [project-name] [options]
npx tinykit-cli init [project-name] [options]

Arguments

ArgumentDescription
project-nameName of the project directory (optional, will prompt if not provided)

Options

OptionDescription
--product <name>Skip product selection and use specified product
--skip-prereqsSkip system prerequisites check
-f, --forceOverwrite existing directory without prompting

Example

# Interactive mode
$ npx tinykit-cli

  ████████╗██╗███╗   ██╗██╗   ██╗██╗  ██╗██╗████████╗
  ╚══██╔══╝██║████╗  ██║╚██╗ ██╔╝██║ ██╔╝██║╚══██╔══╝
     ██║   ██║██╔██╗ ██║ ╚████╔╝ █████╔╝ ██║   ██║
     ██║   ██║██║╚██╗██║  ╚██╔╝  ██╔═██╗ ██║   ██║
     ██║   ██║██║ ╚████║   ██║   ██║  ██╗██║   ██║
     ╚═╝   ╚═╝╚═╝  ╚═══╝   ╚═╝   ╚═╝  ╚═╝╚═╝   ╚═╝

 Checking system prerequisites...

 Git 2.39.3
 Node.js 22.0.0
 Bun 1.1.0

 Prerequisites check passed!

  ? Enter project name: my-saas-app
 Already authenticated.

  ? Select a product:
 TinyKit Pro - Full-featured SaaS template
    TinyKit Lite - Lightweight starter
    TinyKit Dirs - Directory template

 Checking access to tinykit-pro...
 Access verified for tinykit-pro.

 Downloading tinykit-pro...
  ████████████████████████████████████████ 100% | 2.5 MB

 Downloaded tinykit-pro v1.0.0

  ┌─────────────────────────────────────────────────┐
  Project created successfully!

  Next steps:
    cd my-saas-app
    bun install
    bun setup
    bun dev
  └─────────────────────────────────────────────────┘
# Non-interactive with all options
$ npx tinykit-cli my-app --product tinykit-pro --force --skip-prereqs

Workflow

  1. Show Banner: Displays the TinyKit ASCII banner
  2. Check Prerequisites: Validates Git, Node.js, and Bun (unless --skip-prereqs)
  3. Get Project Name: Uses argument or prompts interactively
  4. Validate Directory: Checks if directory exists, prompts to overwrite or fails
  5. Authenticate: Checks for valid token, initiates OAuth flow if needed
  6. Select Product: Uses --product flag or shows interactive selection
  7. Verify Access: Confirms user has access to the selected product
  8. Download: Streams and extracts the product archive with progress
  9. Complete: Shows next steps for getting started

login

Authenticate with TinyKit via browser-based OAuth.

Syntax

npx tinykit-cli login [options]

Options

OptionDescription
-f, --forceForce re-authentication even if already logged in

Example

$ npx tinykit-cli login

 Opening browser for authentication...
    If the browser doesn't open, check your terminal for the URL.

  ✓ Welcome, John Doe!

  Email: john@example.com

  ℹ You can now download TinyKit products with 'tinykit init'.

If already logged in:

$ npx tinykit-cli login

  ── Current Session ────────────────────────────────
  Email: john@example.com
  Name: John Doe

  ? Would you like to log in with a different account? No

 Keeping existing session.

Workflow

  1. Check Existing Token: Looks for stored credentials
  2. Validate Token: If found, verifies token is still valid with API
  3. Show Current User: If valid, displays current session info
  4. Prompt for Re-auth: Asks if user wants to switch accounts
  5. OAuth Flow: Opens browser, starts local callback server
  6. Store Token: Saves new token securely in OS keychain

logout

Clear stored authentication credentials.

Syntax

npx tinykit-cli logout

Example

$ npx tinykit-cli logout

  ? Are you sure you want to log out? Yes

 Successfully logged out.

If not logged in:

$ npx tinykit-cli logout

 You are not currently logged in.

Workflow

  1. Check Token: Verifies if user is currently logged in
  2. Confirm Logout: Prompts for confirmation
  3. Clear Credentials: Removes token from keychain and file storage

whoami

Display current user information and product access.

Syntax

npx tinykit-cli whoami

Example

$ npx tinykit-cli whoami

  ── Account ────────────────────────────────────────
  Email: john@example.com
  Plan: Subscription
  Access Expires: January 15, 2026

  ── Product Access ─────────────────────────────────
 tinykit-pro (v1.2.0)
 tinykit-lite (v1.0.0)
 tinykit-dirs (no access)

If not logged in:

$ npx tinykit-cli whoami

 Not logged in

 Run 'tinykit login' to authenticate.

Output Details

FieldDescription
EmailYour registered email address
PlanFree, One-time Purchase, or Subscription
Access ExpiresSubscription/license expiration date (if applicable)
Product AccessList of products with access status and versions

update

Check for and install CLI updates from npm.

Syntax

npx tinykit-cli update [options]

Options

OptionDescription
-c, --checkOnly check for updates, don't install

Example

Check for updates:

$ npx tinykit-cli update --check

  ████████╗██╗███╗   ██╗██╗   ██╗██╗  ██╗██╗████████╗
  ...

 Checking for updates...
 Version check complete

  Current version: 1.0.0
  Latest version: 1.1.0

    A new version is available: 1.0.0 1.1.0

 Run 'tinykit update' to install the update.

Install update:

$ npx tinykit-cli update

  Current version: 1.0.0
  Latest version: 1.1.0

    A new version is available: 1.0.0 1.1.0

  ? Update tinykit-cli to 1.1.0? Yes

 Installing update using bun...
    bun add -g tinykit-cli@latest

 Successfully updated to 1.1.0!

  ┌───────────────────────────────────────────────────┐
  Update Complete

  The update has been installed globally.
  Run 'tinykit --version' to verify the new version.│
  └───────────────────────────────────────────────────┘

Package Manager Detection

The update command automatically detects your package manager:

Package ManagerInstall Command
Bunbun add -g tinykit-cli@latest
pnpmpnpm add -g tinykit-cli@latest
Yarnyarn global add tinykit-cli@latest
npmnpm install -g tinykit-cli@latest

On this page

Ship your startup faster. In minutes.

Get TinyKit Pro