Skip to main content

vulkro-sf docs

Generates a Markdown data dictionary of the project's custom objects and fields, with where each field is used.

vulkro-sf docs . --output DATA_DICTIONARY.md
vulkro-sf docs . --format json > dictionary.json

The document has three parts:

  • Objects: one section per custom object, listing each custom field's API name, type, label and description.
  • Lineage: per field, where it is used. Fields nothing references are marked as candidate-unused.
  • Reference chains: formula fields and validation rules whose formula references a candidate-unused field or crosses many objects.

This is documentation, not a security scan. Lineage is best-effort: dynamic SOQL, managed packages and live-org wiring are invisible to static source, so "no reference found" is a candidate, never proof. No org connection is needed.

FlagWhat it does
[PATH]SFDX project or retrieved metadata. Default ..
--output <file>Write to this file instead of stdout. The folder must exist.
--format <markdown|json>Output format. Default markdown.

Exit codes​

CodeMeaning
0A dictionary was rendered.
1No custom fields found: the dictionary is empty.
2Error (unscannable path, unwritable --output, unknown --format).

Command reference​

Generated from vulkro-sf docs --help (vulkro-sf 0.33.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Generate a Markdown data dictionary of objects and fields, with where each is used.

vulkro-sf docs [OPTIONS] [PATH]

Arguments​

ArgumentDescription
[PATH]Path to the SFDX project or retrieved metadata (defaults to the current directory) Default: ..

Options​

FlagDescription
--output <FILE>Write the Markdown to this file instead of stdout. The parent directory must already exist.
-f, --format <FORMAT>Output format: markdown (the default, human-readable docs) or json (the same data dictionary + lineage + chain findings as a machine-readable envelope) Default: markdown.
-v, --verbose...Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')
Full vulkro-sf docs --help
Generate a Markdown data dictionary of objects and fields, with where each is used.

Emit an auto-generated Markdown DATA DICTIONARY (objects, fields, types, descriptions) with where-used lineage and reference-chain analysis.

Builds the cross-file metadata catalog and reference graph over the SFDX project at <path>, then renders a single Markdown document:

* one section per custom object listing every custom field's API name, type, label, and description, * a LINEAGE section that, per field, lists the surfaces it is used on (the where-used view from the K2 reference graph) and marks fields reached by nothing as candidate-unused, and * a REFERENCE-CHAIN section flagging formula fields / validation rules whose formula references a candidate-unused field or crosses many objects.

The document is printed to stdout by default; pass `--output <file>` to write it to a file instead. This is documentation, not a security scan: the lineage and candidate-unused notes are BEST-EFFORT (dynamic SOQL, managed packages, and live-org wiring are invisible to static source), so the document frames "no reference found" as a candidate, never proof.

Exit codes: 0 = a dictionary was rendered (objects / fields found); 1 = the tree held no custom fields, so the dictionary is empty (an actionable "nothing to document" signal a CI lane can branch on); 2 = error (unscannable path, unwritable --output, unknown --format).

Usage: vulkro-sf docs [OPTIONS] [PATH]

Arguments:
[PATH]
Path to the SFDX project or retrieved metadata (defaults to the current directory)

[default: .]

Options:
--output <FILE>
Write the Markdown to this file instead of stdout. The parent directory must already exist

-f, --format <FORMAT>
Output format: markdown (the default, human-readable docs) or json (the same data dictionary + lineage + chain findings as a machine-readable envelope)

[default: markdown]

-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')