Outline
Outline
By the end of this guide, you will have your Outline wiki indexed into a semantic collection and verified with a test search — searchable from the CLI or from any MCP-connected AI agent.
Prerequisites
- Indexed installed and initialized with
indexed init(see Quick Start) - An Outline instance (Cloud at app.getoutline.com or self-hosted)
- An Outline API key (step 1)
Create an Outline API Key
- Open your Outline instance and go to Settings → API
- Click New API key
- Give it a name (e.g., "Indexed CLI") and copy the key
Set the API token as an environment variable (the wiki URL is passed with -u):
export OUTLINE_API_TOKEN=your_api_key_hereKeep tokens out of version control
Store credentials in a .env file and add it to .gitignore. Never commit API tokens to a repository.
For self-hosted instances, pass your instance root with -u — for example -u https://wiki.company.com.
Index Your Wiki
Minimal example — indexes all documents your API key can read:
indexed index create outline -c team-wiki -u https://app.getoutline.comTo restrict indexing to specific Outline collections, pass one or more --collection-id values. These are collection IDs, not names:
indexed index create outline \
-c eng-wiki \
-u https://app.getoutline.com \
--collection-id <engineering-collection-id>The CLI streams progress while it fetches documents and embeds chunks.
Verify the collection and run a quick test search:
indexed index inspect eng-wiki
indexed index search "deployment process" -c eng-wikiHits are ranked per collection with the document title, relevance score, and the matched excerpt.
Filter by Collection or Document
Outline organizes documents into collections. --collection-id is repeatable — pass it once per collection — which is useful when different teams own different collections and you want separate Indexed collections for each:
# Index two Outline collections side by side
indexed index create outline -c eng-wiki -u https://app.getoutline.com --collection-id <engineering-collection-id>
indexed index create outline -c product-wiki -u https://app.getoutline.com --collection-id <product-collection-id>Without --collection-id, Indexed fetches every document visible to your API key.
Keep the Index Fresh
Pull only new or modified documents since the last sync:
indexed index update eng-wikiTo automate it:
# Update every 6 hours
0 */6 * * * /path/to/indexed index update eng-wikiTroubleshooting
Authentication errors — confirm OUTLINE_API_TOKEN is set and was copied without leading/trailing whitespace. API keys in Outline start with ol_api_; make sure you copied the full value.
Self-hosted URL issues — pass -u with the root of your instance (e.g., https://wiki.company.com), without a trailing slash or /api suffix. Indexed appends the API path automatically.
Empty results — run indexed index inspect eng-wiki to confirm the collection was created and has documents. If document count is zero, check that your API key has read access to the target collections in Outline (Settings → Members).
Rate limiting — Outline's API has rate limits per key. For large wikis (500+ documents), Indexed retries automatically with exponential backoff.