Skip to content

Jahbas/web-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMD Dashboard

A local web-based dashboard to run commands on your Windows machine via PowerShell, with live streaming output, stop control, history, and configurable quick commands.

Requirements

  • Node.js 18+ (tested with v22)
  • Windows 10/11 (uses powershell.exe)

Install & Run

npm install
npm start

Then open http://localhost:3000.

Features

  • Live command execution over WebSocket (stdout/stderr streamed in real time)
  • Stop/Cancel running command (uses taskkill /T /F on Windows)
  • Send stdin to running process
  • Output clear button (sends cls silently)
  • Command history with clear
  • Settings drawer (bottom-right) with:
    • Quick commands (5 presets) that show as chips for 1-click run
    • Ignore-in-history patterns (exact or prefix with *)
    • Keep output when starting a new command
    • Wrap long lines toggle
  • Persistent preferences via localStorage

Quick Commands

  • Configure up to 5 commands in Settings → Quick commands
  • Chips appear in the top bar if the corresponding preset is non-empty
  • Clicking a chip fills the input and runs it immediately
  • Presets are saved in localStorage.quickPresets

Ignore in History

  • One pattern per line
  • Exact match: cls
  • Prefix match: secret* (matches secret, secret foo, etc.)

Security Notes

  • This app executes commands locally under your user account
  • Intended for local access only
  • If you plan to expose it over a network, add authentication and restrict/allow-list commands

Development

  • Dev server: npm run dev (auto-restart on changes)
  • Server: server.js
  • Static client: public/

Known Notes

  • Windows only (uses PowerShell/taskkill semantics). Linux/Mac would need shell/task tree handling updates
  • Long-running commands keep the WebSocket open; closing the tab stops the process

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published