Config File
Instead of passing the same flags every time, save them in a config file.
Config locations
Section titled “Config locations”Hance checks two locations, in order:
- Local:
.hancerc.jsonin the current directory (or any parent directory) - Global:
~/.config/hance/config.json
The first one found wins. CLI flags always override config values.
Format
Section titled “Format”The config file is a JSON object where keys are flag names (without --):
{ "preset": "portra-400", "grain-amount": 0.2, "no-camera-shake": true, "codec": "h264", "crf": 20}Boolean flags like no-camera-shake should be set to true.
Example: project defaults
Section titled “Example: project defaults”Create a .hancerc.json in your project root to share settings across a team:
{ "preset": "cinestill-800t", "export": "high"}Ignoring the config
Section titled “Ignoring the config”Skip config file loading with:
hance video.mp4 --no-config