CLI

Authenticate

The following example shows how to authenticate with the Provide API after installing the prvd CLI.

➜ ~ prvd authenticate
Email: hello@world.local
INFO : 2020/07/09 06:10:55 Received 201 response for HTTP POST request (3411-byte response received); URL: https://ident.provide.services/api/v1/authenticate
2020/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.

Usage

Use --help to show a list of available commands.

➜ ~ prvd --help
██████╗ ██████╗ ██████╗ ██╗ ██╗██╗██████╗ ███████╗
██╔══██╗██╔══██╗██╔═══██╗██║ ██║██║██╔══██╗██╔════╝
██████╔╝██████╔╝██║ ██║██║ ██║██║██║ ██║█████╗
██╔═══╝ ██╔══██╗██║ ██║╚██╗ ██╔╝██║██║ ██║██╔══╝
██║ ██║ ██║╚██████╔╝ ╚████╔╝ ██║██████╔╝███████╗
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚═╝╚═════╝ ╚══════╝
Run with the --help flag to see available options
Usage:
prvd [command]
Available Commands:
accounts Manage signing identities & accounts
api_tokens Manage API tokens
applications Manage applications
authenticate Authenticate using your developer credentials and receive a valid API token
connectors Manage application connectors
contracts Manage smart contracts
help Help about any command
networks Manage networks
nodes Manage nodes
wallets Manage HD wallets and accounts
Flags:
-c, --config string config file (default is $HOME/.provide-cli.yaml)
-h, --help help for prvd
-v, --verbose enable verbose output
Use "prvd [command] --help" for more information about a command.