Title: docs: add public pages for the deepnote publish and sync CLI commands by jamesbhobbs · Pull Request #510 · deepnote/deepnote · GitHub
Open Graph Title: docs: add public pages for the deepnote publish and sync CLI commands by jamesbhobbs · Pull Request #510 · deepnote/deepnote
X Title: docs: add public pages for the deepnote publish and sync CLI commands by jamesbhobbs · Pull Request #510 · deepnote/deepnote
Description: Stacked on #508 — base is worktree-sync-publish-coordination, so the diff here is docs only. Rebase onto main once #508 merges.
Why
Neither deepnote publish nor deepnote sync had public documentation. deepnote sync is also easy to confuse with the in-product Deepnote file sync feature: the names collide, and nothing on the existing page distinguished them.
What's here
docs/deepnote-cli-publish.md — deploying a build directory to a project. Covers authentication and token safety, finding a project ID (matching the URL convention already documented in data-apps.md), the _deepnote_static target and --path with its percent-encoded URLs, --api-access and why it is off by default, --prune, the local-validation-then-remote-mutation ordering, exit codes, and the canonical URL the server returns.
docs/deepnote-cli-sync.md — mirroring a workspace locally. Opens with the naming distinction, then covers the directory layout and .deepnote-sync.json, both sync directions and lost-update protection, --on-conflict including the non-TTY behavior, --all-files and the 100 MiB cap, the deletion rules in both directions, the safety rails (including why pruning is refused on a workspace mismatch), automation, and exit codes. Ends with a table for choosing between file sync, CLI sync, and publish.
docs/deepnote-file-sync.md — a callout at the top distinguishing the in-product Git-linked feature from the CLI command, plus a Related section. Surgical: the existing content is unchanged.
Both new pages cross-link each other and note that the two --prune flags share a name and point in opposite directions — remote for publish, local for sync.
One deviation from the brief, flagged
The brief asked to document the ownership rule as "sync --all-files ignores _deepnote_static/** after the conflict fix." That describes the exclusion approach (Option A) that was rejected in favour of "both work for both", and it is not what #508 does. Documenting it would have been wrong on the day it merged.
What the pages document instead, matching #508:
deepnote publish writes the static root. It is the deploy command and the only one that should author those files; its source of truth is the local build directory.
deepnote sync mirrors it and never silently overwrites it. The per-file divergence check applies there like anywhere else, so a site republished since the last sync is surfaced as a conflict rather than reverted to an older local copy.
A publish inside a synced workspace keeps the mirror in step, so the next sync does not see the deploy as drift.
Same practical guidance — publish owns those files, sync will not clobber them — expressed as coordination rather than exclusion. Worth a look to confirm the framing reads the way you want before this leaves draft.
Deliberately untouched
docs/deepnote-mcp.md — waiting on the released manifest.
docs/creating-apps.md, docs/streamlit.md, and also docs/scheduling.md, docs/export-pdf.md, docs/export-project.md — the last three are in #491's diff, so they are excluded too.
No tool counts or unreleased capabilities. No plan-gating claims, since I could not verify them from the repo.
Checks
pnpm prettier:check and pnpm spell-check clean. Every /docs/
Open Graph Description: Stacked on #508 — base is worktree-sync-publish-coordination, so the diff here is docs only. Rebase onto main once #508 merges. Why Neither deepnote publish nor deepnote sync had public documentati...
X Description: Stacked on #508 — base is worktree-sync-publish-coordination, so the diff here is docs only. Rebase onto main once #508 merges. Why Neither deepnote publish nor deepnote sync had public documentati...
Opengraph URL: https://github.com/deepnote/deepnote/pull/510
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:5965699d-5556-22c8-d9b7-f822305141e0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BF40:CFC6D:7CFC96:A6A91E:6AEDC7A1 |
| html-safe-nonce | eb4a2aa998b62aa5be577331627b48ced5050aa742a2f98beb9017160dd22b5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjQwOkNGQzZEOjdDRkM5NjpBNkE5MUU6NkFFREM3QTEiLCJ2aXNpdG9yX2lkIjoiMTQ0NzIwNzQ1MTQzMjQzNzY2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9281aa3ce8a5a2fff3e537bc34bb7cee3b0dc1a61559da94a6d41d36938a609d |
| hovercard-subject-tag | pull_request:4414837568 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/deepnote/deepnote/pull/510/commits/0e3076c66478cbed10a91ade2cc900d459aaff83 |
| twitter:image | https://avatars.githubusercontent.com/u/15235276?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15235276?s=400&v=4 |
| og:image:alt | Stacked on #508 — base is worktree-sync-publish-coordination, so the diff here is docs only. Rebase onto main once #508 merges. Why Neither deepnote publish nor deepnote sync had public documentati... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c7d2f3ac4f4f560c56267b765892ba5b093e8a5fb2c0ed937edd8947746942e9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/deepnote/deepnote git https://github.com/deepnote/deepnote.git |
| octolytics-dimension-user_id | 45339858 |
| octolytics-dimension-user_login | deepnote |
| octolytics-dimension-repository_id | 1066509034 |
| octolytics-dimension-repository_nwo | deepnote/deepnote |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1066509034 |
| octolytics-dimension-repository_network_root_nwo | deepnote/deepnote |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0cac2d0cb993b0ad48c49b076135ac558c742c30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width