Command Line Interface

Sync and manage your LumifyHub content from the terminal.

The LumifyHub CLI (lh) lets you work with your pages and databases from the command line. Perfect for developers who want to edit content locally, automate workflows, or integrate with other tools.

Installation

npm install -g lumifyhub-cli

Quick Start

# Login to your account
lh login

# Pull all pages and databases
lh pull

# Push local changes
lh push

# Check sync status
lh status

Key Features

Unified Sync

Pull and push both pages and databases with a single command:

lh pull                    # Pull all pages + databases
lh push                    # Push all local changes
lh status                  # Check what's changed

Pages as Markdown

Your pages are stored as local markdown files with YAML frontmatter. Edit them in your favorite editor.

lh pull -w my-workspace    # Pull specific workspace
lh search "keyword"        # Search your pages

Pages are stored in ~/.lumifyhub/pages/ organized by workspace.

Databases as CSV

Databases are stored as YAML schema + CSV data files. Edit the CSV in any spreadsheet app or text editor. Select and multi-select values are shown as readable names, not IDs.

lh db pull                 # Pull databases only
lh db push                 # Push database changes only
lh db status               # Check database sync status
lh db list                 # List local databases

Databases are stored in ~/.lumifyhub/databases/ organized by workspace.

Quick Capture

Create notes from the terminal without opening a browser:

lh add "Quick thought to capture"
lh new "Meeting Notes" -c "# Attendees\n- Alice\n- Bob"

Workspaces

lh workspaces              # List your workspaces
lh ws                      # Shorthand

Learn More