@webboot/cli
this is the @webboot/cli package.
developers of uniquely adressable resources can use this cli to register pages for verification by the @webboot service.
install
// globally installed cli
npm install -g @webboot/cli
// locally in your app
npm install --save-dev --save-exact @webboot/cli
usage
after installing globally,
webboot
if installed as local app npm dependency,
webboot
cli
./docs is the default directory to build hashes for.
all
run all tasks, one after the other. your page will be published after this.
webboot all --dir docs -u git-user
generate
generate sri-hashes.json
webboot generate --dir docs -u git-user
verify
verify sri-hashes.json
webboot verify --dir docs -u git-user
sign
sign sri-hashes.json
webboot sign --dir docs -u git-user
release
release sri-hashes.json to the webboot network
webboot release --dir docs -u git-user