docyrus-cli-app
1
总安装量
1
周安装量
#75997
全站排名
安装命令
npx skills add https://github.com/docyrus/agent-skills --skill docyrus-cli-app
Agent 安装分布
windsurf
1
amp
1
cline
1
pi
1
opencode
1
cursor
1
Skill 文档
Docyrus CLI
Guide for using the docyrus CLI to interact with the Docyrus platform from the terminal.
Command Overview
| Command | Description |
|---|---|
docyrus auth login |
Authenticate via OAuth2 device flow |
docyrus auth who |
Show current user |
docyrus auth tenants list |
List available tenants |
docyrus auth tenants use |
Switch active tenant |
docyrus env list / env use |
Manage environments |
docyrus apps list |
List tenant apps |
docyrus ds get |
Get data source metadata |
docyrus ds list |
Query records with filters, sorting, pagination |
docyrus ds create |
Create a record |
docyrus ds update |
Update a record |
docyrus ds delete |
Delete a record |
docyrus curl |
Send arbitrary API requests |
docyrus discover api |
Download tenant OpenAPI spec |
docyrus discover namespaces |
List API namespaces from OpenAPI spec |
docyrus discover path |
List endpoints matching a path prefix |
docyrus discover endpoint |
Return full endpoint object by path/method |
docyrus discover entity |
Return full entity schema by name |
docyrus discover search |
Search endpoint paths and entity names |
See references/cli-manifest.md for complete command reference with all flags and arguments.
Common Workflows
First-Time Setup
- Authenticate:
docyrus auth login - Select tenant:
docyrus auth tenants use --tenantId <id> - Verify:
docyrus auth who
Discover API & Entities
Download the tenant OpenAPI spec and explore available endpoints and entities:
# Download/refresh tenant OpenAPI spec
docyrus discover api --json
# List all API namespaces (e.g. /v1/users, /v1/teams)
docyrus discover namespaces --json
# List endpoints under a path prefix (with or without /v1)
docyrus discover path /v1/users --json
docyrus discover path /teams --json
# Get full endpoint details (defaults to GET; use [METHOD] prefix for others)
docyrus discover endpoint /v1/users/me --json
docyrus discover endpoint [PUT]/v1/users/me/photo --json
# Get full entity/schema definition
docyrus discover entity UserEntity --json
# Search endpoints and entities by comma-separated terms
docyrus discover search users,UserEntity --json
Discover Data Sources
- List apps:
docyrus apps list - Get metadata:
docyrus ds get <appSlug> <dataSourceSlug>
Query Records (ds list)
Basic listing:
docyrus ds list crm contacts --columns "name, email, phone" --limit 20
With filters (JSON object):
docyrus ds list crm contacts \
--columns "name, email" \
--filters '{"rules":[{"field":"status","operator":"=","value":"active"}]}'
With relation expansion:
docyrus ds list crm contacts \
--columns "name, ...related_account(account_name, account_phone)"
Date shortcut filter:
docyrus ds list crm tasks --filters '{"rules":[{"field":"created_on","operator":"this_month"}]}'
See references/list-query-examples.md for comprehensive filter, sort, pagination, and combined query examples.
CRUD Operations
Create:
docyrus ds create crm contacts --data '{"name":"Jane Doe","email":"jane@example.com"}'
Update:
docyrus ds update crm contacts <recordId> --data '{"phone":"+1234567890"}'
Delete:
docyrus ds delete crm contacts <recordId>
Arbitrary API Calls
docyrus curl /v1/users/me
docyrus curl /v1/dev/apps -X GET --format json
docyrus curl /v1/some/endpoint -X POST -d '{"key":"value"}'
Key Rules
- Arguments use
appSluganddataSourceSlug(not IDs) â rundocyrus apps listanddocyrus ds getto discover slugs --filtersaccepts a JSON string following the filter group structure:{"combinator":"and","rules":[...]}- Filter operators include:
=,!=,>,>=,<,<=,like,not like,in,not in,empty,not empty,between,today,this_month,this_quarter,last_30_days,active_user - Filter on related fields using
rel_<relation_slug>/<field_slug>syntax --columnsuses comma-separated field slugs with support for relation expansion(), spread..., aliasing:, and functions@--formatcontrols output:toon(default table),json,yaml,md,jsonl--verbosewraps response in full envelope with metadata
References
- CLI Manifest â Complete command reference with all flags, arguments, and options.
- List Query Examples â Practical
ds listexamples covering columns, filters, sorting, pagination, and combined queries.