Loading...
Loading...
Knowledge Planet CLI Shared Basics: Authentication login/logout, view authentication status, diagnose configuration. Triggered when users need to log in for the first time, log out, view authentication status, or encounter authentication errors.
npx skill4agent add unnoo/zsxq-skill zsxq-shared# Initiate login (an authorization link will be output; users open and authorize it on mobile/browser)
zsxq-cli auth loginverification_uriuser_codeWhen you help users log in as an AI Agent, runin the background, read the output, provide the authorization link to the user, and wait for the user to complete authorization.zsxq-cli auth login
zsxq-cli auth status # Display current logged-in account in table format
zsxq-cli auth status --json # Output in JSON formatzsxq-cli doctor # Diagnose whether configuration and authentication are normalzsxq-cli doctor # Check CLI configuration and keychain authentication status
zsxq-cli config show # Display version information and current configuration
zsxq-cli config show --json # In JSON formatzsxq-cli api list # List all available MCP tools and parameters
zsxq-cli api call <tool> --params '<json>' # Call the specified tool
zsxq-cli api raw --method GET --path /v3/users/selfzsxq-cli api call get_self_info --params '{}'
zsxq-cli api call search_groups --params '{"keyword":"Go语言"}'
zsxq-cli api call get_user_footprints --params '{"user_id":"123456","group_id":"123456789"}'
# Recommendation: Use the explicit-parameter raw subcommand for general HTTP APIs
zsxq-cli api raw --method GET --path /v2/groups/123456789/topics --query '{"count":10}'| Error | Cause | Solution |
|---|---|---|
| Token is invalid or expired | Re-run |
| Login not completed | Run |
| Missing required parameter | First query group_id with |
| Missing required parameter | First query topic_id with |