eclipsegc / common-console
A Common Console base application.
Installs: 768 021
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 5
Open Issues: 2
Type:project
Requires
- php: >=8.1
- ext-json: *
- consolidation/config: ^1.0@dev || ^2
- symfony/config: >=4.4
- symfony/console: >=4.4
- symfony/dependency-injection: >=4.4
- symfony/event-dispatcher: >=4.4
- symfony/filesystem: >=4.4
- symfony/process: >=4.4
- symfony/yaml: >=4.4
Requires (Dev)
- drupal/coder: dev-8.x-3.x
- php-coveralls/php-coveralls: ^2.4
- phpspec/prophecy-phpunit: ^2.0@dev
- phpunit/phpunit: ^9.3@dev
This package is auto-updated.
Last update: 2024-11-16 15:15:27 UTC
README
Common Console is a tool based on Symfony Console Component that provides a set of command line interfaces that allows for automating scripted operations in different sites in a platform. A platform is a local or remote environment that hosts different web sites.
The Common Console by itself provides out of the box commands for the creation of basic platforms, but it is extensible to allow for the creation of more platforms and commands. Its potential resides in the extensibility of the tool.
Installation
Install the package with the latest version of composer:
$composer require acquia/contenthub-console
$composer install
Usage
Once installed you could create basic platforms:
./bin/commoncli
CommonConsole 0.0.1
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--uri[=URI] The url from which to mock a request.
--bare Prevents output styling.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
help Displays help for a command
list Lists commands
platform
platform:create [pc] Create a new platform on which to execute common console commands.
platform:delete [pdel] Deletes the specified platform.
platform:describe [pd] Obtain more details about a platform.
platform:list [pl] List available platforms.
platform:sites List available sites registered in the platform.
Extending Common Console
There are different projects that extend this tool to allow for creation of platforms and commands that operate on those platforms: