CLI reference

Authoritative list of every command, subcommand, and flag.

Global

slop [-v | -V | --version] [--help] <COMMAND> [ARGS...]
FlagEffect
-v, -V, --versionPrint version and exit
--helpPrint help for any command

slop login

Resolve the SSH key into a server-side identity. Required once per machine.

slop login [--server URL] [--key PATH]
FlagDefaultEffect
--serverhttps://sloppoke.meAPI base URL
--key$SLOP_SSH_KEY or ~/.ssh/id_*SSH private key used to sign requests

slop poke

Scan a patch for slop. Saves a cleanup plan to .slop/last-poke.json for slop apply.

slop poke [--staged | --range BASE..HEAD | --patch FILE | --gh ORG/REPO]
          [--project NAME] [--no-color]
FlagEffect
--stagedScan git diff --staged (default if no flag is given when staged changes exist)
--rangeScan a git range (HEAD~3..HEAD, main..HEAD)
--patchScan an arbitrary unified-diff file
--ghScan a remote GitHub repo via the public API
--projectOverride the project label written to the server log
--no-colorDisable ANSI colour even on a TTY

Exit code: 0 on LGTM, 1 on SLOP, 2 on usage error, >2 on network / quota failures (see exit-codes).

slop apply

Apply the cached cleanup plan from the most recent poke.

slop apply [--no-commit | --discard | --force]
FlagEffect
--no-commitStage the cleanup but don't amend HEAD
--discardDrop the cached plan without applying
--forceApply even when git apply --check reports drift

slop learn

Send one-line feedback to the learning loop.

slop learn [--no-attach] [--project NAME] "<text>"
FlagEffect
--no-attachSkip auto-attaching the last cached poke as context
--projectTag the feedback with a project label

slop billing

slop billing tier         # show current tier + monthly cap usage
slop billing portal       # open the Stripe customer portal URL

slop install-hook

Drop a git pre-commit hook that runs slop poke --staged and blocks SLOP commits.

slop install-hook [--global] [--force]
FlagEffect
--globalWrite to ~/.config/slop/git-hooks/ and set core.hooksPath
--forceOverwrite an existing hook (preserves nothing)

slop news

Show announcement entries served by /api/v1/news.

slop news            # show unseen entries, mark them seen
slop news --all      # show the full back-catalog
slop news --ack      # mark every cached entry as seen

See also