Authentication¶
PAT Login (recommended)¶
On success you'll see:
╭─ Authenticated with PAT ───────────────────────────────╮
│ ✓ Authenticated with PAT │
│ │
│ Name Jane Smith │
│ Email jane@example.com │
│ Tenant acme-corp │
│ Server http://localhost:8080 │
╰────────────────────────────────────────────────────────╯
Check Auth Status¶
Profile: default
Server: http://localhost:8080
Status: Authenticated (PAT)
Email: jane@example.com
Tenant: acme-corp
Token: Valid (PAT, no expiry)
Server: Token verified with server
Logout¶
Multiple Profiles¶
You can authenticate to multiple environments using profiles:
# Login to each environment
shoehorn --profile prod auth login --server https://api.shoehorn.dev --token shp_prod_xxx
shoehorn --profile staging auth login --server https://staging.shoehorn.dev --token shp_stg_xxx
# Use a specific profile for any command
shoehorn --profile prod get entities
shoehorn --profile staging forge molds list
See Configuration for more on profiles.