auth

Command: auth

Syntax

phala auth [options] [command]

Description

The phala auth command is used to authenticate a user's API key to manage their Phala Cloud account.

Usage: phala auth [options] [command]

Authenticate with Phala Cloud

Options:
  -h, --help        display help for command

Commands:
  login [api-key]   Set the API key for authentication
  logout            Remove the stored API key
  status [options]  Check authentication status
  help [command]    display help for command

Examples

  • Display help

phala auth --help
  • Login to Phala Cloud with API Key

phala auth login <your-api-key>
  • Login to Phala Cloud with user prompt

phala auth login
? Enter your API key: › *********************
  • Get Status of Login

phala auth status
Example Output
⟳ Checking authentication status... ✓

✓ Authenticated as bitsbender
╭────────────┬─────────────────────────────────╮
├────────────┼─────────────────────────────────┤
│ Username   │ bitsbender                      │
├────────────┼─────────────────────────────────┤
│ Email      │ [email protected]
├────────────┼─────────────────────────────────┤
│ Role       │ user                            │
├────────────┼─────────────────────────────────┤
│ Team       │ bitsbender's projects (free)    │
├────────────┼─────────────────────────────────┤
│ Credits    │ $400                            │
╰────────────┴─────────────────────────────────╯
  • Logout of Phala Cloud

phala auth logout

Last updated

Was this helpful?