photo-cli settings lets you view and change persistent application-level defaults that apply across all commands. Rather than typing long arguments on every invocation, you can store values like your API key, preferred date format, or the name used for folders holding photos with no address. Settings are saved locally and read on every run.
Synopsis
Arguments
string
The name of the setting to read or write. When used alone, the current value is printed. When combined with
--value, the setting is updated.string
The new value to assign to the setting specified by
--key. Must be used together with --key.boolean
Reset all settings to their factory defaults. No extra value required — pass the flag alone.
Operations
List all settings
Runphoto-cli settings with no arguments to print every setting and its current value:
Get a single setting
Set a single setting
photo-cli settings --key YearFormat to confirm the change.
Reset all settings to defaults
Settings reference
Date and time format strings follow the .NET custom date and time format specification. For example,
yyyy produces a four-digit year, MM a zero-padded two-digit month, and HH a zero-padded 24-hour hour. See the MSDN reference for the full list of specifiers.