Skip to main content

Module config

Module config 

Source

Structs§

AuthConfig
BackupConfig
smugmug-cli backup: what to back up, where to, and how often.
Config
DeduplicationConfig
UploadConfig

Enums§

LivePhotoVideos
The video half of a Live Photo: a short video with the same name as a photo next to it (IMG_1234.HEIC + IMG_1234.MOV). SmugMug shows it as a separate video.
RawHandling
What actually happens to RAW files in an upload, once RawMode is weighed against the account’s subscription.
RawMode
How upload treats RAW files. Uploading RAW originals needs a SmugMug Source subscription; without one, a JPEG rendered from the RAW (its embedded camera preview) can be uploaded instead.

Functions§

auth_command
smugmug-cli auth: obtain a new access token through the browser and store it. Uses the API key/secret from the existing config, else from the environment/.env, else prompts. Creates the config if missing.
init_config
is_auth_configured
load_config
The config to run with: the config file with any credentials from the environment (as a container gets them) put over its own. Without a file, all four credentials must be in the environment. Never save this back: use load_config_file for that, so environment credentials stay out of the file.
load_config_file
The config file exactly as written (no environment overrides), for changing and saving back.
save_config