How emoo-ai/emoo-cli works
EMOO CLI exposes authenticated OpenAPI operations through direct API passthrough, structured domain commands, and Markdown-defined skills. The principal workflow is to configure authentication, invoke a command, have the shared client make EMOO API requests, and receive JSON or formatted output. Skill workflows add knowledge-map generation, intent analysis, plan execution, and optional CSV export. The README documents broad API coverage; sampled source and the SOURCE INDEX support the shared client and selected skill links, while unsampled command internals are represented by their exact paths without inferred call chains.
Main entry points: cli.py Command router · client.py HTTP client · skill.py Skill commands · auth.py Authentication
Components 28
CLI Entry
- Command router
src/cli.py
Domain Commands
- Authentication
src/commands/auth.py - Contacts
src/commands/contact.py - Data search/get
src/commands/data.py - Chat
src/commands/chat.py - Message push
src/commands/message.py - Base tables
src/commands/base.py - App overview
src/commands/app.py - Agent management
src/commands/agent.py - Role management
src/commands/role.py - Folders
src/commands/folder.py - Files
src/commands/file.py - API passthrough
src/commands/api.py - Schema inspection
src/commands/schema_cmd.py
Skill Workflows
- Skill commands
src/commands/skill.py - Skill loader
src/skills/loader.py - Skill registry
src/skills/registry.py - Knowledge map
src/skills/knowledge_map.py - Intent analysis
src/skills/intent.py - Skill runner
src/skills/runner.py - Search executor
src/skills/search.py - Search analysis
src/skills/analyze.py
Shared Runtime
- HTTP client
src/client.py - Credential config
src/config.py - Output formatting
src/formatters.py - Structured errors
src/errors.py
Other components
- CLI user
- EMOO OpenAPI
Connections 45
- CLI user → Command router: runs commands
README.md - Command router → Authentication: routes to
src/cli.py - Command router → Contacts: routes to
src/cli.py - Command router → Data search/get: routes to
src/cli.py - Command router → Chat: routes to
src/cli.py - Command router → Message push: routes to
src/cli.py - Command router → Base tables: routes to
src/cli.py - Command router → App overview: routes to
src/cli.py - Command router → Agent management: routes to
src/cli.py - Command router → Role management: routes to
src/cli.py - Command router → Folders: routes to
src/cli.py - Command router → Files: routes to
src/cli.py - Command router → API passthrough: routes to
src/cli.py - Command router → Schema inspection: routes to
src/cli.py - Command router → Skill commands: routes to
src/cli.py - Authentication → Credential config: saves credentials
src/commands/auth.py - HTTP client → Credential config: loads credentials
src/client.py - HTTP client → Structured errors: maps API errors
src/client.py - Authentication → HTTP client: creates client
src/commands/auth.py - Contacts → HTTP client: uses requests
src/commands/contact.py - Data search/get → HTTP client: uses requests
src/commands/data.py - Chat → HTTP client: uses requests
src/commands/chat.py - Message push → HTTP client: uses requests
src/commands/message.py - Base tables → HTTP client: uses requests
src/commands/base.py - App overview → HTTP client: fetches workspace data
src/commands/app.py - Agent management → HTTP client: uses requests
src/commands/agent.py - Role management → HTTP client: uses requests
src/commands/role.py - Folders → HTTP client: uses requests
src/commands/folder.py - Files → HTTP client: uses requests
src/commands/file.py - API passthrough → HTTP client: sends API calls
src/commands/api.py - HTTP client → EMOO OpenAPI: sends HTTP requests
src/client.py - Contacts → Output formatting: formats results
src/commands/contact.py - Data search/get → Output formatting: formats results
src/commands/data.py - Chat → Output formatting: formats results
src/commands/chat.py - Skill commands → Skill loader: loads definitions
src/commands/skill.py - Skill commands → Skill runner: runs skills
src/commands/skill.py - Skill commands → Search executor: executes search
src/commands/skill.py - Skill loader → Skill registry: gets skill directory
src/skills/loader.py - Skill runner → Skill loader: loads skills
src/skills/runner.py - Search executor → EMOO OpenAPI: posts search requests
src/skills/search.py - Knowledge map → EMOO OpenAPI: fetches records
src/skills/knowledge_map.py - Skill commands → Knowledge map: generates map
src/commands/skill.py - Skill commands → Intent analysis: analyzes query
README.md - Skill commands → Search analysis: analyzes results
src/commands/skill.py - Skill runner → Search executor: executes search plan