Skip to content
text
lfg [command] [flags]

Default (no subcommand) launches the TUI.

Commands

CommandDescription
lfgLaunch the interactive TUI.
lfg apply <bundle...>Headless install of one or more bundles.
lfg backupSnapshot dotfiles + configs into tar or tar.age.
lfg backup --restore <path>Extract a previous backup.
lfg exportSave the current preset to ~/lfg-preset-<date>.toml.
lfg doctorDiagnose environment readiness.
lfg versionPrint the version.
lfg version --verbosePrint version + git SHA + build date + Go version + platform.
lfg updateSelf-update from GitHub releases.

Persistent flags

These work on every command:

FlagDefaultDescription
--theme <name>lfgPalette: lfg, dracula, catppuccin, colorblind.
--config <path>, -cbuilt-inCustom preset TOML (file path or http(s):// URL).
--bg <mode>autoForce terminal background: auto, dark, light. Also reads LFG_BG.
--debugoffVerbose log → ~/.config/lfg/logs/debug-<ts>.log.
--dry-run, -noffWalk the flow without exec'ing anything.
--help, -hShow help for the command.

Per-command flags

lfg apply

FlagDescription
<bundle...>One or more bundle IDs (positional).
-nPrint planned commands, exec nothing.

lfg backup

FlagDefaultDescription
--encrypttrueProduce .tar.age (encrypted). --encrypt=false.tar.gz.
--include-ssh-keysoffInclude private keys (only honoured when --encrypt).
--restore <path>Extract a previous backup.
--key <path>~/.config/lfg/key.txtOverride key location for .tar.age.
--forceoffOverwrite existing files on restore.
-noffPrint source counts and would-be filename, write nothing.

lfg export

FlagDefaultDescription
-o <path>~/lfg-preset-YYYY-MM-DD.tomlOutput path.
-noffPrint path it would write, no file created.

lfg update

FlagDescription
--checkShow available version, don't apply.
--version <tag>Pin to a specific release tag.

lfg doctor

FlagDescription
--verboseAdd resolved binary path, version, and timing per check.

Exit codes

  • 0 — success
  • non-zero — first failure surfaces; check stderr for details

For installer failures during lfg apply, the exit code is the shell exit code of the failing step.