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
redline remove [--dry-run] [--json]Flags
| Flag | Default | What it does |
|---|---|---|
--dry-run | off | Print the plan. Writes nothing, needs no credential, contacts no host. |
--json | off | The whole report as JSON on stdout. |
--help prints the same list from the CLI you have installed.
Examples
See what removal would do
$ 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
$ npx redlinegate 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
$ yarn 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
$ bun run 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
| Code | Meaning |
|---|---|
0 | Success. |
1 | The removal is on the redline/remove branch, but the pull request could not be opened. |
2 | Usage error, or the repository was never onboarded. |
3 / 4 | The host refused the credential, or could not be reached. |
Related
- Removing Redline
- redline init
- All commands and the shared exit codes
- Source:
cli/commands/remove.ts