npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@doist/outline-cli

v1.1.0

Published

CLI for the Outline wiki/knowledge base API

Downloads

362

Readme

Outline CLI

CLI for the Outline wiki/knowledge base API.

Installation

Requires Node 20.18.1+.

npm install -g @doist/outline-cli

Agent Skills

Install skills for your coding agent:

ol skill install claude-code
ol skill install codex
ol skill install cursor
ol skill install gemini
ol skill install pi
ol skill install universal

Skills are installed to ~/<agent-dir>/skills/outline-cli/SKILL.md (e.g. ~/.claude/ for claude-code, ~/.agents/ for universal, etc.). When updating the CLI, installed skills are updated automatically. The universal agent is compatible with Amp, OpenCode, and other agents that read from ~/.agents/.

ol skill list
ol skill uninstall <agent>

Uninstallation

First, remove any installed agent skills:

ol skill uninstall <agent>

Then uninstall the CLI:

npm uninstall -g @doist/outline-cli

Local Setup

git clone https://github.com/Doist/outline-cli.git
cd outline-cli
npm install
npm run build
npm link

Setup

OAuth login (recommended)

ol auth login
ol auth login --base-url <your-outline-url>
ol auth login --client-id <your-client-id>
ol auth login --callback-port 54969
ol auth status
ol auth logout

Setup:

  1. Create a public OAuth app in Outline (Settings → Applications)
  2. Set the redirect URI to http://localhost:54969/callback
  3. Run ol auth login and enter your OAuth client ID when prompted (or pass it directly with --client-id <your-client-id>)
  4. If needed, pass --base-url <your-outline-url> or set OUTLINE_URL (for self-hosted instances or non-default URLs)
  5. If needed, pass --callback-port <port> or set OUTLINE_OAUTH_CALLBACK_PORT and register http://localhost:<port>/callback in your OAuth app

The client ID is saved for future logins. You can also set OUTLINE_OAUTH_CLIENT_ID for your local environment.

Manual token login

If you prefer using an API token directly:

ol auth login --token <your-api-token>

Generate a token in Outline under Settings → API Tokens.

Configuration

Token resolution: OUTLINE_API_TOKEN env var → ~/.config/outline-cli/config.json.

Base URL resolution: OUTLINE_URL env var → config file → https://app.getoutline.com.

Callback port resolution for OAuth login: --callback-portOUTLINE_OAUTH_CALLBACK_PORT54969.

Self-hosted instances: pass --base-url or set OUTLINE_URL (you can still provide it interactively).

Commands

# Search
ol search "query" --limit 10 --collection <id> --status published

# Documents (alias: ol doc)
ol document list --collection <id> --sort updatedAt --direction DESC
ol document get <urlId>              # renders markdown for terminal
ol document get <urlId> --raw        # outputs raw markdown
ol document open <urlId>             # opens in browser
ol document create --title "Title" --collection <id> --file doc.md --publish
ol document update <urlId> --file updated.md
ol document delete <urlId> --confirm
ol document move <urlId> --collection <target-id>
ol document archive <urlId>
ol document unarchive <urlId>

# Collections (alias: ol col)
ol collection list
ol collection get <id>
ol collection create --name "Engineering" --color "#4CAF50"
ol collection update <id> --name "New Name"
ol collection delete <id> --confirm

Output modes

All commands support:

  • Default: colored human-readable output
  • --json: pretty-printed JSON (essential fields)
  • --json --full: all fields
  • --ndjson: one JSON object per line (for piping)

Development

npm install
npm run dev          # watch mode
npm run type-check   # typecheck without emitting
npm run test         # run tests
npm run build        # compile to dist/