A CLI for managing assets and packages on DevHub.
Project configs (eg. devhub.json
) keep track of assets that the repo is creating.
The dependency config (devhub-lock.json
) keeps track of zome, DNA, or hApp dependencies for the
assets being created.
npm i --global @holochain/devhub-cli
See DevHub Setup for instructions on running and installing devhub.
devhub connection --global set <PORT> <TOKEN>
Check connection with
devhub connection status
devhub install <package>
devhub zome init path/to/crate/dir
After answering the prompt questions, a zome.json
file is created in the location provided.
Check local configurations using...
devhub status
Preview what would be published for the newly defined zome.
devhub publish --dry-run zome crate_name
If it looks good, complete the publishing by removing the --dry-run
flag.
devhub publish zome crate_name
See docs/API.md
See CONTRIBUTING.md