@fiber-offers/cli
v0.1.0
Published
Command-line tools for independent Nervos Fiber Offers merchants.
Maintainers
Readme
@fiber-offers/cli
Command-line tools for independent Nervos Fiber Offers merchants.
The CLI creates a local lifecycle identity, verifies the configured Fiber node, creates and signs offers, registers them with a resolver, lists inventory, and cryptographically revokes offers.
Install
npm install --global @fiber-offers/cliNode.js 20.12 or newer is required.
Initialize
fiber-offers init \
--resolver-url https://fiber-offers.example.com \
--fiber-rpc-url http://127.0.0.1:8227The command creates a private environment file containing new resolver secrets. Start the matching self-hosted resolver with that environment, then verify the node connection:
fiber-offers doctorCreate an offer
fiber-offers create \
--description "Coffee" \
--amount 100000000 \
--username coffeeThe CLI passes amounts in base units. One CKB is 100000000 shannons.
Lifecycle keys and environment files are private local operator material and
must not be committed.
See the independent merchant guide for node, resolver, Fiber Address, and production setup.
License
MIT
