cdd-cli
v3.1.7
Published
CLI Docker Dashboard
Readme
CDD-CLI — Docker Dashboard (Terminal)
Short, bilingual README with quickstart, development and tests.
Quick start (local)
- Clone the repo and install dependencies:
git clone https://github.com/caertos/cdd.git
cd cdd
npm install- Build and run locally:
npm run build
node dist/index.js- To test the CLI as a globally available command during development:
npm link
cddUsage (interactive)
- Use ↑/↓ to navigate containers.
- I: start selected container
- P: stop selected container
- R: restart selected container
- C: create container (interactive prompt)
- L: view logs for selected container
- D: toggle the on-screen debug log panel
- E: erase (remove) selected container (confirmation required)
- Q: quit
The dashboard auto-refreshes container list every few seconds.
Install globally
To install the CLI globally so you can run cdd from any terminal, use:
npm install -g cdd-cliAfter installing globally, run the CLI with:
cddDevelopment
- Node.js >= 18 is recommended.
- To run the app from source during development:
npm install
npm run build
node dist/index.jsIf you change source files, re-run npm run build before running the CLI.
Tests
We use Jest for unit tests. Run:
npm testTests are located in test/ and cover utility helpers.
Contributing
- Fork the repo and create a feature branch.
- Add tests for new behavior.
- Ensure
npm testandnpm run buildpass. - Open a Pull Request with a clear description.
Troubleshooting
- If you don't see containers, ensure Docker is running and that your user has access to the Docker socket.
- If Docker permissions are required, run the CLI with
sudo(Linux/macOS) or as Administrator (Windows). - The project generates
dist/— keep it out of version control (it's in .gitignore).
Logging
- The CLI logs high-level
info,warn, anderrormessages by default so you see meaningful feedback without noise. - When you need deeper diagnostics (for example, to troubleshoot why stats or logs are not updating), start the CLI with debug logging enabled:
CDD_LOG_LEVEL=debug cdd # if you installed globally
# or
CDD_LOG_LEVEL=debug node dist/index.js- The same effect can be achieved with
LOG_LEVEL=debug. SetLOG_LEVEL=warnif you only want to see warnings and errors. - Inside the CLI, press
Dto toggle the live debug log panel; pressDagain orEscto hide it. - Redirect output to a file when users report issues so they can share the log easily:
CDD_LOG_LEVEL=debug cdd > cdd-debug.log 2>&1License
This project is MIT/ISC licensed (see LICENSE).
## Usage
- When you run `cdd`, you'll see a table with all your Docker containers.
- Running containers show live CPU and memory stats.
- Use `Ctrl+C` to exit.
## Main features
- 🐳 Clear, compact visualization of all containers.
- 🔄 Automatic data refresh (every 2 seconds).
- ⌨️ Keyboard shortcuts for fast actions (navigate, start, stop, logs, quit).
- 📊 Live resource usage stats for running containers.
- 🪵 Real-time log streaming for selected containers.
- 🎨 Visual interface with colors and emojis for states.
- 👤 Author: Carlos Cochero (2025)
## Requirements
- Node.js >= 18
- Docker installed and running (CLI connects to local Docker socket)
## Troubleshooting
- If you don't see containers, make sure Docker is running and your user has permission to access the Docker socket.
- If you have issues with global install, try with `sudo` (Linux/macOS) or run terminal as administrator (Windows).
---
¡Disfruta monitoreando tus contenedores Docker desde la terminal con estilo! / Enjoy monitoring your Docker containers from the terminal in style!