You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Anytype CLI currently has no commands to search, list, or query objects stored in Anytype spaces. The only way to programmatically access data is through the external REST API at developers.anytype.io, which requires:
Creating an API key
Setting up separate authentication
Learning the REST API endpoints
Using curl or HTTP client directly
This creates unnecessary friction for CLI users who want to script or automate data access from their spaces.
Suggested Solution
Add CLI-level commands for data querying, for example:
anytype object search <query> # Search objects by keyword
anytype object list # List objects with filters
anytype object get <id> # Get object details
anytype space export # Export space data to JSON
Why This Matters
Scripting/automation: Users could easily query data in shell scripts or cron jobs without setting up external API auth
Local-first: The data is already on the local machine (SQLite); CLI commands should leverage local access rather than requiring remote API calls
DX: anytype object search "meeting notes" is much simpler than curl -X POST https://developers.anytype.io/v1/search -H "Authorization: ..." -d "..." with pre-configured auth
Consistency: Other local-first tools (Obsidian CLI, Logseq CLI, Notion CLI alternatives) all provide direct content querying
Current Workaround
The local service (anytype serve) running on port 31012 only serves API documentation, not the actual API endpoints. The actual REST API is hosted externally and requires separate API key registration.
Problem
The Anytype CLI currently has no commands to search, list, or query objects stored in Anytype spaces. The only way to programmatically access data is through the external REST API at
developers.anytype.io, which requires:This creates unnecessary friction for CLI users who want to script or automate data access from their spaces.
Suggested Solution
Add CLI-level commands for data querying, for example:
Why This Matters
anytype object search "meeting notes"is much simpler thancurl -X POST https://developers.anytype.io/v1/search -H "Authorization: ..." -d "..."with pre-configured authCurrent Workaround
The local service (
anytype serve) running on port 31012 only serves API documentation, not the actual API endpoints. The actual REST API is hosted externally and requires separate API key registration.Additional Context