Shared run flags
run, dev, task, and x share a common set of grant and engine flags:
| Flag | Description |
|---|---|
--allow-clock | Use the real system clock (run is no longer reproducible). |
--allow-random | Use OS entropy for Math.random / crypto.getRandomValues. |
--allow-env[=NAMES] | Expose host env. Bare = all; =A,B scopes to those names. |
--trust | Grant full host access (clock + random + env). |
--max-old-space-size <MiB> | V8 heap limit, like Node. Also read from NODE_OPTIONS. |
--v8-flags <FLAGS> | Pass comma-separated flags straight to V8. |
meow init
Scaffold a new project in the current directory.| Flag | Default | Description |
|---|---|---|
--mode <mode> | strict-web | strict-web or node-compat. |
--force | off | Overwrite existing meow.config.json / package.json. |
--no-install | off | Skip the dependency install after scaffolding. |
meow.config.json, a minimal package.json, and a starter main.ts; runs
meow sync; then meow install (unless --no-install).
meow run
Execute a file or apackage.json script.
| Argument | Description |
|---|---|
<target> | A script name (matched in package.json first) or a file path. |
-- <args…> | Arguments forwarded to your program as argv. |
meow dev
Shorthand formeow run dev, with a cold-start banner.
-- <args…>.
meow task
Run apackage.json script by name (explicit form, no file-path inference).
| Argument | Description |
|---|---|
<name> | The script name in package.json. |
-- <args…> | Forwarded arguments. |
meow test
Discover and run the test suite in deterministic V8 isolates.*.test.* / *.spec.* file (.ts, .tsx, .js, .jsx, .mts,
.mjs, .cts, .cjs), each in its own hermetic isolate, and prints a pass/fail
summary. Exits non-zero if any test fails. Tests use the
meow:test API. See Testing.
meow x
Ephemeral package execution — install to a temp workspace, run, discard. Aliased asexecute, and reachable via the npx/bunx/meowx binary names.
| Argument | Description |
|---|---|
<package> | Package to run, optionally @version or @tag. |
<args…> | Forwarded to the package’s binary (no -- needed). |
MEOW_DANGEROUSLY_DISABLE_SECURITY=1 grants trust persistently.
eval & print
Run inline source without a file.| Flag | Description |
|---|---|
-e, --eval | Evaluate the given source. |
-p, --print | Evaluate and print the result. |
Package commands
install, add, remove, search.