CLI Commands
Subcommands available in Noir v1: scan, trace, reach, query, list, cache, config, rules, completion, version, help.
Starting with v1.0, Noir's CLI uses a verb-based layout. scan is the
main command, alongside query verbs (trace, reach, query)
and namespaces (list, cache, config, rules).
noir <command> [arguments] [flags]
Quick Reference
Scan
| Command | Purpose |
|---|---|
noir scan PATHS... |
Discover endpoints in one or more codebases |
Query
| Command | Purpose |
|---|---|
noir trace "<METHOD> <URL>" |
Map a request to its route, guards, params and sinks |
noir reach FILE[:LINE] |
List the endpoints that touch a source file |
noir query [FILTERS] |
Search the attack surface with AND-ed filters |
Management
| Command | Purpose |
|---|---|
noir list techs |
List supported languages, frameworks, and analyzers |
noir list taggers |
List built-in and framework-specific taggers |
noir list formats |
List supported output formats |
noir cache info |
Show LLM cache directory, entry count, and size |
noir cache clear |
Remove every cached AI response |
noir cache purge <days> |
Remove cached entries older than N days |
noir config show |
Print the active config file |
noir config edit |
Open the config file in $VISUAL / $EDITOR |
noir config init |
Create the default config file (idempotent) |
noir config path |
Print the resolved config path |
noir rules list |
List rule files installed under the rules path |
noir rules update |
Clone or pull the latest passive-scan rules |
noir rules path |
Print the configured rules directory |
Utility
| Command | Purpose |
|---|---|
noir completion zsh |
Generate Zsh / Bash / Fish / Elvish completion scripts |
noir version |
Print the version (use --verbose for build details) |
noir help [command] |
Show top-level help or per-command help |
Scan
noir scan walks one or more codebases, runs analyzers for each
detected technology, optionally runs the passive scanner, and reports
endpoints in the requested format.
# Discover endpoints in a single codebase
noir scan ./app
# Scan multiple codebases in one pass
noir scan ./api ./worker ./jobs
# JSON output to a file, with passive scan enabled
noir scan ./app -P -f json -o endpoints.json
# Full AI-context enrichment plus path/techs/callees in plain output
noir scan ./app --include path,techs,callee --ai-context
Positional paths and repeated -b PATH work the same way.
Pass multiple codebases as sibling roots (
noir scan ./api ./worker, or repeated-b). That is the supported monorepo shape. Nested or overlapping roots (e.g.noir scan /repo /repo/sub) don't combine route prefixes across bases, because a definition and its use can resolve to different roots.
Scan flags
noir scan -h groups its flags into these sections. Each section has its
own page with the details.
| Section | Flags | Details |
|---|---|---|
| BASE | -b/--base-path, -u/--url |
Your First Scan |
| OUTPUT | -f/--format, -o/--output, --pvalue, --status-codes, --exclude-codes, --exclude-path, --include, --ai-context, --no-color, --no-spinner, --no-log, --strict |
Output Formats, AI Context Coverage |
| PASSIVE SCAN | -P/--passive-scan, --passive-scan-path, --passive-scan-severity, --passive-scan-auto-update, --passive-scan-no-update-check |
Passive Scanning |
| TAGGER | -T/--use-all-taggers, --use-taggers, --tagger-rules |
Tagger |
| PROBE | --probe, --probe-via, --probe-header, --probe-match, --probe-skip, --tls-skip-verify |
Deliver |
| EXPORT | --export-es, --export-opensearch, --export-webhook |
Deliver |
| AI Integration | --ai-provider, --ai-model, --ai-key, --ai-key-file, --ai-temperature, --ai-seed, --ai-agent, --ai-agent-max-steps, --ai-dry-run, --ai-include-sensitive, --ai-no-optimize, --ai-native-tools-allowlist, --ai-scope, --ai-max-token, --ai-stream, --ai-max-requests |
AI Providers, AI Power |
| DIFF | --diff-path, --diff-ref, --fail-on |
Diff |
| TECHNOLOGIES | -t/--techs, --only-techs, --exclude-techs |
Managing Technology Scopes |
| CONFIG | --config-file, --concurrency |
Configuration File |
| CACHE | --cache-disable, --cache-clear |
Cache below |
| DEBUG | -d/--debug, --verbose, -h/--help |
--verbose also turns on --include path and --use-all-taggers |
A scan exits with 0 on success. --strict makes it exit with 2 when
an analyzer failed or skipped a file, and --fail-on makes a diff scan
exit with 3 when the diff has one of the listed change types. Both
still write the full report first.
Flag consolidation in v1
A few v0 flag families collapsed into shorter forms in v1.0. The old forms still work as silent aliases throughout v1.x.
| v1 form | v0 equivalent (still works) |
|---|---|
--probe |
--send-req |
--probe-via URL |
--send-proxy URL |
--probe-header VAL |
--with-headers VAL |
--probe-match VAL |
--use-matchers VAL |
--probe-skip VAL |
--use-filters VAL |
--export-es URL |
--send-es URL |
--pvalue query=FOO |
--set-pvalue-query FOO |
--pvalue header=X |
--set-pvalue-header X |
--pvalue cookie=X |
--set-pvalue-cookie X |
--pvalue form=X |
--set-pvalue-form X |
--pvalue json=X |
--set-pvalue-json X |
--pvalue path=X |
--set-pvalue-path X |
--pvalue FOO (no TYPE=) |
--set-pvalue FOO |
--include path,techs,callee |
--include-path --include-techs --include-callee |
--ai-context guards,sinks |
--ai-context (no filter, all features) |
noir version --verbose |
--build-info |
noir completion zsh |
--generate-completion zsh |
noir list techs |
--list-techs |
noir list taggers |
--list-taggers |
noir help |
--help-all |
The v0 deliver flags are now split into two sections of noir scan -h: PROBE sends HTTP requests to the discovered endpoints, and EXPORT sends the endpoint list to an external store (Elasticsearch, OpenSearch, webhook). See Delivering Results to Other Tools for every flag, and Migrating from v0 to v1 for why it changed and which exports are new in v1.
Removed in v1.0
--ollama and --ollama-model were deprecated for several releases and
are removed in v1.0. Use --ai-provider ollama [--ai-model NAME]
instead:
noir scan ./app --ai-provider ollama --ai-model llama3
Trace, Reach, Query
Three query verbs answer a narrow question about the endpoints instead of
listing them all, which suits an AI agent or a reviewer with a specific
question. Each runs a scan with
--ai-context all --include callee implied and accepts every scan flag, or
reads a saved report with --from so one scan answers many questions.
noir scan ./app -f json --ai-context --include callee -o report.json # once
noir trace "POST /api/users/42" --from report.json # request → route, guards, params, sinks, callees
noir reach src/handlers/users.go:57 --from report.json # file → endpoints declared in or calling into it
noir query --no-guard --sink any --from report.json # unauthenticated routes that reach any sink
Trace
noir trace "<METHOD> <URL>" [paths...] [flags]
noir trace <URL> [paths...] [flags] # every method at that path
trace maps a concrete request path onto the declared route: /api/users/42
matches /api/users/{id}, :id, <int:pk>, [id] and *. A HEAD request
also traces to GET on routers that provide an automatic fallback. When no
method is given, it lists matching routes for any method at that path. Live scan
paths can be passed directly, such as noir trace "POST /api/users/42" ./app.
Every matching route is printed, most specific first, with matched_by
(exact, pattern, wildcard, or prefix for a proxy prefix location or
a Go ServeMux /x/ subtree). In jsonl (default) and json, trace prints
the full endpoint record under endpoint. In text format (-f text), it
prints a compact one-line summary.
On a miss, it prints the nearest routes as candidates (scored by shared
leading segments, edit distance on the first differing segment, and difference
in path length) and
exits with code 1. In jsonl and json, a miss emits
{"query": "<label>", "match": false, "candidates": [...]}; in text, it
prints no match: <label> followed by each candidate. When only a wildcard
or prefix route matched (such as /*unmatched_route), candidate routes are
also printed after the match in case the request path was a typo.
Reach
noir reach <FILE[:LINE]> [paths...] [flags]
reach looks for FILE in recorded route declarations, handler definitions,
callees, guards, sources, sinks, and validators. Names such as users.go and
api/users.go match path suffixes. Absolute paths and paths starting with
./ or ../ identify one file from the current directory. Use a suffix for
reports whose paths come from another checkout. Drive-rooted Windows paths
such as C:/app/users.go keep Windows separator and case rules when a report
is read on another operating system.
It lists the evidence in via (kind:name@line or
kind@line), and an entry outside the row's own file carries its path (@path:line).
For inherited Rails actions, dispatch points to the routed controller's file
and handler points to the action definition.
When several registrations merge into one endpoint, reach checks their
recorded handler locations as well.
When :LINE is given, evidence and rows are ordered by distance to that line
and nearest_line is set when a line is recorded. File-only evidence sorts
after evidence with a line. The query uses locations recorded by the scan.
If no recorded location matches FILE, reach prints a hint on
stderr and exits with code 1. If :LINE is given but no line was recorded for
the evidence in that file, a notice is printed on stderr.
Query
noir query [filters] [paths...] [flags]
query filters AND together.
Filters that accept a comma-separated list match with OR:
--method GET,POST: HTTP method (--method POSTalso matches routes declared asANY, while--method ANYmatches onlyANYroutes)--project <dir,...>: project directory of a monorepo relative to the scan base (exact, or glob when containing*,?,[)--tech <name,...>: technology name (e.g.go_gin,python_django)--tag <name,...>: tag name (auth,admin,login,payment,pii,webhook, ...)--param <name,...>: parameter name (case-insensitive for header parameters)--param-type <type,...>: parameter type (query,json,form,header,cookie,path)--protocol <proto,...>: protocol (http,ws,cli, ...)--sink <kind,...|any>: reaches a sink of this kind (sql,command_exec,file_io,outbound_http,template_render,redirect,mass_assignment, ...)--source <kind,...|any>: reads a source of this kind--signal <kind,...|any>: carries a derived signal (idor_review,ssrf,open_redirect, ...)--validator <kind,...|any>: carries a validator of this kind--resolution <value,...>: at least one claim is marked with one of these values (heuristic,unresolved; see resolution). Any other value is a usage error
Purpose tags such as login, payment, pii and webhook can be picked out after a
scan with -T:
noir scan ./myapp -T -f json -o report.json
noir query --tag webhook --from report.json
noir query --tag payment,pii --no-guard --from report.json
Go marks three claims: prefix, handler and guard. guard: heuristic means every Go auth/authz guard path used a name, shape or text-level scope match; an unmarked guarded Go endpoint has at least one followed guard, not necessarily all of them. Endpoints without guard tags are left unmarked, and absence of resolution means nothing was marked, not that every claim was verified.
# Guarded rows with any heuristic claim
noir query --guard --resolution heuristic .
# Guarded rows with no heuristic claim
noir query --exclude resolution=heuristic --guard .
These combinations filter any claim: the first also includes a followed guard with a guessed handler, and the second excludes that row. They do not select the guard claim alone.
The kinds each bucket can hold are listed in the AI Context reference.
Single-value pattern filters (<glob|substr>):
--url <glob|substr>: route URL--path <glob|substr>: source file path as reported (a relative glob matches from any/)--handler <glob|substr>: handler function name, or handler source file path
Boolean switches (mutually exclusive):
--guard/--no-guardselect endpoints with or without an auth guard. They use AI context and recorded access tags, including tags in saved scans. Rate limiting and CSRF checks are outside these filters.--behind-gateway/--not-behind-gateway: endpoint has or lacks a gateway rule in front of it (see Behind a gateway)
Access requirements (read from guard tags and their requires field):
--requires <atom,...>: the endpoint's requirement names one of these atoms. An atom iskind:valueforrole,permissionandscope(role:ADMIN,permission:posts:write,scope:read:pets; the value runs from the first colon to the end), or a bareauthenticated,anonymous,denyorunresolved.unresolvedmatches any guard Noir could not read.anonymousmatches a declaration that admits anonymous callers, such as a@PermitAllhandler. It matches the declaration, not the outcome: another guard on the route may still refuse them, and a route with no guard found is what--no-guardasks for.--reachable-by <principal>: a caller holding this one value is not denied. The principal isanonymous,authenticated,role:X,permission:Xorscope:X, read like a column of the access matrix. A route with no guard found is reachable by everyone. A route behind a guard Noir could not read is kept, and its row names each such guard inviaasaccess_unknownwith the guard's text, file and line. A kept row without it is a definite yes.
A guard tag whose tagger records no requires still counts: an auth tag reads as "signed in, plus a check Noir could not read", and an authz tag as a check Noir could not read. Outbound client declarations never match either filter. Both filters work with --exclude and read access clauses from tags. --guard also uses guards found in AI context. An access rule that admits anonymous callers is treated as open, with any restrictions from other layers still in effect.
noir query --requires role:ADMIN ./app
noir query --reachable-by anonymous --sink any ./app # open to anyone, or behind a guard Noir could not read
noir query --reachable-by role:USER --exclude reachable-by=anonymous ./app # what a signed-in USER adds
Exclusion (repeatable):
--exclude <filter>=<value>: drop the endpoints that filter would match.<filter>is any filter above without its dashes (protocol,tech,url,path,tag,sink, ...) and<value>follows that filter's rules (a comma list is OR,url/path/handlertake a glob or a substring,anyworks for the context kinds). An endpoint any--excludematches is dropped, whatever the other filters say.
noir query --exclude protocol=cli ./app # every language's CLI commands out
noir query --exclude url='/health*' --exclude path='tests/**' --from report.json
noir query --no-guard --exclude sink=any --from report.json # unguarded and reaching no sink
--exclude-path and --exclude-techs are different: they are scan flags that keep files or techs out of the analysis, so they only work on a live scan. --exclude hides rows of the answer and works with --from too.
Views (compare the sources that describe one service):
--seen-in <view,...>: reported by a technology of one of these views--not-seen-in <view,...>: reported by no technology of these views
Every technology belongs to one view: code (framework analyzers, and the schema-generated backends such as Strapi or Supabase), spec (OAS, RAML, gRPC, GraphQL SDL, WSDL, ...), gateway (nginx, Ingress, Kong, Envoy, Terraform, serverless.yml, ...) or traffic (HAR, Burp, Postman, Bruno, .http files, ...). noir list techs shows each one's view. When two sources report the same method and URL, the optimizer merges them into one endpoint that keeps every technology, and the view filters look at all of them. A comma list is OR, as in the other filters, but repeating --seen-in ANDs: --seen-in code --seen-in traffic is "served, and exercised by a capture or collection".
noir query --seen-in code --not-seen-in spec ./app # shadow: served, missing from the spec
noir query --seen-in spec --not-seen-in code ./app # zombie: in the spec, served by nothing found
noir query --seen-in gateway ./app # the gateway and routing rules themselves
The match is exact for now: /orders/{id} in the spec and /orders/:id in the code merge, since Noir normalizes common parameter spellings, but a prefix one side never sees (/api in front of /orders) keeps the two apart. An endpoint with no technology at all (a hand-written report) matches neither filter.
Gateway rules are the weak side of this. Through --seen-in a gateway rule joins a route only when method and path are exactly equal, and a prefix rule (location /api, an Ingress Prefix /api) never equals the routes under it. So an empty result for code plus gateway is not a finding. query says so on stderr whenever gateway is combined with another view, and points to the two flags below.
Behind a gateway
--behind-gateway keeps the endpoints a gateway sits in front of, and --not-behind-gateway keeps the others. An endpoint is behind a gateway when a gateway reported it too (an exact merge, the same as --seen-in gateway), or when a gateway rule covers its path:
- An exact rule covers the route with the same path, including any trailing slash.
- nginx
location, HAProxypath_beg, Istio and Envoyprefix, and TraefikPathPrefixrules compare the start of the path as text./apicovers/apix, and/api/covers paths beginning with/api/. - A segment prefix rule, such as Ingress
Prefixor Envoypath_separated_prefix, covers its own path and paths below it./apicovers/apiand/api/users./apixis outside that prefix. Ingress ignores a trailing slash on the rule. - The rule's method has to be the route's, unless the rule takes any method (
ANY), which is what most gateway rules declare.
The match type comes from the analyzer: the path-type of nginx location, Ingress, Gateway API HTTPRoute, Istio, Kong, HAProxy and Apache, and the path's own shape (/api/*, /api/**, {proxy+}) for Spring Cloud Gateway, YARP, APISIX, Caddy, API Gateway (serverless.yml, CloudFormation, CDK, Terraform) and the other gateways. The rows for a rewritten upstream path (an Ingress rewrite-target, an Istio or Gateway API rewrite) are not rules a client request meets, so they cover nothing.
Envoy coverage uses forwarding rules with a case-sensitive path, prefix, or path_separated_prefix and an optional exact :method match. The scan records the rule's original method even when it merges into a code endpoint. Redirects, direct responses, and upstream rewrite targets remain visible in the gateway view. Code coverage uses the client-facing forwarding rule, and only its supported path and method conditions. Each rule is evaluated independently of Envoy's route order.
Caddy coverage compares literal paths and paths with one trailing * without regard to case. /api* covers /apix and /api, while /api/* covers paths beginning with /api/. Redirects, respond directives, and more complex path patterns remain visible in the gateway view.
HAProxy exact and prefix rules honor -i when the scan records it for that rule.
A catch-all prefix rule on / covers every route, and is as often a static file server in front of nothing, so it does not count. stderr says how many routes only a catch-all covers and names its file and line. With --behind-gateway, each row names the rule that covers it in via (gateway_prefix or gateway_exact, the rule's path, its file and line). The longest rule wins, with exact rules preferred at equal length. Both filters skip outbound client declarations and non-HTTP entry points. Rows a gateway reported itself are never returned by --not-behind-gateway.
noir query --seen-in code --not-behind-gateway ./app # served, with no gateway rule in front
noir query --seen-in code --behind-gateway -f text ./app # each row with the rule in front of it
Limits of this version:
- The host is not read: an nginx
server_nameor an Ingresshostcovers routes of every service. - The upstream target is not read: a rule counts even when it proxies to another service in the same repository.
- Path rewrites are not applied: behind
StripPrefixor aproxy_passwith a path, the route the service declares is not under the rule's path, so it reads as not behind. - Regex and implementation-specific rules are not read. For gateways with only path provenance, an exact merge can still count.
- Monorepo projects are not separated: a rule in one project covers routes of the others.
- Netlify coverage requires match and action metadata that its reports omit. Traefik prefix coverage and Envoy forwarding coverage use rule metadata recorded by the scan. Older reports carry only gateway provenance at the reported path.
- Over a diff, added and changed routes use the new side's rules and removed routes use the old side's, even when queried together.
--fromreads only the rules recorded on each side of a saved diff and warns about this on stderr. Use a live diff to include unchanged rules.
Pattern matching rules:
- Glob characters (
*,?,[):*crosses/and{id}is treated literally. Without glob characters, the pattern is matched as a substring. --paramwith--param-type: both conditions must be satisfied by the same parameter.anykeyword: for--sink,--source,--signal, and--validator,anymatches any non-empty bucket.- Noir warns on stderr when a filter asks for a value absent from the report and lists the values it found. Context filters such as
--sinkwarn when AI context is absent. The guard filters warn when the report has neither AI context nor recorded access tags.
Query over a diff
With --diff-ref <rev> or --diff-path <dir>, query scans both sides and filters only the endpoints the change touched, the same set noir scan --diff-ref reports. --change added,changed,removed picks the categories (a comma list is OR). The default is added,changed, the new-side endpoints a reviewer has to look at. removed lists old-side endpoints, and the filters apply to them too.
noir query --diff-ref origin/main --no-guard --sink any . # added or changed, unguarded, reaching a sink
noir query --diff-ref origin/main --change added --no-guard . # only the new routes
noir query --diff-path ../old --change removed . # what the change took away
--from also reads a diff report, so one diff scan answers several questions:
noir scan --diff-ref origin/main --ai-context -f json -o diff.json .
noir query --from diff.json --change added --signal idor_review
--change without a diff (no diff flag, or --from a plain report) is a usage error. trace and reach do not take a diff: a diff flag there is a usage error too.
--fail-on-match turns any query into a CI gate, with or without a diff: exit 3 when at least one row matched (the rows still print, and stderr says how many), 0 when none did, 2 on a usage error. Use it instead of ! noir query ..., which would also turn a mistyped flag into a passing job. With --count, the gate follows the count. noir scan's --fail-on is a usage error on the query verbs, so it cannot pass for a gate that never fires.
noir query --diff-ref origin/main --no-guard --sink any --fail-on-match .
Shared Flags and Exit Codes
Every query verb accepts these options:
| Flag | Description |
|---|---|
--from <report> |
Read endpoints from a noir scan -f json or -f jsonl report instead of scanning |
-f, --format <fmt> |
Output format: jsonl (default), json, or text (plain is accepted as an alias for text) |
--full |
In jsonl and json, populate endpoint with the full endpoint record alongside matched_by, via, and nearest_line. trace already does this by default. In text, output remains a single compact line |
--limit <n> |
Print at most n rows (must be a positive integer; also limits candidates) |
--count |
Print only the number of matches |
| Scan flags | Any noir scan flag (-b, --exclude-path, --only-techs, -t, -u, --config-file, ...) is accepted when scanning live without --from |
When --from is used, passing scan paths or scan flags is a usage error (exit code 2), because nothing is scanned. Global flags (--no-color, -d, --verbose) remain valid with --from.
Exit codes follow grep conventions:
0: one or more endpoints matched.1: nothing matched (trace miss, reach finding no touched endpoints, or query matching zero endpoints).2: usage error (invalid flag, missing required argument, mutually exclusive flags, non-positive limit, scan arguments passed with--from, or unreadable report).3:query --fail-on-matchmatched one or more endpoints (it then exits0when nothing matched).
Output Row Format
The default compact row (-f jsonl) is a projection of the endpoint record, omitting empty buckets:
{"method":"POST","url":"/api/users/{id}","path":"src/routes.go","line":42,"tech":"go_gin",
"handler":{"name":"updateUser","path":"src/users.go","line":80},
"params":["id:path","name:json"],"guards":["RequireAuth"],"sinks":["sql"],
"signals":["idor_review"],"callees":["db.Exec","render"]}
path:line: where the route is declared (the first file outside a copy directory when copies were merged;declarationscounts merged copies when greater than 1).project: monorepo project directory relative to the scan base (omitted when empty).handler: where the handler body lives (name,path,line), present when the analyzer attributed a definition. Go marks a choice by name, wrapper shape or proximity ashandler: heuristicwhen the reference was not followed to that definition.resolution: the claims that were not read in full, as on the endpoint ({"prefix":"unresolved","handler":"heuristic"}for an unread Go prefix and a handler picked without establishing the link). Omitted when nothing is marked.params: parameters inname:typeformat.guards: authentication and authorization guards (rate limiting and CSRF excluded).sinks,signals: framework-aware sink kinds and derived security review signals.matched_bydescribes howtracematched the path (exact,pattern,wildcard, orprefix). On routers with case-insensitive rules, results that differ in letter case appear last asexact_ci,pattern_ci,wildcard_ci, orprefix_ci.via: added byreachas a list of evidence items (route,handler,callee,guard,source,sink,validator), and byquery --behind-gatewayas the gateway rule in front of the row (gateway_prefix,gateway_exact).nearest_line: added byreachwhen:LINEis given.
In text format (-f text), each endpoint is printed as a single space-delimited line (a marked claim adds, for example, resolution=prefix:unresolved,handler:heuristic after the handler):
POST /api/users/{id} src/routes.go:42 go_gin handler=updateUser@src/users.go:80 guards=RequireAuth sinks=sql signals=idor_review
An agent skill that teaches these verbs, the scan-once loop and the caveats
to carry lives at skills/noir/SKILL.md;
copy it into your agent's skills directory.
List
noir list prints the built-in catalogs.
noir list techs # supported languages, frameworks, and specs
noir list taggers # built-in and framework-specific tagger plugins
noir list formats # every supported output format
noir list techs -f json # machine-readable; -f accepts text (default), json, yaml
Cache
noir cache manages the on-disk LLM response cache at
~/.config/noir/cache/ai.
noir cache info # location, entry count, total size
noir cache clear # remove every cached AI response
noir cache purge 30 # remove entries older than 30 days
In-scan controls stay on noir scan: --cache-disable skips the cache
for one run, and --cache-clear clears it before scanning.
Config
noir config manages the user-level YAML configuration.
noir config show # print the active file
noir config edit # open the file in $VISUAL / $EDITOR
noir config init # create the default config (idempotent)
noir config path # print the resolved path
The config directory follows NOIR_HOME if set. Otherwise it falls back
to $HOME/.config/noir on Unix and %APPDATA%\noir on Windows.
noir config edit resolves the editor in the order $VISUAL,
$EDITOR, then a platform default (vi on Unix, notepad on Windows).
The config file is created first if it does not exist yet.
To target a config file other than the default, pass --config-file PATH to show, edit, or path:
noir config show --config-file ./ci/noir.yaml # print a specific file
noir config path --config-file ./ci/noir.yaml # resolve its absolute path
init always creates the default file and ignores --config-file.
Rules
noir rules manages the passive-scan rules repository.
noir rules list # show installed rule files
noir rules update # clone or pull the latest rules
noir rules path # print the rules directory
The default rules path is ~/.config/noir/passive_rules. Override it
via NOIR_HOME, or with --passive-scan-path PATH at scan time.
Completion
noir completion <shell> emits a completion script for the given shell.
noir completion zsh > "${fpath[1]}/_noir"
mkdir -p ~/.local/share/bash-completion/completions
noir completion bash > ~/.local/share/bash-completion/completions/noir
mkdir -p ~/.config/fish/completions
noir completion fish > ~/.config/fish/completions/noir.fish
mkdir -p ~/.config/elvish/lib
noir completion elvish > ~/.config/elvish/lib/noir.elv # then `use noir` from rc.elv
The script knows every subcommand. noir <TAB> completes the verb list,
and noir scan -<TAB> completes scan flags. The Elvish script registers
its completer at $edit:completion:arg-completer[noir]. See
Shell Completion for
per-shell setup.
Version
noir version prints the version number. noir version --verbose adds
Crystal, LLVM, and target-triple build details (the same content the v0
--build-info flag produced).
Help
noir help shows the top-level overview. noir help <command> shows
the flags for a specific command.
Global flags
These flags work on every subcommand:
| Flag | Effect |
|---|---|
--no-color |
Strip ANSI color from every command's output (also honors NO_COLOR) |
--no-spinner |
Disable the loading spinner while keeping normal logs |
-v, -V, --version |
Print the Noir version and exit |
-h, --help |
Show help for the current command |
--no-color and --no-spinner may sit on either side of the verb:
noir --no-color list techs and noir list techs --no-color are the
same command. -v/--version works only before a verb; after one, use
noir version (noir rules update -v means verbose).
Per-command flags (output format, concurrency, passive scan, AI
provider, and so on) live under noir scan. See noir help scan for
the full list.
v0 Compatibility
Every v0 invocation pattern keeps working in v1.x without changes:
# All three forms produce identical scan results
noir -b ./app # v0 form (routed to scan)
noir scan ./app # v1 form
noir scan -b ./app # v1 verb with v0-style flags
When the first argument (after any global flag) is not a known verb, Noir
runs scan. CI pipelines, GitHub Actions, Dockerfile entrypoints, and
shell aliases keep working without edits.
Deprecation warnings will land in a later v1.x release. The verb form becomes mandatory only at v2.x.