You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/api-reference/cli.mdx
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ openui create [options]
58
58
|`-n, --name <string>`| Project name (interactive default: `openui-agent`) |
59
59
|`-t, --template <template>`| AI backend: `openui-cloud` (recommended) or `openui-self-hosted`|
60
60
|`--backend-framework <framework>`| Backend integration: `default`, `langgraph`, `vercel-ai-sdk`, or `vercel-eve`|
61
-
|`-e, --example <example>`| Scaffold a featured example instead of a starter template |
61
+
|`-e, --example <example>`| Scaffold any example from the OpenUI Repository|
62
62
|`--api-key <key>`| OpenUI Cloud API key; skips sign-in for the Cloud setup |
63
63
|`--auth <method>`| Cloud auth method: `oauth` or `skip`; `manual` is deprecated |
64
64
|`--skill`| Install the OpenUI agent skill for AI coding assistants |
@@ -69,7 +69,7 @@ openui create [options]
69
69
|`--no-interactive`| Fail instead of prompting for missing input |
70
70
|`--agent-name <name>`| Declare the invoking coding-agent slug (default: `unknown`) |
71
71
72
-
When run interactively (default), the CLI prompts for any missing options, including a starter template or featured example, then asks whether to start the development server after installing dependencies with the detected package manager. The start prompt defaults to yes; answering no preserves the existing install-and-exit behavior and prints the `cd` and dev commands. For most prototypes and evaluations, start with **OpenUI Cloud, the recommended default**: hosted models, managed conversation history and streaming, built-in tools, and ready-to-use reports and presentations without operating the model, storage, or artifact infrastructure. Choose **self-hosted** when owning the OpenAI-compatible provider, AI route, and persistence is a requirement. Choose a **feature example** when you want a FastAPI, shadcn/ui, React Native, Mastra, or other integration listed in `examples/examples.json`.
72
+
When run interactively (default), the CLI prompts for any missing options, including a starter template or featured example, then asks whether to start the development server after installing dependencies with the detected package manager. The start prompt defaults to yes; answering no preserves the existing install-and-exit behavior and prints the `cd` and dev commands. For most prototypes and evaluations, start with **OpenUI Cloud, the recommended default**: hosted models, managed conversation history and streaming, built-in tools, and ready-to-use reports and presentations without operating the model, storage, or artifact infrastructure. Choose **self-hosted** when owning the OpenAI-compatible provider, AI route, and persistence is a requirement.
73
73
74
74
In non-interactive mode, dependencies are installed without starting the long-running development server. Pass `--immediate` to install, start, and open the app, or `--no-install` to scaffold only.
75
75
@@ -100,9 +100,9 @@ For Cloud LangGraph and Vercel AI SDK variants, the framework owns orchestration
100
100
101
101
Every framework overlay includes a `get_weather` example backed by Open-Meteo. Ask “What’s the weather in Berlin?” to verify the selected framework’s native multi-step tool loop.
102
102
103
-
**Feature examples**
103
+
**Examples**
104
104
105
-
Interactive `openui create` lists starter templates and featured examples in one prompt. The featured list is prefetched at runtime from [`examples/examples.json`](https://github.com/thesysdev/openui/blob/main/examples/examples.json) — edit that file to change what the CLI offers. `--example` cannot be combined with `--template` or `--backend-framework`. Examples are copied from a local OpenUI checkout when available, otherwise checked out from GitHub. Workspace and catalog dependencies are rewritten to `latest`.
105
+
Interactive `openui create` lists starter templates and featured examples in one prompt. `--example` cannot be combined with `--template` or `--backend-framework`.
Copy file name to clipboardExpand all lines: packages/openui-cli/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ It currently supports two workflows:
13
13
-**OpenUI Cloud (recommended)** — hosted models with managed conversations, streaming, built-in tools, and ready-to-use report and presentation artifacts
14
14
-**Self-hosted** — bring an OpenAI-compatible model key and own the AI route and persistence
15
15
- keeping the default minimal SDK route or adding a LangGraph, Vercel AI SDK, or Vercel Eve backend to either template
16
-
- scaffolding a featured example listed in[`examples/examples.json`](https://github.com/thesysdev/openui/blob/main/examples/examples.json)
16
+
- scaffolding an example from[`examples/examples.json`](https://github.com/thesysdev/openui/blob/main/examples/examples.json)
17
17
- generating a system prompt or JSON Schema from a `createLibrary()` export
18
18
19
19
## Install
@@ -81,7 +81,7 @@ Options:
81
81
-`-n, --name <string>`: Project name (interactive default: `openui-agent`)
82
82
-`-t, --template <template>`: AI backend `key` from `templates/templates.json` — interactive default `openui-cloud`
83
83
-`--backend-framework <framework>`: Overlay `key` from that template's `overlays` list (plus `default` for the base template)
84
-
-`-e, --example <example>`: Scaffold a featured example from `examples/examples.json`instead of a starter template
84
+
-`-e, --example <example>`: Scaffold any example from `examples/examples.json`(folder name)
85
85
-`--skill`: Install the OpenUI agent skill for AI coding assistants
86
86
-`--no-skill`: Skip installing the OpenUI agent skill
87
87
-`--no-install`: Scaffold without running the package install
@@ -133,13 +133,14 @@ Every framework overlay includes `get_weather` as its example app-owned function
133
133
134
134
#### Feature examples
135
135
136
-
Interactive `openui create` lists **Feature Examples** under the starter templates. The names come from [`examples/examples.json`](https://github.com/thesysdev/openui/blob/main/examples/examples.json) in the OpenUI repo — the CLI prefetches that catalog at runtime, so adding or removing an example does not require a CLI release. Pick one in the prompt, or pass `--example <name>`. `--example` cannot be combined with `--template` or `--backend-framework`.
136
+
Interactive `openui create` lists **Feature Examples** under the starter templates. The names come from [`examples/examples.json`](https://github.com/thesysdev/openui/blob/main/examples/examples.json) in the OpenUI repo — the CLI prefetches that catalog at runtime, so adding or removing an example does not require a CLI release. `--example` cannot be combined with `--template` or `--backend-framework`.
137
137
138
138
The catalog currently features FastAPI, shadcn/ui, React Native, and Mastra. Examples are copied from the local OpenUI checkout when the CLI can see `examples/`, otherwise checked out from GitHub with sparse-checkout. Workspace and catalog dependencies are rewritten to `latest`, and monorepo `generate` scripts are rewritten to `npx @openuidev/cli generate`.
0 commit comments