Mohammad Hameed
All projectsCase study

2025 · Author

Hangar CLI

A fleet operations tool for drone teams — battery lifecycles, flight-hour accounting, and maintenance gates in six boring commands.

Hangar CLI
commands total
6
commands total
status snapshot
90 ms
status snapshot
cloud dependencies
0
cloud dependencies

Reactions

Small drone fleets run on a spreadsheet, a shared calendar, and a mechanic's memory. That works until a battery that needs retirement takes off anyway. Hangar is the tool I wished existed on every team I've worked on: boring, local, and impossible to argue with.

Six commands

hangar log flight <airframe> --hours 1.4 --pilot m.hameed
hangar battery cycle <pack-id>          # counts against rated life
hangar gate check                       # exits non-zero if anything is overdue
hangar report week                      # flight hours, cells retired, tail numbers down

No server. A single SQLite file in the repo — versioned like the code it guards. The CI idea that matters: gate check in a pre-flight script turns "the airframe is grounded" from an argument into an exit code.

gate check output
One snapshot: what can fly, what can't, and why.

Design rules I held to

  • No cloud, no accounts, no dashboards. If the hangar Wi-Fi is down, the tool works better than the alternative.
  • The ledger is the product. Every command appends; nothing is deleted, audit lives forever, which is exactly what an aviation regulator wants.
  • Non-zero exits are safety features. In automation, a green light must mean verified, not probably fine.

Why it exists in public

Because every operations team I've joined rebuilt some version of this at 2 a.m. before a demo. If that's your Tuesday, steal it, or tell me what the seventh command should be.