Skip to content

[DCV-4163] [6.0] Document the datacoves CLI - #83

Merged
noel merged 2 commits into
mainfrom
DCV-4163-datacoves-cli-docs-6-0
Nov 25, 2026
Merged

noel merged 2 commits into
mainfrom
DCV-4163-datacoves-cli-docs-6-0

Conversation

@fmercadop

Copy link
Copy Markdown
Contributor

Summary

Full reference for the datacoves CLI as shipped in 6.0, checked against the CLI source in the production tag v6.0.202610191749.

  • Moved reference/airflow/datacoves-commands to reference/vscode/datacoves-cli. The CLI runs in VS Code, and check_size_folder has nothing to do with Airflow.
  • Covered every command: check_size_folder, my import, my pytest, my db-clean, my parse-logs and my api-key.
  • Left a client-side redirect at the old URL that keeps the #anchor. The page is unlisted and its canonical points to the new URL.
  • Updated internal links. This fixes the broken #datacoves-my-parse-logs link in dag-parse-times.md.
  • Fixed a typo in my-import.md.

airflow3-check is not included. It ships in 6.1 and will be documented in a separate PR.

Deploy: Cloudflare redirect

When this is deployed, add a 301 in Cloudflare (Rules → Redirect Rules → Single Redirects):

  • Filter: (http.host eq "docs.datacoves.com" and http.request.uri.path in {"/docs/reference/airflow/datacoves-commands" "/docs/reference/airflow/datacoves-commands/" "/docs/reference/airflow/datacoves-commands.html"})
  • Target: https://docs.datacoves.com/docs/reference/vscode/datacoves-cli, status 301, preserve query string

Don't enable it before the deploy, or it will redirect to a page that doesn't exist yet.

- Move the CLI reference from reference/airflow/datacoves-commands to
  reference/vscode/datacoves-cli and cover every command in 6.0:
  check_size_folder, my import, my pytest, my db-clean, my parse-logs
  and my api-key.
- Leave a redirect stub at the old URL that keeps the #anchor.
- Point internal links to the new page (fixes the broken
  #datacoves-my-parse-logs link).
- Fix a typo in the My Import how-to.
Comment thread docs/reference/vscode/datacoves-cli.md Outdated
- **Airflow 2:** the key doesn't expire until you delete it, and it won't be shown again, so save it immediately.
- **Airflow 3:** the command generates a short-lived token and shows when it expires. From inside your workspace the My Airflow API also works without a token. If you do send one, it must be valid, so prefer generating a fresh token at runtime over hardcoding this one.

#### Delete a key

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmercadop This seems to be Airflow 2 only, so we should add to the title like

Delete a key (Airflow 2 only)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, thanks. I also marked list as Airflow 2 only, since on Airflow 3 it also just prints a message. The old #list-existing-keys and #delete-a-key anchors still work, so links to the old page land on the right section. Same change in the 6.1 branch.

@noel
noel merged commit d59c2d5 into main Nov 25, 2026
2 checks passed
@noel
noel deleted the DCV-4163-datacoves-cli-docs-6-0 branch November 25, 2026 20:40
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