CLI reference
Every command and option, generated from the command tree, so it always matches the installed version. Run opslens <command> --help for the same text in your terminal.
opslens approve
Answer a waiting approval from the terminal (the same answer the Slack/Teams/browser form submits).
Arguments: PATH, EXECUTION
| option | description |
|---|---|
--choice |
approve or skip. |
--timeout |
opslens catalog stats
What the shipped catalogs contain.
| option | description |
|---|---|
--format / -f |
Output format. |
opslens catalog verify
Compare the catalog with the installed Steampipe plugins (information_schema, no API calls).
| option | description |
|---|---|
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens config
Show the merged configuration (defaults + file + env + --set) as YAML.
| option | description |
|---|---|
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens deploy
Start a Flowpipe server for a generated mod. You must approve the exact spec hash you reviewed.
Arguments: PATH
| option | description |
|---|---|
--approve |
The spec hash you reviewed. |
--enable-schedule |
Turn the schedule trigger on. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens describe pipeline
Typed params, outputs, steps, risk class and a usage snippet for one Flowpipe pipeline.
Arguments: NAME
| option | description |
|---|---|
--format / -f |
Output format. |
opslens describe table
Columns, types, required filters and examples for one Steampipe table.
Arguments: NAME
| option | description |
|---|---|
--format / -f |
Output format. |
--no-examples |
opslens doctor
Check opslens, its catalogs, Flowpipe, Steampipe and the plugins; say how to fix what is missing.
| option | description |
|---|---|
--offline |
Skip anything that needs a running service. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens explain
Explain a spec in plain English (no AI): what it queries, what runs by itself, what waits for approval.
Arguments: PATH
opslens find pipelines
Flowpipe pipelines that can do something: opslens find pipelines create jira issue.
Arguments: WORDS
| option | description |
|---|---|
--mod / -m |
Limit to a mod (repeatable). |
--writes |
Only pipelines that change state. |
--reads |
Only pipelines that only read. |
--limit / -n |
|
--format / -f |
Output format. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens find tables
Steampipe tables that can answer a question: opslens find tables unattached ebs volumes.
Arguments: WORDS
| option | description |
|---|---|
--plugin / -p |
Limit to a plugin (repeatable). |
--limit / -n |
|
--format / -f |
Output format. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens generate
AI: turn a requirement into a validated spec and a Flowpipe mod. Needs llm.provider (see opslens params).
Arguments: REQUIREMENT
| option | description |
|---|---|
--out / -o |
Parent directory (default flowpipe.workspace_dir). |
--force |
|
--dry-run |
Show the spec; write nothing. |
--show-context |
Print what would be sent to the model, then stop. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens init
Write a commented opslens.yaml with every setting at its default.
| option | description |
|---|---|
--force |
Overwrite an existing opslens.yaml. |
--out |
Where to write it. |
opslens pack install
Render a pack into a Flowpipe mod: opslens pack install finops-cleanup/unattached-volumes --var jira_project=INFRA.
Arguments: NAME
| option | description |
|---|---|
--var |
name=value (repeatable). |
--out / -o |
Parent directory (default flowpipe.workspace_dir). |
--force |
|
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens pack list
The packs that ship with opslens.
| option | description |
|---|---|
--format / -f |
Output format. |
opslens pack show
Print a pack's spec (what you would be installing).
Arguments: NAME
| option | description |
|---|---|
--var |
name=value (repeatable). |
opslens params
List every setting with its value, where the value came from, and its environment variable.
| option | description |
|---|---|
--filter |
Only keys containing this text. |
--format / -f |
Output format. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens preview
What a run would do right now: items found, and each action's arguments. Reads only; changes nothing.
Arguments: PATH
| option | description |
|---|---|
--source |
|
--sample |
Rows shown per action. |
--format / -f |
Output format. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens query
Run one read-only SQL query. Guarded: a single SELECT, tables from the catalog, timeout and row cap.
Arguments: SQL
| option | description |
|---|---|
--file / -F |
Read the SQL from a file. |
--source |
live: the Steampipe service. demo: bundled sample data. |
--any-table |
Skip the catalog allow-list (still read-only). |
--limit / -n |
Row cap (default steampipe.max_rows). |
--format / -f |
Output format. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens render
Validate a spec and render it into a Flowpipe mod (
Arguments: SPEC_FILE
| option | description |
|---|---|
--out / -o |
Directory to write the mod into. |
--force |
opslens run
Run a deployed pipeline now. Stops and prints the approval link if it is waiting for approval.
Arguments: PATH
| option | description |
|---|---|
--timeout |
Seconds to wait. |
opslens runs
The audit log for a mod: deploys (with the approved spec hash), runs, approvals.
Arguments: PATH
| option | description |
|---|---|
--limit / -n |
|
--format / -f |
Output format. |
opslens search
Search both catalogs at once: the data to query and the action to take.
Arguments: WORDS
| option | description |
|---|---|
--limit / -n |
|
--format / -f |
Output format. |
opslens serve
Run the web app. Local mode binds to loopback only; --mode demo is the public, sample-data-only variant.
| option | description |
|---|---|
--host |
Bind address. |
--port |
|
--mode |
local: full workflow on your machine. demo: sample data only, safe to expose. |
--workspace |
Where mods are saved (default flowpipe.workspace_dir). |
--allow-host |
Extra Host header to accept (repeatable). |
--trust-proxy |
Use X-Forwarded-For for rate limiting (behind nginx). |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |
opslens undeploy
Stop the Flowpipe server for a generated mod.
Arguments: PATH
opslens validate
Check a spec against the catalogs and safety rules, that generated files still match it, and that Flowpipe loads it.
Arguments: PATH
| option | description |
|---|---|
--load |
Also load the mod with Flowpipe's own parser. |
--config / -c |
Path to opslens.yaml. |
--set |
Override a setting: --set steampipe.port=9194 (repeatable). |