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/cliVia Homebrew (macOS)
brew install ocsidian/tap/ocsidian-cliVia shell script
curl -fsSL https://get.ocsidian.ai | shVerify installation
ocsidian --version
# ocsidian-cli/1.0.0 darwin-arm64Authentication
After installation, authenticate with your Ocsidian account:
ocsidian auth loginThis 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