Skip to content
Back to skills

Quickstart

ASecurity

Official CLI for the Outline wiki/knowledge base API. Full API coverage for documents, collections, search, and authentication with OAuth and OS keyring integration.

  • 58 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 6, 2026
toolsgobashnodeapici/cddocumentation

Works with

  • terminal
  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 8, 2026

npx -y skills add javimosch/supercli --skill quickstart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quickstart?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Quickstart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-quickstart-c97f8e39/badge)](https://www.skillsdirectory.com/skills/javimosch-quickstart-c97f8e39)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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 commands
- `outline self version` — Print outline-cli version
- `outline auth status` — Check Outline authentication status
- `outline auth login` — Authenticate with Outline via OAuth (opens browser)
- `outline auth token` — Save Outline API token for CLI auth
- `outline search run` — Search Outline documents by query string
- `outline document list` — List documents in a collection
- `outline document get` — Get document details or content
- `outline document create` — Create a new document
- `outline document update` — Update an existing document
- `outline document open` — Open document in browser
- `outline collection list` — List all collections
- `outline collection get` — Get collection details
- `outline collection create` — Create a new collection
- `outline _ _` — Passthrough to outline CLI for any command

## Installation

```bash
npm install -g @doist/outline-cli
```

## Authentication

### OAuth (Recommended for Interactive Use)
```bash
ol auth login
# Opens browser for OAuth flow
# Token stored securely in OS keyring
```

### API Token (Headless/CI)
```bash
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
```bash
ol auth status
```

## Common Workflows

### List Collections
```bash
ol collection list
ol collection list --json  # AI-friendly output
```

### Search Documents
```bash
ol search "query"
ol search "query" --limit 20 --collection <id>
```

### List Documents in Collection
```bash
ol document list --collection <id>
ol document list --collection <id> --sort updatedAt --limit 10
```

### Get Document Content
```bash
ol document get <documentId>          # Terminal rendering
ol document get <documentId> --raw    # Raw markdown
ol document get <documentId> --json  # JSON metadata
```

### Create Document
```bash
ol document create --title "Title" --collection <id> --file doc.md --publish
```

### Update Document
```bash
ol document update <documentId> --file updated.md
```

### Open in Browser
```bash
ol document open <documentId>
```

## AI Agent Integration

### JSON Output
Always use `--json` flag for machine-readable output:
```bash
ol collection list --json
ol document get <id> --json
ol search "query" --json
```

### Common Patterns for Agents
```bash
# 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-url` doesn't match exactly
- Common issue: Including or excluding trailing slashes
- Example: `https://outline.example.com` vs `https://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
- `--json` provides structured data but fields vary by command
- Use `jq` or similar tools for parsing
- Some commands have `--full` flag 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 status` shows 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 `--user` flag for account switching
- Terminal-friendly markdown rendering for human consumption
- JSON output optimized for AI agent integration

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.