Back to Lobehub

Search & Configuration Commands

.agents/skills/cli/references/search-config.md

2.1.563.0 KB
Original Source

Search & Configuration Commands

Global Search (lh search)

Search across all LobeHub resource types.

Source: apps/cli/src/commands/search.ts

lh search <query>

bash
lh search "meeting notes" [-t [-L [--json [fields]] < type > ] < n > ]
OptionDescriptionDefault
-t, --type <type>Filter by resource typeAll types
-L, --limit <n>Results per type10

Searchable Types

TypeDescription
agentAI agents
topicConversation topics
fileUploaded files
folderFile folders
messageChat messages
pageDocuments/pages
memoryUser memories
mcpMCP servers
pluginInstalled plugins
communityAgentCommunity marketplace agents
knowledgeBaseKnowledge bases

Output: Results grouped by type, showing ID, title/name, description.


User Configuration (lh whoami / lh usage)

Source: apps/cli/src/commands/config.ts

lh whoami

Display current authenticated user information.

bash
lh whoami [--json [fields]]

Displays: Name, username, email, user ID, subscription plan.

lh usage

Display usage statistics.

bash
lh usage [--month [--daily] [--json [fields]] < YYYY-MM > ]
OptionDescriptionDefault
--month <YYYY-MM>Month to queryCurrent month
--dailyGroup by dayfalse (monthly total)

Output: Token usage, costs, and model breakdown for the specified period.


Global Options

These options are available across most commands:

OptionDescription
--json [fields]Output as JSON; optionally filter to specific fields (comma-separated)
--yesSkip confirmation prompts for destructive operations
-L, --limit <n>Pagination limit for list commands
-v, --verboseEnable verbose/debug logging
--helpShow command help
--versionShow CLI version

JSON Field Filtering

The --json option supports field selection:

bash
# Full JSON output
lh agent list --json

# Only specific fields
lh agent list --json "id,title,model"