You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate from package-lock.json/yarn.lock/pnpm-lock.yaml
lock diff
Show lockfile changes
lock update
Regenerate lockfile
--frozen-lockfile
Fail if lockfile is stale
Framework & Scaffold
Command
Description
create <framework> [project]
Scaffold new project
workspace list
List workspace members
workspace add <member> <dep>
Add dependency to workspace member
orm <cmd>
ORM operations (generate, migrate, seed)
db <cmd>
Database operations
Development
Command
Description
format [files]
Format code
lint [files]
Lint code
test [files]
Run tests
coverage
Generate coverage report
typecheck
Type-check TypeScript files
System
Command
Description
doctor
System health check
info
Display project/system info
config get/set/list
Manage configuration
cache <cmd>
Cache management
completions [shell]
Generate shell completions
upgrade
Upgrade Klyron
telemetry <cmd>
Manage telemetry
--version
Show version
--help
Show help
Common Flags
Flag
Description
--engine <name>
JS engine: v8, boa, quickjs, jsc, auto
--ts
Enable TypeScript
--jsx
Enable JSX
--watch
Watch mode
--json
JSON output
--color
Force color output
--no-color
Disable color output
--verbose
Verbose output
--quiet
Quiet mode
--frozen-lockfile
Fail if lockfile stale
Runtime API
Klyron.* Globals
Klyron.version// Runtime version stringKlyron.engine// Current engine nameKlyron.platform// OS platformKlyron.arch// CPU architectureKlyron.pid// Process IDKlyron.ppid// Parent process IDKlyron.cwd()// Current working directoryKlyron.env// Environment variablesKlyron.argv// Command-line argumentsKlyron.execPath// Path to Klyron binaryKlyron.mainModule// Entry moduleKlyron.builtinModules// List of built-in modulesKlyron.isPolyfill(name)// Check if module is a polyfillKlyron.require(id)// CommonJS requireKlyron.copy(obj)// Deep copy objectKlyron.readBuffer(path)// Read file as BufferKlyron.writeBuffer(path,buf)// Write Buffer to file
Web APIs
fetch(url,options)// HTTP fetchRequest,Response,Headers// Fetch APIWebSocket(url,protocols)// WebSocket clientEventSource(url)// Server-Sent EventsURL,URLSearchParams// URL APIsURLPattern(pattern)// URL pattern matchingTextEncoder,TextDecoder// Text encodingBlob,File// Binary dataFormData// Form datastructuredClone(value)// Deep cloneEvent,EventTarget,CustomEvent// Event systemAbortController,AbortSignal// Abort APIperformance.now()// High-res timestampconsole.log/warn/error/info// Console APIsetTimeout,setInterval,setImmediate,queueMicrotaskcrypto(getRandomValues,subtle)// Web CryptoBroadcastChannel// Tab communicationMessageChannel,MessagePort// Message passingCacheStorage,Cache// Cache API (basic)
Node.js Compat Modules
All 32 modules available via:
constfs=require('fs')// bare specifierconstfs=require('node:fs')// node: prefiximportfsfrom'node:fs'// ESM
SDK APIs
JavaScript SDK (sdk/js)
import{KlyronRuntime}from'@klyron/sdk'// All node:* polyfills as named exports// Klyron.builtinModules, Klyron.isPolyfill(), Klyron.require()
TypeScript SDK (sdk/ts)
import{KlyronRuntime}from'@klyron/sdk'// Full type declarations for all node:* and Web APIs
Rust SDK (sdk/rust)
use klyron_sdk::KlyronRuntime;// Async runtime with tokio// Full HttpClient, KlyronCrypto, KlyronFS, KlyronEnv, KlyronProcess