If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.
This DDEV add-on provides seamless integration of essential CiviCRM CLI tools within your DDEV-managed projects. It simplifies the use of tools like civistrings, civix, coworker, and cv, improving the developer experience for CiviCRM projects integrated with CMS platforms such as Drupal and Backdrop.
Install the add-on:
ddev add-on get vinugawade/ddev-civicrm-cli-tools
Restart your DDEV project:
ddev restart
Install the required CiviCRM CLI tools package:
ddev composer require civicrm/cli-tools
Verify the installation:
Run any CLI command to confirm that everything is working:
ddev cv --version
The add-on exposes the following commands:
ddev civistringsExecutes the civistrings tool inside the web container.
cvstrExamples:
ddev civistrings -o myfile.pot myfolder
ddev civistrings --version
ddev civixExecutes the civix tool inside the web container.
cvxExamples:
ddev civix build:zip
ddev civix upgrade
ddev coworkerExecutes the coworker tool inside the web container.
cowkrExamples:
ddev coworker list
ddev coworker debug
ddev cvExecutes the cv tool inside the web container.
cvExamples:
ddev cv flush
ddev cv upgrade:db
.
├── LICENSE # License for the project.
├── README.md # Documentation for the add-on.
├── commands # Directory containing CLI command stubs.
│ └── web
│ ├── civistrings # Stub for the civistrings command.
│ ├── civix # Stub for the civix command.
│ ├── coworker # Stub for the coworker command.
│ └── cv # Stub for the cv command.
├── install.yaml # DDEV add-on installation configuration.
└── tests # Automated tests for the add-on.
├── test.bats # Main test file for the add-on.
└── testdata # Sample test data.
└── composer.json # Sample Composer configuration.
Contributions are welcome!
To get started:
Fork the repository.
Create a feature branch:
git checkout -b feature/your-feature
Commit your changes:
git commit -m "Add your message here"
Push to your fork and submit a pull request.
The add-on includes automated tests written in BATS.
Navigate to the add-on test directory:
cd <ddev-civicrm-cli-tools add-on path>/tests
Run the tests:
bats test.bats
👤 Vinay Gawade
Connect with me:
Special thanks to the CiviCRM and DDEV communities for their tools, documentation, and support.
If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.