mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Config/CLI: Rename --config-file to --defaults-yaml and improve command help #1401
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#1401
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lastzero on GitHub (Apr 13, 2022).
Originally assigned to: @lastzero on GitHub.
As a CLI user, the use of the flags is clearer if
--config-fileis renamed to--defaults-yaml, as I would otherwise expect it to be possible to set all configuration values in the YAML file passed as an argument.If you pass a YAML file via --defaults-yaml
/--config-file`, the values are only used to set defaults. These can still be overridden by CLI parameters and environment variables (which are always present in most Docker/Cloud environments, so you can't really change anything).In case you want PhotoPrism to ignore the environment and prefer values from a configuration file instead, you should use the
--config-pathflag / thePHOTOPRISM_CONFIG_PATHvariable:[config-path]/options.ymlalways take precedence over CLI flags and environment variables if presentoptions.ymlfile only when the backend is not running