Download the PHP
package civicrm/cli-tools without Composer
On this page you can find all versions of the php package
civicrm/cli-tools. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
FAQ
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
Informations about the package cli-tools
civicrm/cli-tools
A bundle of CiviCRM command-line tools. This specifically includes:
cv: General purpose administration / Swiss Army knife
civistrings: Scan source-code for translatable strings
civix: Generate extensions
coworker: Execute background jobs
This is intended for site-builders who have composer-based deployments (esp Drupal 9/10).
It supports workflows based on composer require, composer update, and vendor-bin.
Usage
To add these tools to an existing composer build (e.g. Drupal 9/10 site), run:
You can call commands through composer exec or vendor/bin:
In depth
This is like a subset of civicrm-buildkit. It omits general development tools (phpunit), CMS-building tools (drush, wp),
standard runtime environments (min, max), and autobuild sites (drupal-clean, wp-demo, etc). This is only the
Civi-specific stuff that you would want to add on top of D9/D10 sites.
The bridge here has 3 simple pieces:
Download each executable via composer-downloads-plugin (e.g. extern/cv.phar).
Add a stub script (e.g. bin/cv)
Register the stub (bin/cv) for use with composer's vendor/bin/.
This layout should be able to leverage composer's platform-specific wiring (e.g. Windows .bat files).
Maintenance
This project is derived from civicrm-buildkit.git:phars.json. Whenever there's a relevant update to phars.json, we should also update civicrm-cli-tools.
For a maintainer of civicrm/civicrm-cli-tools.git, you can follow these steps:
Note the output of ./script/update. It will include details about how to push the update.
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package civicrm/cli-tools contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.