Swift CLI to scaffold a new Velox application.
swift run create-velox-app [PROJECTNAME]Common options:
-y, --yesto skip prompts-f, --forceto overwrite a non-empty directory--identifierto set the app identifier--velox-pathto use a local Velox checkout (for development)
Templates:
vanilla: As simple as it gets.hummingbird: Using the Hummingbird HTTP Stack for the backend.hummingbird-vue: Hummingbird backend with Vue for the front-end.hummingbird-vue-ts: Hummingbird backend with Vue + TypeScript for the front-end.vue: Using Vue for the front-end.vue-ts: Using Vue with Typescript for the front-end.svelte: Using Svelte for the front-end.svelte-ts: Using Svelte with Typescript for the front-end.
The default template is a bundled-assets Velox app based on the HelloWorld2 example. It includes:
- a SwiftPM executable target
- bundled HTML/CSS/JS assets served via
app:// - an IPC command bridge via
ipc://
Set VELOX_DEV_URL to point the webview at a dev server instead of bundled assets.