Skip to content

KC-LEGO-CLI-NEW

A LEGO collection manager for the terminal, built to keep working when the internet doesn't. It also carries tools for ModernWMS and Part-DB inventories, and serves the same interface over telnet and a web terminal.

KCPARTS                                                      2026-09-20 12:00:00
LEGO
                                LEGO COLLECTION                                 
 User: admin (100%)   Role: admin   Source: ModernWMS    ADMIN 
────────────────────────────────────────────────────────────────────────────────
 1=Overview 2=PartDB Hub 3=Operations 4=Script Hub 5=LEGO Collection 6=Admin
────────────────────────────────────────────────────────────────────────────────
   F1=Help   F2=Go To   F3=Exit   F9=Undo   F6=Quick Add   F10=Lock   F12=Cancel
Select Option:
     1. Search My Sets
     2. Search Sets (offline catalog first)
     3. Search Parts (offline catalog first)
     4. Add / Update a Set
     5. Add / Update an Owned Part (for sync to Part-DB)
     6. List Owned Parts
     7. Collection Stats (A: achievements)
     8. Set Workshop: parts checks, missing parts, orders, labels
     9. BrickLink Lookup by Number (price, live)
     H. History of Changes and Growth Chart
     B. What Can I Build? (from your loose parts)
     D. Part / Set Detail with picture
     0. Return
 LOW STOCK: 1 part(s) are below the minimum you set   -> 6 List Owned Parts, then / then low

Select Option [1-9, B, D, H, Q]:  
  • Offline-first

    The whole Rebrickable catalog lives in a local database: parts, colours, sets, themes, minifigures and every set's parts list. Search, adding and "what am I missing" need no key and no network. Offline mode

  • Lookup-first adding

    Type a part number: name, category and the colours it comes in are filled in. You give colour and quantity. Adding parts

  • Know what you can build

    Sets your loose parts cover, shopping lists that count alternate and mould parts, BrickLink wanted lists. Sets and building

  • Pictures and detail pages

    Part and set pictures drawn as text (half-blocks or ASCII) that work over telnet. Search and pictures

  • BrickLink prices

    Price guide, collection value and price alerts to your phone. BrickLink

  • Careful by default

    Single-use 2FA with lockout, a tamper-evident audit log, encrypted backups, sandboxed plugins. Security

Where to start

  1. Getting started: install it and take the first ten minutes.
  2. Pick a guide from the menu when you need one.
  3. Every command is in the command reference, generated from the program's own --help.

Prefer scripts?

Everything has --json, --quiet, --dry-run and meaningful exit codes. See the command reference.