Skip to content

Development commands

The npm scripts used for day-to-day development, native-module recovery, testing, and packaging.

Note

This covers the repository's own npm scripts for building and packaging AgentDock — not a command-line interface exposed by the app itself, which doesn't exist. See CLI reference.

Everyday development

ScriptPurpose
npm run devStart AgentDock in development mode via electron-vite.
npm run buildProduction build.
npm run typecheckType-checks both the main/node and web/renderer TypeScript projects.
npm testRuns the Vitest suite.

Native module recovery

ScriptPurpose
npm run rebuild:nativeRebuilds node-pty against the installed Electron's ABI.
npm run native:checkVerifies the native module loads correctly.
npm run test:ptyA dedicated PTY smoke test.

Packaging (AgentDock Pro)

ScriptOutput
npm run package:winWindows x64 NSIS installer + portable exe.
npm run package:linuxLinux x64 AppImage + deb.
npm run package:macmacOS x64 dmg + zip.
npm run package:mac:arm64macOS arm64 dmg + zip.

Warning

npm run rebuild:native && npm run native:check should be run before packaging — packaging does not rebuild native modules itself (npmRebuild: false in electron-builder.yml), so a stale native build ships silently otherwise.