CLI login
Browser login, no-browser login, and API key auth for scripts.
CLI login
Browser flow
bashlittledemo login
The CLI opens a browser page. Approve the device code and the CLI stores credentials locally.
Remote shell
bashlittledemo login --no-browser
The CLI prints a URL and short code. Open the URL on another device, approve the code, and return to the terminal.
API key
bashlittledemo login --api-key ld_live_xxx
Or use an environment variable:
bashexport LITTLEDEMO_API_KEY=ld_live_xxxlittledemo whoami
Local config
Credentials are stored in:
text~/.littledemo/config.json
Use littledemo logout to remove stored credentials.