modal-isolates
v0.1.3
Published
CLI and SDK for Modal JS Isolates
Readme
JavaScript CLI & SDK
The modal-isolates npm package: an SDK for declaring an App's Actors, and the isolates CLI, which deploys and runs them on Iso.
Run from cli/js/:
bun run dev --help # Run CLI from source
bun tsc # Type-check
bun test # Compiler testsBuilding
The package ships the SDK, a small Node launcher, and the CLI as standalone Bun binaries.
bun run build # SDK, launcher, and all four platforms' binaries
bun run build:sdk
bun run build:cli-launcher
bun run build:cli-binaries
npm pack --dry-runTo install it as a user, link it.
cd ../../cli-example && bun run dev:linkPublishing
Before releasing, keep version and all optionalDependencies versions equal in
package.json.
Note devboxes enforce npm proxy, so build and publish from a local machine that can reach npm.
npm login --registry=https://registry.npmjs.org
bun run publishCLI commands
isolates init # Create a project in the current directory from a template
isolates deploy [--trace] <source> # Deploy the App
isolates deploy --dry-run <source> # Print the App version deploying would create, as JSON
isolates run [--trace] <source> # Deploy it as an ephemeral App and await its local entrypoint