---
title: "axiom flow assemble"
description: "Emit the flow's assembled SourceGraph JSON (no save, no compile)"
category: reference
surfaces: [cli]
related: [reference/cli/axiom-flow]
last_reviewed: 2026-06-06
---

<!-- GENERATED by docs/scripts/gen-cli-reference — DO NOT EDIT.
     Source of truth: the cobra command definitions in cmd/axiom/cmd/.
     Regenerate from the repo root with: go run ./docs/scripts/gen-cli-reference -->

# axiom flow assemble

Emit the flow's assembled SourceGraph JSON (no save, no compile)

Assemble the SourceGraph the registry would receive for this flow.yaml and
print it as JSON — the same document shape the editor stores and edits. Nothing
is saved or compiled; package resolution still uses the live registry, so a
prior "axiom login" is required.

Round trip with the editor's draft format:
```text
axiom flow pull --from-file draft.json -o flow.yaml   # SourceGraph → flow.yaml
...edit flow.yaml...
axiom flow assemble flow.yaml -o updated.json         # flow.yaml → SourceGraph
```

## Usage

```sh
axiom flow assemble [flow.yaml] [flags]
```

## Flags

| Flag | Shorthand | Type | Default | Description |
|---|---|---|---|---|
| `--help` | `-h` | bool |  | help for assemble |
| `--out` | `-o` | string |  | Write the JSON to a file instead of stdout |

## See also

- [axiom flow](./axiom-flow.md) — Author and compile flows (graphs of published nodes)
