CLI
The ctxd CLI gives you full access from the terminal. Search, manage integrations, and inspect indexed data.
Install
Section titled “Install”pip install ctxdAuthentication
Section titled “Authentication”# Print the installed versionctxd --version
# Prompt for an API key and store itctxd login
# Check whether auth is configuredctxd status
# Logoutctxd logoutFor scripts and headless environments, set CTXD_API_KEY. Commands use it directly when it is set.
Search
Section titled “Search”# Basic searchctxd search "text:deployment"
# Filter by app, quoted or unquotedctxd search "text:deployment application:slack"ctxd search text:deployment application:slack
# Boolean operatorsctxd search "text:(bug* OR issue) repo:team/backend"
# Date rangectxd search "text:meeting date:>2025-03-01"Search output is always JSON.
Documents
Section titled “Documents”# Fetch full content of a documentctxd fetch DOCUMENT_UID
# JSON outputctxd fetch DOCUMENT_UID --jsonIntegrations
Section titled “Integrations”# See all integrations and their statusctxd status
# Open the app installation pagectxd install-app
# View profile and file treectxd profileEnvironment variables
Section titled “Environment variables”| Variable | Purpose |
|---|---|
CTXD_API_KEY | API key for scripts, CI, and headless use |