Ocsidian

CLI Installation

Install and set up the Ocsidian CLI.

The CLI is included with the Ocsidian desktop app. You can also install it standalone for server or CI environments.

Via npm

npm install -g @ocsidian/cli

Via Homebrew (macOS)

brew install ocsidian/tap/ocsidian-cli

Via shell script

curl -fsSL https://get.ocsidian.ai | sh

Verify installation

ocsidian --version
# ocsidian-cli/1.0.0 darwin-arm64

Authentication

After installation, authenticate with your Ocsidian account:

ocsidian auth login

This opens a browser window to complete authentication. For CI environments, use an API key:

export OCSIDIAN_API_KEY=your_api_key_here
ocsidian auth verify