opengrep show
- See also
--html,--show-supported-languages,--version
opengrep show KIND [ARGUMENTS...]| KIND | Prints |
|---|---|
version | The Opengrep version, the same as opengrep --version. |
supported-languages | The 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
| Flag | Summary |
|---|---|
--debug | Log the messages of --verbose and the diagnostics of the engine. |
--develop | Listed in Internal and debugging interfaces. |
--html | Print the output of opengrep show as an HTML page. |
--json | Print the findings as a JSON document. |
--profile | Listed in Internal and debugging interfaces. |
--quiet | Print only the findings, and nothing on standard error. |
--verbose | Log the progress of the run, at the info level. |
Examples
Version
Command and result
$ opengrep show version
X.Y.ZSupported 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