> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inklyai.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish a demo

> Publish one Inkly demo as a standalone shareable link.

Use a snapshot when you want to share one frozen demo without updating the live hub.

If you want the live hub to update from GitHub, use [Publish a collection of demos](/cli/publish-a-demo-hub) instead.

## Sign in

Snapshots require an Inkly account:

```bash theme={null}
inkly login
```

For automation, save an existing token:

```bash theme={null}
inkly login --token <token>
```

## Publish

Publish a demo inside a hub:

```bash theme={null}
inkly snapshot demos/onboarding
```

Or select by slug:

```bash theme={null}
inkly snapshot --demo onboarding
```

You can also publish a bare exported demo folder:

```bash theme={null}
inkly snapshot ./out/onboarding
```

Inkly returns a standalone `/p/<id>` URL. The snapshot is frozen, so later edits do not change that link. Publish a new snapshot when you want a new version.

## Share or embed

After publishing, you can open the demo in the Inkly platform to copy the public sharing URL or fetch embed code. The URL is available as soon as the demo is published, but the platform gives you the ready-to-use inline embed and popup embed snippets.

See [Embed and share](/platform/embedding).

## Machine-readable output

Use JSON when another tool needs the result:

```bash theme={null}
inkly snapshot demos/onboarding --json
```

For asset cleanup, see [Sync assets](/cli/sync-assets).
