Skip to content

ReferenceCLI

CLI

Every joflux command and flag, with its default.

joflux [--config PATH] [--log-level LEVEL] <command> [flags]
joflux --version

The global options go before the command; each command’s own flags go after it. A command is required, and running joflux on its own prints usage.

FlagDefaultDescription
--config PATHjoflux.tomlConfig file to read. .json is read as JSON, .yaml and .yml as YAML, anything else as TOML.
--log-level LEVELNoneOverride the configured log level for this run: DEBUG, INFO, WARNING, ERROR or CRITICAL.
--versionNonePrint the version and exit.
-h--helpNoneShow help and exit. Each command takes it too.
CommandWhat it doesReadsWrites
exportLists the GitHub organization’s repositoriesGitHubrepos-inventory.json
migrateAsks Forgejo to migrate each repositoryrepos-inventory.jsonmigration-log.json
monitorRechecks migrations Forgejo didn’t answer formigration-log.json, migration-status.jsonmigration-status.json
verifyChecks each repository on the target and counts its contentsrepos-inventory.jsonverification-report.json
archiveArchives the GitHub originals that verify recorded as verifiedrepos-inventory.json, verification-report.jsonarchive-log.json
joflux export [--exclude-forks] [--exclude-archived]
FlagDefaultDescription
--exclude-forksNoneLeave forked repositories out of the inventory.
--exclude-archivedNoneLeave repositories already archived on GitHub out of the inventory.
joflux migrate

No flags.

joflux monitor [--interval SECONDS]
FlagDefaultDescription
--interval SECONDSNoneSeconds between polls for this run. Without it, monitor uses poll_interval from the config, 30 by default.
joflux verify

No flags.

joflux archive [--yes]
FlagDefaultDescription
--yesNoneArchive without asking for confirmation.

Log lines go to standard output in the shape HH:MM:SS - LEVEL - message, with the level coloured when the output is a terminal. A config error is printed to standard error as config error: <reason> instead, because it happens before logging is set up.

Every command exits 0, 1, 2 or 130; Exit codes has what each means.