The following example shows how to authenticate with the Provide API after installing the prvd
CLI.
➜ ~ prvd authenticateEmail: hello@world.localINFO : 2020/07/09 06:10:55 Received 201 response for HTTP POST request (3411-byte response received); URL: https://ident.provide.services/api/v1/authenticate2020/07/09 06:10:55 Authentication successful
Upon successful authentication, ~/.provide-cli.yaml
will have been created if it did not previously exist with 0600
permissions. This file contains signed JWT tokens needed by subsequent calls to the API, along with other metadata.
Use --help
to show a list of available commands.
➜ ~ prvd --help██████╗ ██████╗ ██████╗ ██╗ ██╗██╗██████╗ ███████╗██╔══██╗██╔══██╗██╔═══██╗██║ ██║██║██╔══██╗██╔════╝██████╔╝██████╔╝██║ ██║██║ ██║██║██║ ██║█████╗██╔═══╝ ██╔══██╗██║ ██║╚██╗ ██╔╝██║██║ ██║██╔══╝██║ ██║ ██║╚██████╔╝ ╚████╔╝ ██║██████╔╝███████╗╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚═╝╚═════╝ ╚══════╝Run with the --help flag to see available optionsUsage:prvd [command]Available Commands:accounts Manage signing identities & accountsapi_tokens Manage API tokensapplications Manage applicationsauthenticate Authenticate using your developer credentials and receive a valid API tokenconnectors Manage application connectorscontracts Manage smart contractshelp Help about any commandnetworks Manage networksnodes Manage nodeswallets Manage HD wallets and accountsFlags:-c, --config string config file (default is $HOME/.provide-cli.yaml)-h, --help help for prvd-v, --verbose enable verbose outputUse "prvd [command] --help" for more information about a command.