Repository navigation
Scripts
The Scripts panel lists the scripts of your projects and runs them with one click. No need to remember whether a project uses npm, pnpm or yarn.

The Scripts panel: each file with its scripts, the package manager on the right and the Node version badge.
Click the play button in the left activity bar, just above the Terminal button, or choose View > Scripts. The panel opens on the left, in place of Changes. Click the button again, or the X at the top right of the panel, to hide it.
Nibtree looks through every workspace folder for these files:
| File | Scripts it lists | Runs them with |
|---|---|---|
package.json |
scripts |
npm, yarn, pnpm or bun |
composer.json |
scripts |
composer run-script |
Makefile |
targets | make |
deno.json, deno.jsonc
|
tasks |
deno task |
justfile |
public recipes | just |
Each file is a row with its name, then the package name and its folder, dimmed. Click a file row to fold or unfold its scripts. Each script shows its name and what it runs.
Folders with downloaded or built files are skipped: node_modules, vendor, target, dist, build, hidden folders and anything your .gitignore leaves out. If a file cannot be read (for example broken JSON), its row shows a warning sign; hover it for the reason.
The list is read again each time the panel opens. Click Refresh in the panel's title bar after you add a script.
For a package.json, the name on the right of the row is the package manager that runs its scripts. Nibtree picks:
- The
packageManagerfield of thepackage.json, for example"pnpm@9.1.0". - Otherwise the nearest lockfile, in the package's folder or a parent folder up to the workspace folder:
bun.lockorbun.lockb,pnpm-lock.yaml,yarn.lock,package-lock.jsonornpm-shrinkwrap.json. - Otherwise npm.
To use another one, right-click the file row and choose Run With, then npm, yarn, pnpm or bun. The menu marks the one in use and the detected one. This choice lasts until you quit the app.
Double-click a script, select it and press Enter, or hover it and click the green play button at the end of its row.
The script runs in the Run tab of the bottom panel. Every script gets its own tab, named like "dev (pnpm)", so you can keep a dev server running while you run the tests.

The Run tab: one tab per script, Rerun and Stop on the left, the command at the top and the output below.
- The first line shows the command and, for Node projects, the Node version, for example
pnpm run dev (Node 20.11.1, nvm). - The output keeps its colors, and you can type when a script asks a question.
- Each tab shows its state: running, finished, stopped, or the exit code when it failed.
- At the end, a dim line says "Process finished with exit code 0" (or another code), or "Process stopped" after Stop. The tab stays, so you can read the output.
The buttons on the left:
- Rerun starts the script again in the same tab, with fresh output. While it still runs, the button stops it first (Stop and Rerun).
- Stop ends the script and anything it started.
Right-click a run tab for Rerun, Stop and Close. Running a script again from the Scripts panel while it still runs asks first ("Process Is Running"), and so does closing a tab whose script still runs.
If the program is not installed, the Run tab says so with the reason and a Retry button.
A script runs as its own program, not typed into a terminal, so it works the same whatever your shell is. Nibtree still finds your tools. It asks your shell once for its environment: the settings a new Terminal window starts with. That includes PATH, the list of folders where programs are looked up, as your .zshrc sets it up for nvm, Homebrew, pnpm or Composer. On Windows, scripts get the environment Windows gives Nibtree, and tools such as npm and pnpm, which are .cmd files there, start through Command Prompt. Opening the panel or clicking Refresh reads it again, so a tool you just installed is found.
On a script:
- Run 'name': runs it.
-
Copy Command: copies the command, such as
pnpm run build, to paste in a terminal. - Jump to Source: opens the file on the line that defines the script.
On a file:
- Open File.
- Node Version (package.json only, see below).
- Open .nvmrc (or the file the Node version comes from).
- Run With (package.json only).
- Expand All, Collapse All and Refresh.
Projects often need a certain Node version. Nibtree looks for it the way version managers do, nearest folder first, from the package's folder up to the workspace folder:
-
.nvmrc,.node-versionor.tool-versions(thenodejsornodeline). - Otherwise
volta.nodein thepackage.json. - Otherwise
engines.nodein thepackage.json, such as>=18 <21.
It picks the newest installed version that fits, from nvm, Herd, fnm, Volta, asdf, mise, nodenv, n and Homebrew.
The version shows as a badge on the file row, like node 18.20.6. Hover it to see why that version was picked. If the project asks for a version you do not have, the badge says "missing" next to a warning icon, and running a script tells you it uses the shell's default node instead.

Clicking the badge opens the Node Version menu: Auto, Shell Default and every installed version with its manager.
Click the badge, or use Node Version in the file's menu, to choose:
- Auto (Follow Project): the version the project asks for. This is the default.
-
Shell Default: whatever
nodeyour shell finds. - A version, such as 20.11.1 (nvm).
Your choice is saved for that package.json, so it stays after a restart.
Type in Filter scripts at the top to show only scripts whose name or command contains every word you type. Press Down or Enter to jump into the list, and Escape to clear the filter.
In the list, Up and Down move, Left and Right fold and unfold a file, Enter runs a script and Shift+F10 opens the menu.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode