eremos
v0.2.1
Published
Eremos CLI - OAuth 2.1 PKCE client for the Eremos platform
Downloads
310
Readme
Eremos CLI
Official CLI for interacting with the Eremos platform.
Requirements
- Node.js >= 20
Installation
npm install -g eremosUsage
eremos login # OAuth login (opens browser)
eremos status # Check authentication status
eremos me # View your profile
eremos content list # List contents
eremos --help # Show all commandsFor full CLI reference, see https://eremos.jp/skill.md
me Behavior
eremos mealways aims to return a usable self profile.- It first calls
GET /api/users/me. - If OAuth receives
OAUTH_NOT_ALLOWED, it automatically falls back toGET /api/users/{sub}(JWTsub). --jsonoutput includesdata.source:users_me: direct response from/api/users/meusers_get_fallback: fallback response from/api/users/{id}
OAuth
- The CLI uses OAuth 2.1 PKCE with a loopback redirect (
http://127.0.0.1:17654/callback). - Use
eremos login --manualif the local server cannot be started. - Tokens are stored at
~/.eremos/credentials.json.
License
MIT
