Flags

Flags available across DemoVoice commands.

Global Flags

These flags are accepted by every subcommand.

FlagDescriptionDefault
--configPath to a config file. Overrides directory discovery.
--dirProject directory. Accepts either the project root containing .demovoice/ or the .demovoice/ directory itself..demovoice
--profileProfile name from the config's profiles: map.value of profile: in config (default default)
--verboseEnable verbose logging on stderr.false
--glossaryExtra glossary file path. Repeatable — pass once per file.
-h, --helpShow help for the command.

render Flags

Flags specific to the render command:

FlagDescription
-o, --outputOutput MP4 path (required).
--preview-durationRender only the first N of the source, e.g. 20s, 1m.
--scriptRead an editable script YAML instead of transcribing.

inspect Flags

Flags specific to the inspect command:

FlagDescription
--output-scriptWrite an editable script YAML for later use with render --script.

Environment Variables

App-level config values can also be set via environment variables with the DEMOVOICE_ prefix (dots in YAML keys become underscores). Provider API keys are not stored in config — they always come from the environment.

VariablePurpose
OPENAI_API_KEYRequired. Used for Whisper transcription and OpenAI TTS.
DEMOVOICE_PROFILEOverride the active profile.
DEMOVOICE_PROVIDERS_TTS_VOICEOverride the TTS voice.
DEMOVOICE_PROVIDERS_TTS_MODELOverride the TTS model.

Any nested config key follows the same pattern: providers.stt.model becomesDEMOVOICE_PROVIDERS_STT_MODEL.