Skip to main content

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 compose commands.

🐳 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.

Sample Usage

# docker compose up --build
dcpu -b
# docker compose -f docker-compose.prod.yml up -d
dcpu -f docker-compose.prod.yml -d
# docker compose exec app bash
dcpe app
# docker compose exec app uv run pytest
dcpe app uv run pytest
# docker compose restart app
dcp r 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: dcpu and dcpe for 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 — not docker-compose)

List of Commands

Bash Command Executed Docker Command
dcp -
dcp up(u) docker compose up
dcp up(u) container_name docker compose up container_name
dcp up(u) -f path1 path2... docker compose -f path1 -f path2 up
dcp up(u) -p project_name... docker compose -p project_name up
dcp up(u) -d docker compose up -d
dcp build(b) docker compose build
dcp build(b) container_name docker compose build container_name
dcp build(b) -f path1 path2... docker compose -f path1 -f path2... build
dcp build(b) -p project_name... docker compose -p project_name build
dcp exec(e) container_name docker compose exec container_name bash
dcp exec(e) container_name bash docker compose exec container_name bash
dcp exec(e) container_name args1 args2... docker compose exec container_name args1 args2...
dcp restart(r) docker compose restart
dcp restart(r) container_name docker compose restart container_name
dcp ps docker compose ps
dcp logs(l) docker compose logs
dcp logs(l) container_name docker compose logs container_name
dcp logs(l) container_name -F docker compose logs container_name -f
dcp stop docker compose stop
dcp stop container_name docker compose stop container_name
dcp down docker compose down
dcpu docker compose up
dcpu -f path1 path2... docker compose -f path1 -f path2... up
dcpu -p project_name... docker compose -p project_name up
dcpu --build(-b) docker compose up --build
dcpu --build(-b) -f path1 path2... docker compose -f path1 -f path2... up --build
dcpu --detach(-d) docker compose up -d
dcpe container_name docker compose exec container_name bash
dcpe container_name bash docker compose exec container_name bash
dcpe container_name args1 args2 ... docker compose exec container_name args1 args2...

License

MIT LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_dcp-0.0.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fast_dcp-0.0.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file fast_dcp-0.0.2.tar.gz.

File metadata

  • Download URL: fast_dcp-0.0.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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

Hashes for fast_dcp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c0b217ed4394b9534efbd62208f7e0984947a368d35bca5f0e993386271c11f5
MD5 c45da6fb05764be6b76ca28b1e3491de
BLAKE2b-256 4120ec27c5d75d64103ebe1edc6d52b2060a1f6fd404c0baf0bea490be5d642c

See more details on using hashes here.

File details

Details for the file fast_dcp-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fast_dcp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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

Hashes for fast_dcp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d46730cc5c701ecbd26c5fb92a07a09a7cc944ebbf8993e699f47f7fc70748
MD5 673654becb15907b36f49f07538b3f88
BLAKE2b-256 7694c8744d1a8e3c392bbc5b90721da536514524193e7bafd7c5e29bf79058da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page