reference Commands

opengrep show

See also
--html, --show-supported-languages, --version
opengrep show KIND [ARGUMENTS...]
KINDPrints
versionThe Opengrep version, the same as opengrep --version.
supported-languagesThe language names accepted by the languages of a rule and by --lang, aliases included.
dump-*Internal representations of rules, patterns and code. See Internal and debugging interfaces.

An unknown KIND is an error, and opengrep show exits with status 2.

Flags

FlagSummary
--debugLog the messages of --verbose and the diagnostics of the engine.
--developListed in Internal and debugging interfaces.
--htmlPrint the output of opengrep show as an HTML page.
--jsonPrint the findings as a JSON document.
--profileListed in Internal and debugging interfaces.
--quietPrint only the findings, and nothing on standard error.
--verboseLog the progress of the run, at the info level.

Examples

Version

Command and result
$ opengrep show version
X.Y.Z

Supported languages

Command and result
$ opengrep show supported-languages
supported languages are: apex, bash, c, c#, c++, cairo, circom, clojure, cpp, crystal, csharp, dart, docker, dockerfile, elixir, ex, generic, go, golang, hack, hcl, html, java, javascript, js, json, jsonnet, julia, kotlin, kt, lisp, lua, move_on_aptos, move_on_sui, none, ocaml, php, promql, proto, proto3, protobuf, py, python, python2, python3, ql, r, regex, ruby, rust, scala, scheme, sh, sol, solidity, swift, terraform, tf, ts, typescript, vb, vue, xml, yaml