create-iskra
Scaffolding CLI for Iskra. Create a brand-new project from an official template with a single command.
Quick Start
Section titled “Quick Start”bun create iskra my-appThe command prompts for a directory and template if you do not pass them, copies the chosen template, and leaves the project ready for bun install.
Non-interactive mode:
bun create iskra my-app --template simple-server --yesIt also works with npm:
npm create iskra@latest my-appWhat it does
Section titled “What it does”- Copies the chosen template into
my-app/, excludingnode_modules,dist, and.git. - Rewrites
package.json: setsnameto the target directory’s basename and replaces every@iskra-bun/* : workspace:*dependency with a caret range on that package’s current version (e.g.^0.2.0forweb-kit,^0.1.1forcore). - Prints the next steps (
cd,bun install,bun start).
If the target directory already exists and is non-empty, the command aborts without touching anything.
Options
Section titled “Options”create-iskra [directory] [--template <name>] [--yes]| Option | Description |
|---|---|
[directory] |
Directory to create the project in. Prompted if missing. |
-t, --template <name> |
Template to use. Default: starter-app. |
-y, --yes |
Accept defaults without prompting. |
-h, --help |
Show help. |
Bundled templates
Section titled “Bundled templates”starter-app— minimal web server with user management (default).simple-server— minimal HTTP server.
More templates are on the way.
Programmatic API
Section titled “Programmatic API”The copy logic is importable and does not depend on the interactive prompt:
import { scaffold } from 'create-iskra';
scaffold({ template: 'starter-app', targetDir: './my-app', projectName: 'my-app', templatesRoot: '/path/to/templates',});