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.1.tar.gz (6.3 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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fast_dcp-0.0.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fast_dcp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 468e3d969678752790970e1560ae2f1d69122b2f097f3756a3272522064e9adf
MD5 b5b4bcc51222df76fab11c20d4a07abd
BLAKE2b-256 c915db2c840064f45eed14fed87e3469c725c488a157493a3747aedb92a6fa8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fast_dcp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for fast_dcp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a320b28ed107f0884f6e8d862f5b3eddedd9ba08626eea30696a47c04077dde
MD5 4c93ddc2cc55b2961516a5de3ba72141
BLAKE2b-256 3c244f86831b28fd78b28a9f1ffa911ad27d1cad1f52f1dfe7eee5d7cb062b86

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