Add mz-deploy documentation#37052
Conversation
Replace the placeholder installation note in the mz-deploy get-started guide with real instructions: macOS/Linux tabs that download the latest release tarball from binaries.materialize.com and extract it into /usr/local, following the existing mz-debug install pattern. Resolve the architecture at runtime via `uname -m` so a single command covers both Apple Silicon (arm64) and Intel macs as well as x86_64/aarch64 Linux. Add a "Claude Code on the web" section to the AI agent setup guide covering how to install mz-deploy into the Anthropic-managed cloud sandbox via its Setup script field. The sandbox is always Linux and runs as root, so the script uses the unknown-linux-gnu build, resolves the architecture at runtime, and needs no sudo. Also note the Trusted vs None network-mode constraint and point users at committing the existing .claude/settings.json so the language server carries over to cloud sessions. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| `client_encoding` | `UTF8` | The client's character set encoding. The only supported value is `UTF-8`. | Yes | ||
| `client_min_messages` | `notice` | The message levels that are sent to the client. <br/><br/> Accepts values: `debug5`, `debug4`, `debug3`, `debug2`, `debug1`, `log`, `notice`, `warning`, `error`. Each level includes all the levels that follow it. | Yes | ||
| `datestyle` | `ISO, MDY` | The display format for date and time values. The only supported value is `ISO, MDY`. | Yes | ||
| `default_timestamp_interval` | `1s` | The interval at which timestamps are assigned to data ingested from sources and tables. New sources are created with this value unless overridden by the `TIMESTAMP INTERVAL` option of [`CREATE SOURCE`](/sql/create-source/). Accepts positive [interval](/sql/types/interval/) values (e.g. `'500ms'`, `'1s'`). This setting applies only when creating sources; changing this value does not affect existing sources. For existing sources, see [`ALTER SOURCE`](/sql/alter-source/). | [Contact support] |
There was a problem hiding this comment.
Hey Seth -- did you mean to remove this? and below max/min time intervals? Or was it a need to git pull --rebase to get the latest main?
There was a problem hiding this comment.
I definitely need a rebase
|
|
||
| display: flex; | ||
| overflow-x: auto; | ||
| overflow-y: hidden; |
There was a problem hiding this comment.
Hey Seth -- did you mean to remove this? Or was it a need to git pull --rebase to get the latest main?
| padding: var(--x-small) rem(2); | ||
| position: sticky; | ||
| top: 0; | ||
| overflow-y: auto; |
| name: "Manage with mz-deploy" | ||
| --- | ||
|
|
||
| `mz-deploy` is a CLI that manages your Materialize deployment from plain SQL |
There was a problem hiding this comment.
Do we want to mention not recommended for production?
| name: "Get started" | ||
| --- | ||
|
|
||
| `mz-deploy` is a deployment tool that gives you compile-time validation, unit |
There was a problem hiding this comment.
Do we want to mention that it's not recommended for production?
|
@sjwiesman let's include a note that this is a v0.1 and not recommended for production use yet |
|
|
||
| ```sql | ||
| -- clusters/orders.sql | ||
| CREATE CLUSTER orders (SIZE = 'xsmall'); |
There was a problem hiding this comment.
Just wondering if we should be using the xsmall or the cc sizes?
- Add v0.1 / not-recommended-for-production warning to the mz-deploy index and get-started pages (per @maheshwarip and @kay-kim). - Drop unrelated SCSS, layout, baseof.html, and configuration-parameter changes that leaked onto the branch (per @kay-kim). - Use current `cc` cluster sizes instead of legacy t-shirt sizes in examples (per @kay-kim). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Recommend `brew install materializeinc/materialize/mz-deploy` for macOS and Linux in the get-started guide. - Document installing the VS Code extension from the Marketplace (link + `code --install-extension MaterializeInc.mz-deploy`). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Updates:
|
kay-kim
left a comment
There was a problem hiding this comment.
per discussion w product, we can publish this when you feel ready. I'll do a more thorough vetting tomorrow.
`dev` deploys a personal, throwaway copy of changed views to a remote Materialize for validation against production data — it is not a local inner-loop command (that is `compile`). Fix three inaccuracies in the deployments doc: - Reframe from "inner-loop command" to a per-developer scratch deployment against the remote instance. - Add the required `<CLUSTER>` positional argument to the examples; the CLI rejects `dev` without it (unless `--down`). - Correct the claim that `IN CLUSTER` clauses pass through unchanged. `dev` rewrites every overlay MV/index to the cluster you pass and refuses a cluster hosting a promoted deployment. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
f22ad70 to
881790d
Compare
The mz-deploy language server exposes a single SQL LSP; the separate Codex configuration block duplicated the Claude Code example without adding distinct guidance. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Correct several doc claims that contradicted the CLI implementation: - `debug` prints profile, Docker status, environment ID, and server cluster health — not Materialize version and current role. - Fix the unit-test example: no comma separates the final MOCK clause from EXPECTED, so the example now parses. - Role table no longer implies `apply` is gated by materialize_deployer; `apply` performs no role check. Spell out which commands enforce which roles. - Document the `promote --allowed-lag` flag (default 300s). - Note that `setup` creates the deployment server cluster, and that access-control roles are only created when RBAC is enabled. - Replace `sudo echo` with `sudo -v` in the install snippets, and note that `mz-deploy sql` requires psql on PATH. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Document EXECUTE UNIT TEST as a SQL command reference page with its full grammar, alongside the other SQL command pages. The statement defines an inline unit test for a view: it mocks the view's dependencies, runs the view against fixed input, and compares the result to expected rows. The page carries a public-preview banner and clearly calls out that the statement is executed only by mz-deploy — the Materialize server parses it but rejects it during planning. Link the mz-deploy local-development guide to the new reference. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds user-facing documentation for
mz-deploy, the declarative SQL projectdeployment tool, under
doc/user/content/manage/mz-deploy/.What's here
binaries.materialize.comand extract it into/usr/local, following the existingmz-debuginstall pattern. The architecture is resolved at runtime viauname -m, so a single command covers Apple Silicon (arm64) and Intel macs as well asx86_64/aarch64Linux.mz-deployinto the Anthropic-managed cloud sandbox via its Setup script field. The sandbox is always Linux and runs as root, so the script uses theunknown-linux-gnubuild, resolves the architecture at runtime, and needs nosudo. The section also notes the Trusted vs None network-mode constraint and points users at committing.claude/settings.jsonso the language server carries over to cloud sessions.Notes
Documentation only — no code changes, so no Rust/Python lint or test steps apply.
🤖 Generated with Claude Code