Command line interface for Observe Inc.
- Tag Search - Resolve entities and entity types via tag keys and tag values to ground investigations in real data.
- Dataset Management - List, view, and explore datasets with filtering and field selection.
- Metric Exploration - Search, list, and inspect metrics including type, unit, and available dimensions.
- OPAL Query Execution - Run OPAL queries directly from your terminal with schema-aware table output.
- AI Agent Skills - List and view reusable AI-agent instruction documents stored in Observe.
- Alert Monitoring - List and view alerts with severity filtering and active-only views.
- Monitor Mutes - Full CRUD for monitor mute rules (snoozes), targeting all monitors or a specific set.
- Datastream Management - Create, list, view, and update datastreams.
- Documentation Search - Semantic search across Observe's built-in documentation from your terminal.
- Multiple Output Formats - All commands support
--format jsonand--format csvfor scripting and pipelines. - Responsive Tables - Terminal-aware column widths with automatic text wrapping.
Install the CLI:
curl -fsSL https://raw.githubusercontent.com/observeinc/cli/main/install.sh | bashInstall the Observe agent skills into your coding agents:
observe skill install --allNote: some commands listed below are temporarily disabled in this build. They depend on generated GraphQL/REST types that cannot be regenerated while the target tenant has GraphQL introspection disabled (
bun codegen:gql) or while the REST client is missing tenant-absent APIs (bun codegen:rest, needs a Java runtime). They are commented out insrc/app.tsandsrc/rest/client.ts(search for "TEMP: trimmed"). The currently active commands are:help,tag-value,tag(and its hidden pre-rename aliastag-key),dataset,skill,alert,monitor,apm,docs,dashboard,board,folder,opal,fleet,schema,worksheet,cli. Disabled:auth,metric,query,content,ingest-token,datasource,data-connection,datastream,datastream-token,inbound-share.
schema introspectadditionally requires the tenant to have GraphQL introspection enabled.dataset dry-runanddataset impactare wired but unverified on this tenant: their underlying operations drifted (saveDatasetDryRunremoved;getDatasetsAffectedByDatasetUpdateresult fields renamed) and the new shapes cannot be re-derived without introspection.
| Command | Description |
|---|---|
observe help |
Show help information |
observe auth login |
Authenticate with Observe (browser or device code flow) (disabled in this build) |
observe auth logout |
Clear stored credentials (disabled in this build) |
observe auth status |
Show current authentication status (disabled in this build) |
observe auth configure |
Manually configure CLI credentials (disabled in this build) |
observe auth profile list |
List all saved profiles (disabled in this build) |
observe auth profile use |
Switch the default profile (disabled in this build) |
observe tag-value list |
Search tag values |
observe tag list |
Search tags |
observe dataset list |
List datasets with optional filtering |
observe dataset view |
View dataset details and schema |
observe dataset dry-run |
Dry-run a dataset pipeline change (unverified on tenant) |
observe dataset impact |
Report datasets affected by a change (unverified) |
observe metric list |
Search and list metrics (disabled in this build) |
observe metric view |
View metric details and dimensions (disabled in this build) |
observe query |
Execute OPAL queries on datasets (disabled in this build) |
observe skill list |
List AI agent skills |
observe skill view |
View skill details and content |
observe skill install |
Install skills into your coding agents |
observe skill update |
Update installed skills to the latest version |
observe alert list |
List alerts with severity and status filtering |
observe alert view |
View full alert details |
observe monitor mute list |
List and search monitor mute rules |
observe monitor mute view |
View full monitor mute rule details |
observe monitor mute create |
Create a monitor mute rule |
observe monitor mute update |
Update a monitor mute rule |
observe monitor mute delete |
Delete a monitor mute rule |
observe datastream create |
Create a new datastream (disabled in this build) |
observe datastream list |
List datastreams (disabled in this build) |
observe datastream view |
View a datastream by ID (disabled in this build) |
observe datastream update |
Update a datastream (disabled in this build) |
observe datastream-token check-status |
Poll a datastream token until ingest data arrives (disabled in this build) |
observe docs search |
Search Observe's documentation |
observe board create |
Create a board (dashboard) from a JSON file |
observe board update |
Update an existing board from a JSON file |
observe board get |
Get a board by ID as JSON |
observe board list |
List boards in a workspace |
observe board delete |
Delete a board by ID |
observe board scaffold |
Print a minimal board JSON template |
observe board set-default |
Set the default dashboard for a dataset |
observe board clear-default |
Clear the default dashboard for a dataset |
observe folder create |
Create a folder (use --ensure to make it idempotent) |
observe folder get |
Look up a folder by name and print its ID |
observe folder update |
Update a folder's name, description, or icon URL |
observe folder delete |
Delete a folder by ID |
observe opal check |
Validate an OPAL pipeline and print its result schema |
observe opal verbs |
List all OPAL verbs |
observe opal functions |
List all OPAL functions |
observe opal validate-ingest |
Validate an OPAL ingest filter against a dataset |
observe fleet status |
Current status of all observe-agent instances |
observe fleet host |
observe-agent details for a single host |
observe fleet versions |
observe-agent versions across the fleet |
observe fleet auth |
observe-agent auth-check status across the fleet |
observe schema introspect |
Dump the GraphQL schema as JSON (introspection req'd) |
observe worksheet list |
List worksheets in a workspace |
observe worksheet get |
Get a worksheet by ID as JSON |
observe worksheet create |
Create a worksheet from a JSON file |
observe worksheet delete |
Delete a worksheet by ID |
observe cli install |
Configure shell integration (PATH, completions) |
observe cli uninstall |
Remove shell integration |
observe cli upgrade |
Upgrade to the latest version |
Experimental commands are hidden by default and gated behind an environment variable. They are not covered by SemVer — their names, flags, and output may change or be removed without notice.
# Enable experimental commands for the session
export OBSERVE_CLI_EXPERIMENTAL=1
observe help # experimental commands now appear, tagged [experimental]Credentials are stored in ~/.observe/config.json with mode 600 (owner-only access). Permissions are automatically enforced on every write.
# Browser-based login (recommended)
observe auth login
# Login to a specific customer
observe auth login --url 123456.observeinc.com
# Device code flow (for headless environments)
observe auth login --useDeviceCode --url 123456.observeinc.com
# Check current auth status
observe auth status
# Manual configuration
observe auth configure --domain observeinc --customerId 123456 --token YOUR_API_KEYProfiles let you store credentials for multiple Observe environments (e.g. production and staging) and switch between them easily.
# Login and save credentials under a named profile
observe auth login --profile staging --url 123456.observeinc.com
# List all saved profiles
observe auth profile list
# Permanently switch the default profile
observe auth profile use staging
# Use a profile for a single command without switching the default
OBSERVE_PROFILE=staging observe auth statusProfile selection priority: OBSERVE_PROFILE env var → currentProfile in the config file → "default".
Released builds send one usage span per command to Observe. It contains:
- The command name and its command-line arguments. Values of secret flags such
as
--tokenand--passwordare redacted; other argument values, such as query text and IDs, are sent as-is. - The exit code, and the error message if the command fails.
- The CLI version, OS, OS version, and CPU architecture.
- The calling AI agent and its session ID, if one is detected.
- An anonymous install ID, plus your customer ID and domain when you are logged in.
To turn it off, set OBSERVE_DISABLE_TELEMETRY to any non-empty value:
export OBSERVE_DISABLE_TELEMETRY=1Agent skills are instruction documents that teach a coding agent how to drive the CLI, write OPAL, and investigate with Observe data. Observe curates a set of them in observeinc/skills; the CLI fetches the current version on demand, so you do not need to clone anything.
# Install every curated skill into each coding agent the CLI detects
observe skill install --all
# Install specific skills by name
observe skill install observe-cli generate-opal
# Install into the current repo rather than your home directory
observe skill install --all --project
# Refresh installed skills to the latest published version
observe skill updateobserve skill list shows which skills exist and which are already installed. Skills your
organization stores in Observe are reachable with the same commands under --user-defined.
Contributions are welcome! For non-trivial changes, please open an issue first so we can align on the approach — the change may already be planned, in progress, or out of scope.
Please use Conventional Commits for commit messages (e.g. fix(query): handle empty result set).
git clone <repository-url>
cd cli
bun install# Run CLI in development mode
bun dev --help
# Run commands
bun dev dataset list
bun dev metric list --match "cpu"
bun dev tag-value list --match checkoutbun dev # Run CLI in development mode
bun test # Run codegen, typecheck, lint, format, and unit tests
bun test:integration # Integration tests against a real tenant (requires env vars below)
bun typecheck # Type checking
bun lint # Check for issues
bun format # Check formatting
bun codegen # Generate GraphQL and REST API typesAdd credentials to .env (see .env.example), then run:
bun run test:integrationApache-2.0