AGENT SKILL
quickstart
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
03 SKILL.md 正文
Outline CLI Skill
Official CLI for the Outline wiki/knowledge base API. Full API coverage for documents, collections, search, and authentication with OAuth and OS keyring integration.
Commands
outline-cli <resource> <action>— Execute outline-cli commandsoutline self version— Print outline-cli versionoutline auth status— Check Outline authentication statusoutline auth login— Authenticate with Outline via OAuth (opens browser)outline auth token— Save Outline API token for CLI authoutline search run— Search Outline documents by query stringoutline document list— List documents in a collectionoutline document get— Get document details or contentoutline document create— Create a new documentoutline document update— Update an existing documentoutline document open— Open document in browseroutline collection list— List all collectionsoutline collection get— Get collection detailsoutline collection create— Create a new collectionoutline _ _— Passthrough to outline CLI for any command
Installation
npm install -g @doist/outline-cli
Authentication
OAuth (Recommended for Interactive Use)
ol auth login
# Opens browser for OAuth flow
# Token stored securely in OS keyring
API Token (Headless/CI)
ol auth token --base-url <url> <token>
# Example: ol auth token --base-url https://outline.example.com ol_api_xxxxx
Important: The --base-url must match exactly the URL the token was generated for. Authentication verification will fail if URLs don't match.
Check Authentication Status
ol auth status
Common Workflows
List Collections
ol collection list
ol collection list --json # AI-friendly output
Search Documents
ol search "query"
ol search "query" --limit 20 --collection <id>
List Documents in Collection
ol document list --collection <id>
ol document list --collection <id> --sort updatedAt --limit 10
Get Document Content
ol document get <documentId> # Terminal rendering
ol document get <documentId> --raw # Raw markdown
ol document get <documentId> --json # JSON metadata
Create Document
ol document create --title "Title" --collection <id> --file doc.md --publish
Update Document
ol document update <documentId> --file updated.md
Open in Browser
ol document open <documentId>
AI Agent Integration
JSON Output
Always use --json flag for machine-readable output:
ol collection list --json
ol document get <id> --json
ol search "query" --json
Common Patterns for Agents
# Search and get content
ol search "topic" --json | jq -r '.[].urlId' | xargs -I {} ol document get {} --raw
# List documents in specific collection
ol document list --collection <id> --json
# Get document metadata only
ol document get <id> --json
Caveats and Gotchas
Base URL Matching
- API tokens are tied to specific base URLs
- Authentication verification fails if
--base-urldoesn't match exactly - Common issue: Including or excluding trailing slashes
- Example:
https://outline.example.comvshttps://outline.example.com/
Authentication Verification
- First authentication requires network access to Outline instance
- Token verification happens on save
- If verification fails, check:
- Token validity
- Base URL exact match
- Network connectivity to Outline instance
Document IDs vs URLs
- Commands accept either document URL IDs (short) or full URLs
- URL IDs look like:
LuW3bpbs3H - Full URLs:
https://outline.example.com/doc/title-LuW3bpbs3H - Use URL IDs for cleaner commands
Collection IDs
- Collection IDs are UUIDs:
5bffa199-ab84-4bab-a2d3-8c926e6b17d4 - Get IDs from
ol collection list --json
JSON Output Variations
--jsonprovides structured data but fields vary by command- Use
jqor similar tools for parsing - Some commands have
--fullflag for additional fields
OAuth Token Refresh
- OAuth tokens refresh automatically when expired
- API tokens don't auto-refresh and may need manual updates
ol auth statusshows current authentication state
Key Commands Reference
| Command | Description |
|---|---|
ol auth login |
OAuth authentication (browser) |
ol auth token --base-url <url> <token> |
API token authentication |
ol auth status |
Check authentication state |
ol collection list |
List all collections |
ol collection get <id> |
Get collection details |
ol search <query> |
Search documents |
ol document list --collection <id> |
List documents in collection |
ol document get <id> |
Get document content/metadata |
ol document create --title <t> --collection <id> |
Create new document |
ol document update <id> --file <file> |
Update document |
ol document open <id> |
Open in browser |
Use Cases
- Documentation workflow automation: Script document creation and updates
- Knowledge base management: Bulk operations on collections and documents
- CI/CD integration: Automated documentation updates from code
- AI agent integration: Programmatic access to knowledge base for RAG systems
- Content migration: Import/export documents between systems
Notes
- Requires Node.js 18+
- Tokens stored securely in OS keyring (OAuth) or secure-store (API tokens)
- Multi-user support via
--userflag for account switching - Terminal-friendly markdown rendering for human consumption
- JSON output optimized for AI agent integration
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57