@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 clinpm install -g @webboot/cli// locally in your appnpm install --save-dev --save-exact @webboot/cli

usage

after installing globally,

webboot
will be available as an executable on the PATH.

if installed as local app npm dependency,

webboot
will be available in package.json npm run scripts, and installed in node_modules/.bin/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