prova auth
Signs you in by minting an API token tied to an email address. The token is saved to ~/.prova/config.json (mode 600) and used by every subsequent CLI command.
bash
$ prova auth
Email: [email protected]
✓ Signed in as [email protected]
user-id : 6a2e8fe9beee83ef
quota : 1.00 GB / day
expires : 2027-04-25 14:06:05
Token saved to ~/.prova/config.jsonUsage
prova authNo flags. Prompts for your email interactively.
What it does
- Asks for your email
- Calls
POST /api/auth/signupwithlabel = cli@<hostname> - Stores the returned token in
~/.prova/config.jsonwith permissions0600 - Prints your user id, quota, and token expiry
The label cli@<hostname> is what appears in the dashboard's token list, so you know which device a token came from.
Already signed in?
If ~/.prova/config.json exists, prova auth declines and tells you to prova logout first. This prevents accidentally overwriting a working session.
Pre-mainnet
Today's signup is email-only, no verification. After mainnet launch, this command sends a magic link to your inbox and you click it to confirm before the token is issued. The CLI flow stays the same — the prova auth command waits for the link to be clicked, then writes the token.
Environment variables
| Variable | Effect |
|---|---|
PROVA_API | Override the API base URL (default https://prova.network). |