@loop-kit/cli
v0.0.6
Published
**loop-kit CLI** is a self-starting dev/build tool that makes it trivial to run and build TypeScript projects with [Vite](https://vitejs.dev/) and [vite-node](https://github.com/vitest-dev/vite-node).
Readme
@loop-kit/cli
loop-kit CLI is a self-starting dev/build tool that makes it trivial to run and build TypeScript projects with Vite and vite-node.
It’s designed to just work out of the box: no boilerplate, no setup — the CLI auto-inits your project with sensible defaults if needed.
Features
- Dev Run : Run TypeScript entries instantly with
vite-node --watch. - Build : Use Vite’s SSR build mode with zero config.
- Auto Init : If missing, the CLI will create:
package.json(type: module)tsconfig.jsonwith NodeNext + JSX defaults.gitignore- Dev dependencies:
vite,vite-node - Upgrade in Place : One-command self-upgrade via
npm. - Cross-platform : Works reliably on macOS, Windows, and Linux.
Installation
npm i -g @loop-kit/cliRequires Node 20+ with native ESM support.
Usage
loop <entry> # Dev-run with vite-node (watch, auto-init)
loop run <entry> # Same as above
loop build <entry> # Vite build --ssr into dist/ (auto-init)
loop upgrade # Upgrade CLI via npm
loop version # Show CLI versionExamples
# Run a TypeScript file with vite-node
loop index.ts
# Build a server entrypoint
loop build src/server.ts --outDir build --minify false
# Upgrade the CLI itself
loop upgradePhilosophy
The CLI is designed to bootstrap itself :
- If your project has no config,
loopwill scaffold just enough to make things run. - If dependencies are missing,
loopinstalls them. - It aims to reduce friction on fresh environments — ideal for experiments, demos, or quickly starting new projects.
The long-term goal is for loop-kit itself to be self-hosting : built and extended entirely with loop.
Roadmap
- Replace hardcoded bootstrapping with loop-kit-native utilities .
- Integrate
@loop-kit/commonand@loop-kit/platform. - Eventually power richer workflows (Live/UseGPU integrations, declarative config).
License
MIT © Isaac Harvey / Infinite Loop Technologies
