@inkly-org/cli 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -0
- package/dist/capture-listener.js +320 -0
- package/dist/cli.js +5501 -0
- package/dist/template/demo.html +567 -0
- package/dist/template/hub-index.html +406 -0
- package/package.json +53 -0
- package/template/demo.html +567 -0
- package/template/hub-index.html +406 -0
- package/vendor/react-dom-client.mjs +48 -0
- package/vendor/react-dom.mjs +17 -0
- package/vendor/react-jsx-runtime.mjs +16 -0
- package/vendor/react.mjs +16 -0
- package/vendor/vendor-manifest.json +27 -0
package/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# @inkly-org/cli
|
|
2
|
+
|
|
3
|
+
> Pitch-ready demos from one prompt.
|
|
4
|
+
|
|
5
|
+
The command-line companion to **[Inkly](https://inklyai.dev)** — the AI-native interactive demo tool you build once and iterate with AI.
|
|
6
|
+
|
|
7
|
+
Your demos are **yours, as code**, living right next to your product. Scaffold a demo hub, preview it locally, capture a walkthrough, and ship it — all from your terminal. Then keep it alive by pointing your coding agent (Claude, Cursor, Codex) at the demo files, or with the no-code editor on the web.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Requirements
|
|
12
|
+
|
|
13
|
+
- **Node.js ≥ 20**
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install -g @inkly-org/cli
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or run it without installing:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
npx @inkly-org/cli init my-hub
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Quick start
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
inkly init my-hub # scaffold a new demo hub
|
|
31
|
+
cd my-hub
|
|
32
|
+
inkly add checkout # add a demo to the hub
|
|
33
|
+
inkly dev # preview at http://localhost:3000
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
A hub is just files: an `inkly.json` at the root and one `demos/<slug>/demo.config.json` per demo. Commit them to your repo and your agent can author and maintain them directly — no rebuild, no lock-in.
|
|
37
|
+
|
|
38
|
+
## Commands
|
|
39
|
+
|
|
40
|
+
Run `inkly help <command>` (or `inkly <command> --help`) for full options.
|
|
41
|
+
|
|
42
|
+
### Authoring
|
|
43
|
+
|
|
44
|
+
| Command | What it does |
|
|
45
|
+
|---|---|
|
|
46
|
+
| `inkly init <name> [--layout sidebar\|tabs]` | Scaffold a new demo hub. |
|
|
47
|
+
| `inkly add <name> [--collection <name>]` | Add a demo to the current hub. Gets a fresh, permanent id. |
|
|
48
|
+
| `inkly dev [--port <n>]` | Start the local preview server (defaults to port 3000). |
|
|
49
|
+
| `inkly validate [--json] [--strict]` | Validate the hub and demo files. |
|
|
50
|
+
| `inkly doctor [--json]` | Run local diagnostics and repair demo ids. |
|
|
51
|
+
|
|
52
|
+
> `--collection` is optional — a demo joins a collection only when you ask. Omit it and the demo stays uncollected.
|
|
53
|
+
|
|
54
|
+
### Capture
|
|
55
|
+
|
|
56
|
+
Generate a walkthrough of any live site for an external browser agent to turn into a demo. Both commands run real Chrome (headless by default) and print JSON.
|
|
57
|
+
|
|
58
|
+
| Command | What it does |
|
|
59
|
+
|---|---|
|
|
60
|
+
| `inkly capture <start\|stop\|cancel\|profiles>` | Capture an image/video walkthrough. |
|
|
61
|
+
| `inkly capture-html <start\|stop\|cancel\|profiles>` | Capture a self-contained HTML walkthrough. |
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
inkly capture start --url https://example.com --name my-demo
|
|
65
|
+
inkly capture stop --session <id> --out ./out
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Useful flags: `--headed` (watch a login), `--profile <name>` (reuse a signed-in Chrome profile across captures), `--width`/`--height`, `--timeout <ms>`. HTML capture adds `--block-videos`, `--compress-images`, and `--subset-fonts`.
|
|
69
|
+
|
|
70
|
+
### Connect to Inkly
|
|
71
|
+
|
|
72
|
+
| Command | What it does |
|
|
73
|
+
|---|---|
|
|
74
|
+
| `inkly login` | Connect to the hosted app. |
|
|
75
|
+
| `inkly logout` | Remove saved credentials. |
|
|
76
|
+
| `inkly status [--json]` | Show auth and hub status. |
|
|
77
|
+
| `inkly sync [--demo <slug>] [--dry-run]` | Upload local capture assets to the CDN. |
|
|
78
|
+
| `inkly preview <demo> [--yes]` | Publish a standalone `/p/<id>` preview snapshot. |
|
|
79
|
+
|
|
80
|
+
### Maintenance
|
|
81
|
+
|
|
82
|
+
| Command | What it does |
|
|
83
|
+
|---|---|
|
|
84
|
+
| `inkly lock [--check] [--json]` | Generate or verify `inkly.lock`, which pins the exact runtime your demos render with. |
|
|
85
|
+
| `inkly version` | Print the CLI version. |
|
|
86
|
+
| `inkly update [--dry-run]` | Update the globally installed CLI. |
|
|
87
|
+
|
|
88
|
+
## How it fits together
|
|
89
|
+
|
|
90
|
+
The CLI is one of Inkly's three authoring surfaces — alongside the visual editor and your own AI agent — over a single git-backed substrate. Whatever you scaffold here is the same JSON your agent edits and the same source the hosted hub renders. Bring your own agent; own your demos.
|
|
91
|
+
|
|
92
|
+
## License
|
|
93
|
+
|
|
94
|
+
Proprietary. © Inkly. All rights reserved.
|