Skip to content

Remove the Keboola as Code CLI documentation, redirect to the repository - #417

Merged
Iamfle4ka merged 2 commits into
mainfrom
remove-cli-docs
Sep 9, 2026
Merged

Remove the Keboola as Code CLI documentation, redirect to the repository#417
Iamfle4ka merged 2 commits into
mainfrom
remove-cli-docs

Conversation

@Iamfle4ka

Copy link
Copy Markdown
Collaborator

Martin's mazací PR, paired with keboola-as-code#2654, which puts all 59 pages under docs/user-docs/ in the tool's own repository.

Deleted: the content of all 59 /cli/ pages and the 21 images. 4,317 lines gone.

Kept: one redirect stub per page — permalink + redirect_to — pointing at the exact new page, not just the repo root. jekyll-redirect-from is already a plugin here, so these work without new tooling. Deep links to things like /cli/commands/sync/pull/ exist in the wild; the stubs keep them alive until the domain itself goes, and should be deleted with it.

Nav: the CLI block collapses from 129 lines to a single CLI (moved) row.

Nothing else in this repo links into /cli/ — checked; the only inbound links were from the CLI pages themselves.

One thing to decide before merging

This supersedes #397 ("correct CLI docs against kbc --help", 14 files, mergeable). Rather than let those fixes die with the pages, #2654 was generated from #397's head, so all of them are already in the new home: remote table unload/download --timeout 5m, the dbt generate env copy-paste error, local create row, the missing --cleanup and --without-decompress flags, remote file upload --file-name/--file-tags, and two wrong workspace links.

So #397 can be closed as superseded once #2654 lands. Merging this PR before #2654 would drop those corrections on the floor — please land #2654 first.

For the edge 301

developers.keboola.com/cli/** needs a destination at the CDN. The per-page mapping is in the stubs, and I can hand over a flat TSV of all 59 route → GitHub URL pairs on request — that is the accurate table, not a wildcard to the repo root.

🤖 Generated with Claude Code

The CLI reference moves to the tool's own repository so it survives the
retirement of this domain: keboola/keboola-as-code#2654 puts all 59 pages under
docs/user-docs/.

Content and the 21 images are deleted here. What stays is one redirect stub per
page — permalink plus redirect_to — so deep links that exist in the wild keep
working until the domain itself goes away. jekyll-redirect-from is already a
plugin on this site. Delete the stubs together with the domain.

The nav entry collapses from 129 lines to a single "CLI (moved)" row.

Nothing else in developers-docs links into /cli/, so no inbound links break.
Iamfle4ka pushed a commit to keboola/connection-docs that referenced this pull request Sep 3, 2026
…epo root

The 59 CLI rows pointed at github.com/keboola/keboola-as-code — the repository,
not the page. That is fine as a statement of intent and useless as an edge rule:
a reader following developers.keboola.com/cli/commands/sync/pull/ would land on
a monorepo root and have to hunt.

keboola-as-code#2654 lands the pages at a predictable path, so each row now
carries the file it actually became — commands/sync/pull/ →
docs/user-docs/commands/sync/pull.md, and so on for all 59. The same table now
exists three times over and agrees with itself: here, in the redirect stubs of
the developers-docs deletion PR (keboola/developers-docs#417), and in the ported
tree itself.

Written into PLACEMENT-MAP.md rather than only into the TSV: --gen regenerates
the TSV from the map, so a hand-edited TSV would have been silently reverted by
the next person to run it. Verified by regenerating — the destinations survive.

The lossy-parse guard earned its keep here: a first attempt at the map edit ate
a space before the target column, dropped the parse to 116/175 rows, and the
generator refused to write the result instead of shipping a truncated contract.
keboola-as-code#2654 was closed, so docs/user-docs/ will not exist and the
per-page destinations these stubs carried would have been 404s.

Every stub now points at the repository root, which is what remains true: the
tool lives there, the documentation does not. The note is corrected too — the
content survives in THIS repository's git history, not in keboola-as-code's,
since it was never merged there.
@Iamfle4ka

Copy link
Copy Markdown
Collaborator Author

Updated after keboola/keboola-as-code#2654 was closed.

The stubs pointed at docs/user-docs/** in that repository, which now will not exist — as written they were redirects into 404s. All 59 now point at the repository root (github.com/keboola/keboola-as-code), which is what stays true: the tool lives there, its documentation does not. The stub text is corrected too — the content survives in this repository's git history, not in keboola-as-code's, since it was never merged there.

The merge-order caveat in the description is gone with it: there is nothing to land first. #397 is closed as moot, with its verified corrections written into the closing comment so the next person auditing this CLI does not re-derive them.

What this costs, recorded once so the decision is documented rather than discovered later: end-user installation instructions — brew tap, apt/rpm/apk with GPG key import, WinGet, Chocolatey, Scoop, MSI — exist nowhere except the pages this PR deletes. And 21 of the CLI's 68 embedded long.txt help texts are empty, including all six dbt and all five remote workspace commands, so for those kbc help prints one sentence and nothing else.

That is the owner's call and this PR implements it. Flagging it here only so it is on the record next to the deletion, not to reopen it.

@Iamfle4ka
Iamfle4ka requested a review from davidesner September 3, 2026 14:22
@Iamfle4ka
Iamfle4ka merged commit 54f622d into main Sep 9, 2026
1 check passed
@Iamfle4ka
Iamfle4ka deleted the remove-cli-docs branch September 9, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants