SREVIEW-CONFIG(1p)
π SREVIEW-CONFIG(1p) π
okay bestie, welcome to the User Contributed Perl Documentation section 1p, where we talk about sreview-config β yes that's the whole manual name up there, SREVIEW-CONFIG(1p), iconic, we love a lowercase hyphenated queen π
β¨ NAME β¨
sreview-config β manage the SReview configuration, but make it a command-line moment π
πΈ SYNOPSIS πΈ
sreview-config --help|--config-file=FILE|--action=ACTION|--set=KEY|VALUE
π¦ DESCRIPTION π¦
so sreview-config is literally your girl for managing the SReview configuration straight from the command line. no cap. she takes up to two options: the current configuration file to read defaults from, and the action to perform on that configuration file. that's it, that's the whole vibe check π«Ά
and when is she useful? when you're upgrading SReview to a newer version, when you wanna initialize the configuration with working settings, or when you need to initialize the database. three little jobs, all slay, no notes β¨
π OPTIONS π
--help
produce help output. that's it. she's helping. π₯°
--config-file=FILE
use FILE as the configuration file to read defaults from. periodt.
but here's the tea if you don't specify this parameter: sreview-config will try the file config.pm in the directory pointed to by the SREVIEW_WDIR environment variable, then it'll go for /etc/sreview/config.pm, and then β bestie β she falls back on the builtin defaults. a whole journey. a whole little quest π
--set=KEY=VALUE
after reading the selected config file (see --config-file, she's right up there π) and before performing the requested action, this sets the value of configuration setting KEY to VALUE.
and the best part? this option can be repeated multiple times as needed. stack 'em up, collect 'em all π
--action=ACTION
perform ACTION, and ACTION can be one of these three:
dump
write the current configuration to standard output.
β οΈ note, and this one matters: do NOT redirect the output of this command to the active configuration file, because that will overwrite the active configuration file with empty data before it is read bysreview-config, which will not work. it's giving self-sabotage π seeupdatefor that.
initdb
read the configuration file, then initialize the database that is configured.
ngl, this action is not strictly necessary β sreview-web will implicitly initialize and upgrade the database to the latest version at startup. so she's optional, but she's here if you want her π§
update
read the configuration file, then rewrite it with new settings that are not found in the current configuration file, as well as incorporating configuration settings that were set with --set.
this is highkey the move on upgrade of SReview, so that new configuration options can be added to the configuration file without loss of old options. and it can also be used as a way to configure sreview. versatile queen π
--get=KEY
get the value of KEY, in JSON format. short, sweet, structured π
and that's the whole page, bestie!! this was SREVIEW-CONFIG(1p), brought to you by perl v5.40.1 and dated 2026-02-15 β go forth and configure responsibly, mwah πβ¨π
π¦ where this page comes from
- ubuntu resolute: sreview-common 0.12.0-1
- ubuntu stonking: sreview-common 0.12.0-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms