au1h
CLI

Applications

au1h apps — list, create, inspect, update, delete, rotate secrets.

au1h apps list
SLUG   NAME      STATUS  USERS  SESSIONS  ORGS
todo   Todo App  active  128    41        on
books  Books     active  9      2         off

Create

au1h apps create todo \
  --name "Todo App" \
  --origins "http://localhost:3000,https://todo.example.com" \
  --redirects "https://todo.example.com/callback" \
  --organizations \
  --init
FlagMeaning
[slug]Lowercase letters, digits, hyphens. Prompted if omitted. This is the x-app-id value and the JWT aud
--nameDisplay name; defaults to the slug
--originsComma-separated browser origins allowed to call au1h for this app (CORS)
--redirectsComma-separated OAuth redirect URIs
--organizationsLet the app's users create organizations
--initRun au1h init for this app in the current directory afterwards
-yNo prompts; omitted values stay empty

The secret (au1h_sk_…) is printed once. It authenticates your backend to the server-to-server API; browsers never need it.

Inspect and change

au1h apps show todo
au1h apps update todo --origins "https://todo.example.com" --organizations true
au1h apps update todo --active false        # reject every sign-in and token
au1h apps secret rotate todo                # old secret stops working immediately
au1h apps delete todo                       # and all of its users, sessions and routes

On this page