By no means is the exact DX orthodox, I expect we'll iterate on this, but this puts all the basic pieces in place.
cmd/web5/ Go package, which makes use of Kong (cc @alecthomas)
scripts/web5 so that developers will instantly gain access to the web5 CLI once they activate their hermit environment
Add scripts/ to the hermit env vars
Add basic README instructions
Supported commands
web5 did:jwk create
web5 did:web create <domain>
example: web5 did:web create tbd.website
Both commands will print the full Portable DID (JSON formatted with indenting) to the terminal
➜ web5 -h
Usage: web5 <command>
Web5 - A decentralized web platform that puts you in
control of your data and identity.
Flags:
-h, --help Show context-sensitive help.
Commands:
did:jwk create
Create a did:jwk.
did:web create <domain>
Create a did:web.
Run "web5 <command> --help" for more information on a command.
Summary
This PR proposes the introduction of a
web5
CLI tool. Originally prompted by https://github.com/TBD54566975/web5-go/issues/20 this ticket was inspired by theftl
command line utility.By no means is the exact DX orthodox, I expect we'll iterate on this, but this puts all the basic pieces in place.
cmd/web5/
Go package, which makes use of Kong (cc @alecthomas)scripts/web5
so that developers will instantly gain access to theweb5
CLI once they activate their hermit environmentscripts/
to the hermit env varsSupported commands
web5 did:jwk create
web5 did:web create <domain>
web5 did:web create tbd.website
Both commands will print the full Portable DID (JSON formatted with indenting) to the terminal
Example
did:web
creationCloses https://github.com/TBD54566975/web5-go/issues/20