A CLI tool that provides shorthand aliases for common docker compose commands.
Project description
Fast DCP
🚀 A CLI tool that provides shorthand aliases for common
docker composecommands.
🐳 Tired of Typing docker compose Every Time?
How many times have you typed docker compose up --build today?
Fast DCP cuts it down to dcpu -b — same result, a fraction of the keystrokes.
🆕 Highlights
Interactive file & profile selection
Running -f or -pf without arguments auto-detects compose files and profiles, letting you choose interactively.
$ dcpu -f
☑ Found 2 docker-compose files!
1. docker-compose.yml
2. docker-compose.prod.yml
Enter your choices (e.g., 1,3,4) or 'Q' to quit:
$ dcpu -pf
☑ Found 2 profiles!
1. dev
2. prod
Enter your choices (e.g., 1,3,4) or 'Q' to quit:
--wait option
# Block until all services are healthy
dcpu -w
Sample Usage
# docker compose up --build
dcpu -b
# docker compose -f docker-compose.prod.yml up -d
dcpu -df docker-compose.prod.yml
# docker compose exec app bash
dcpe app
# docker compose exec db psql -U user -d mydb
dcpe db -- psql -U user -d mydb
# docker compose restart app
dcp re app
Install fast-dcp
Quick Install (Recommended)
# Using pipx
pipx install fast-dcp
# OR using uv
uv tool install fast-dcp
Not familiar with Python tooling?
If you don't have pipx or uv installed yet:
Windows
python -m pip install --user pipx
python -m pipx ensurepath
# Restart terminal, then:
pipx install fast-dcp
macOS
brew install pipx
pipx ensurepath
pipx install fast-dcp
Linux (Ubuntu/Debian)
pip install pipx
pipx ensurepath
pipx install fast-dcp
✨ Features
- Short Aliases:
dcp u,dcp b,dcp e— fewer keystrokes for common commands - Dedicated Commands:
dcpuanddcpefor frequent up/exec workflows - Zero Config: No configuration files needed — just install and run
- Cross-Platform: Works on Windows, macOS, and Linux
❓ FAQ
Why use pipx or uv tool instead of pip?
Both pipx and uv tool install CLI tools in isolated environments, so fast-dcp won't conflict with other Python packages. The commands (dcp, dcpu, dcpe) are available globally without activating a virtual environment. uv tool is the faster alternative if you already use uv.
🔧 Requirements
- Python 3.11+
- Docker with Compose V2 (
docker compose— notdocker-compose)
List of Commands
Common options (available for all commands):
-f FILE...,-pf PROFILE...,-p PROJECT⚠️ Note:
-f,-pf,-pare passed before the subcommand in the actual docker compose syntax,
but in fast-dcp they are specified after the subcommand (e.g.dcp up -f FILE).
| Bash Command | Executed Docker Command |
|---|---|
| dcp | - (Show help) |
| dcp up(u) [CONTAINER...] | docker compose up [CONTAINER...] |
| dcp up(u) -d | docker compose up -d |
| dcp up(u) -b | docker compose up --build |
| dcp up(u) -w | docker compose up --wait |
| dcp build(b) [CONTAINER...] | docker compose build [CONTAINER...] |
| dcp exec(e) CONTAINER [CMD...] | docker compose exec CONTAINER [CMD...] |
| dcp run CONTAINER [CMD...] | docker compose run CONTAINER [CMD...] |
| dcp restart(re) [CONTAINER...] | docker compose restart [CONTAINER...] |
| dcp ps [CONTAINER...] [-a] [-st STATUS] | docker compose ps [CONTAINER...] [--all] [--status ...] |
| dcp logs(l) [CONTAINER...] [-fo] | docker compose logs [CONTAINER...] [-f] |
| dcp stop(s) [CONTAINER...] | docker compose stop [CONTAINER...] |
| dcp down [-ro] | docker compose down [--remove-orphans] |
| dcpu [CONTAINER...] [-d] [-b] [-w] | docker compose up [CONTAINER...] |
| dcpe CONTAINER [CMD...] | docker compose exec CONTAINER [CMD...] |
License
MIT LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fast_dcp-0.4.0.tar.gz.
File metadata
- Download URL: fast_dcp-0.4.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b38d2bc20473afdca342c5ae4c618e86ee8a80eb49359a139c3604ed47b905ea
|
|
| MD5 |
130ed2c1dd639344d623376ea0f7cb15
|
|
| BLAKE2b-256 |
984636af0f865dd3c01607f774c667ca4c728896b69f44a8a70f8494cf3d9ce7
|
File details
Details for the file fast_dcp-0.4.0-py3-none-any.whl.
File metadata
- Download URL: fast_dcp-0.4.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a179fe7554c32689eae47b873afe6b69dc4ef05cf86abcdd876c7f664ea204c9
|
|
| MD5 |
7c0466a7f8252d1d50a5d43b62d4ede1
|
|
| BLAKE2b-256 |
8a52ed4354a6a5b1089a6e9383f06f20c6b30d21d84313d7baa5405cf30a26da
|