Skip to main content
These flags are available on every pidgeon command.
FlagTypeDefaultDescription
-p, --project <dir>stringCurrent directoryProject directory
-s, --standard <std>stringAuto-detectForce standard: hl7, fhir, or ncpdp
-o, --output <path>stringstdoutOutput file or directory path
-f, --format <fmt>stringautoOutput format: auto, hl7, json, ndjson
-v, --verboseflagoffEnable verbose logging
--quietflagoffSuppress all output except errors
--color <mode>stringautoColor output: auto, always, never
--config <file>stringPath to configuration file
--profile <name>stringNamed vendor profile to use

Smart Standard Detection

When --standard is omitted, Pidgeon auto-detects the standard from the message type:
PatternDetected StandardExamples
TYPE^TRIGGERHL7 v2ADT^A01, ORU^R01, ORM^O01
Resource nameFHIR R4Patient, Observation, Bundle
Transaction typeNCPDP SCRIPTNewRx, RxFill, CancelRx

Output Formats

FormatWhen to Use
autoDefault — picks the best format for the standard
hl7Raw HL7 pipe-delimited format
jsonPretty-printed JSON (FHIR resources, structured output)
ndjsonNewline-delimited JSON for bulk/streaming

Examples

# Verbose output for debugging
pidgeon generate ADT^A01 --verbose

# Quiet mode for CI/CD pipelines
pidgeon validate --folder ./messages --quiet

# Force JSON output
pidgeon generate Patient --format json

# Use a vendor profile
pidgeon generate ADT^A01 --profile epic_er