redline remove

Take Redline back out of this repository, as a pull request.

Removes what init installed: the assistant files, the gate machinery, the slash commands, the host settings Redline applied, and .redline.json last. It only deletes what it can prove Redline wrote. A file you also edited keeps every byte outside the Redline block. It never turns off the security floor. On a repository with a remote, the removal lands as a pull request on the redline/remove branch for your team to review.

Where it runs: Inside the product repository, through the copy pinned in its devDependencies. --dry-run needs no credential.

Synopsis

synopsis
redline remove [--dry-run] [--json]

Flags

FlagDefaultWhat it does
--dry-runoffPrint the plan. Writes nothing, needs no credential, contacts no host.
--jsonoffThe whole report as JSON on stdout.

--help prints the same list from the CLI you have installed.

Examples

See what removal would do

terminal
$ pnpm redline remove --dry-run

  would remove   AGENTS.md  — nothing but the Redline block was in it
  would remove   CLAUDE.md  — nothing but the Redline block was in it
  would remove   .claude/commands/redline-init.md  — its frontmatter carries the Redline ownership line
  …
  would remove   .github/workflows/redline.yml  — it references Redline's reusable gate and publishes redline-gate / gate
  would unmerge  .github/pull_request_template.md  — the Redline block only — every byte outside it is kept as it is
  would remove   .redline.json  — Redline's own record of this repository — removed last
  would apply   withdraw Redline's own state on github: the merge policy it applied, the labels it created, and the repository property it set where the host has them
  would apply   pull request on redline/remove
dry run — nothing was written, read or changed on the host

warn  what this did not do
warn    · the security floor stays on: secret scanning, push protection and dependency alerts are the organisation's minimum, not Redline's own state, and removing Redline is not a reason to lower them. This command has no flag that turns them off
warn    · once .redline.json is gone, redline verify stops recognising this repository: it reports "not onboarded" and exits 2 rather than reporting drift — which reads identically to a repository that was never onboarded, so record this removal somewhere verify cannot

Exit codes

CodeMeaning
0Success.
1The removal is on the redline/remove branch, but the pull request could not be opened.
2Usage error, or the repository was never onboarded.
3 / 4The host refused the credential, or could not be reached.