---
title: embed_artifact
description: Puts an artifact's frame at the end of a page's file, as one commit on
  a branch, checked like git commit, so the page shows it once the branch is merged.
sidebar:
  order: 66
---

Puts an artifact's frame at the end of a page's file, as one commit on a branch, checked like git commit, so the page shows it once the branch is merged. Typed inside `bash`, where `help embed_artifact` prints the same.

```text
Usage: embed_artifact SLUG PAGE [options]

Puts an artifact's frame at the end of a page's file, as one commit on
a branch, checked like git commit, so the page shows it once the
branch is merged. Refused for a picture, which goes on a page as an
image, and for an artifact that reads private data.

Options:
  --slug TEXT (required)
      The artifact's slug, from list_artifacts.
  --page TEXT (required)
      The page's file, such as pages/index.vzk.
  --branch TEXT (default: the checkout's branch)
      The branch to write, made with git switch -c. main is never written directly.
  --json OBJECT
      Every argument at once, as one JSON object; --json - reads it from stdin.
```
