CLI
Command line edition of Elebox, powered by clap (opens in a new tab).
Usage
Basic
Print help message:
elebox helpUse and operate on the default database path and filename ./elebox.db:
elebox COMMANDor a specified ./my_box.db:
elebox my_box.db COMMANDwhere COMMAND can be init, part, category, export or import.
Init
You need to initialize a database before you can proceed with the next steps.
Create and initialize a new database with the default path:
elebox initCategory
List part categories:
elebox categoryCreate a new part category named MCU:
elebox category new MCUCreate new part category named ARM and RISC-V, and designate them as a subcategory of MCU:
elebox category new ARM -p MCU
elebox category new "RISC-V" -p MCUPart
List parts:
elebox partCreate a new part named RP2040 with a part category of ARM, and a quantity of 25:
elebox part new RP2040 25 ARMConsume or restock 10 RP2040:
elebox part use RP2040 10
elebox part add RP2040 10Rename RP2040 to rpi-RP2040:
elebox part update RP2040 "rpi-RP2040"