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 -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 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 run(R) container_name bash docker compose run container_name bash
dcp run(R) container_name args1 args2... docker compose run 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 ps -a docker compose ps --all
dcp ps -st running docker compose ps --status running
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
dcp down -ro docker compose down --remove_orphans
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.2.0.tar.gz (12.7 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.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fast_dcp-0.2.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","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.2.0.tar.gz
Algorithm Hash digest
SHA256 95201bb09cd65bb0ac74af18f52df639807c890ae89f6e9815aa57ade3bb3d1f
MD5 11fdc394dccf24185c2952c59cc754b5
BLAKE2b-256 278facf182607c070e7f3c65266ce157b1eedada367e56621bd30a680e744b3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fast_dcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fd3fb56c574c7b449049cadce30f29f60dd3c546350c4c11a88823cb7c8f7ba
MD5 0d1402910cc8e6d0e0806ebc0a0b68d3
BLAKE2b-256 75ecc615e21c3a5d98c0af808097d5f4f346d0adb822c181aef92a399a3d5a13

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