deltasystems / delta-cli
Requires
- php: >=5.5.0
- cocur/slugify: 2.*
- guzzlehttp/guzzle: ~6.0
- paragonie/random_compat: 1.*
- react/child-process: 0.4.*
- react/react: 0.4.*
- symfony/console: >=2.0
- symfony/stopwatch: >=2.0
Requires (Dev)
- jakub-onderka/php-parallel-lint: ^0.9.2
- phpstan/phpstan: ^0.9.1
- phpunit/dbunit: 2.*
- phpunit/phpunit: 4.*
- phpunit/phpunit-mock-objects: 2.*
- dev-master
- 3.48.1
- 3.48.0
- 3.47.9
- 3.47.8
- 3.47.7
- 3.47.6
- 3.47.5
- 3.47.4
- 3.47.3
- 3.47.2
- 3.47.1
- 3.47.0
- 3.46.12
- 3.46.11
- 3.46.10
- 3.46.9
- 3.46.8
- 3.46.7
- 3.46.6
- 3.46.5
- 3.46.4
- 3.46.3
- 3.46.2
- 3.46.1
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.6
- 3.42.5
- 3.42.4
- 3.42.3
- 3.42.2
- 3.42.1
- 3.42.0
- 3.41.8
- 3.41.7
- 3.41.6
- 3.41.5
- 3.41.4
- 3.41.3
- 3.41.2
- 3.41.1
- 3.41.0
- 3.40.5
- 3.40.4
- 3.40.3
- 3.40.2
- 3.40.1
- 3.40.0
- 3.38.8
- 3.38.7
- 3.38.6
- 3.38.5
- 3.38.4
- 3.38.3
- 3.38.2
- 3.38.1
- 3.38.0
- 3.37.17
- 3.37.16
- 3.37.15
- 3.37.14
- 3.37.13
- 3.37.12
- 3.37.11
- 3.37.10
- 3.37.9
- 3.37.8
- 3.37.7
- 3.37.6
- 3.37.5
- 3.37.4
- 3.37.3
- 3.37.2
- 3.37.1
- 3.37.0
- 3.36.3
- 3.36.2
- 3.36.1
- 3.36.0
- 3.35.2
- 3.35.1
- 3.35.0
- 3.34.4
- 3.34.3
- 3.34.2
- 3.34.1
- 3.34.0
- 3.33.1
- 3.33.0
- 3.32.3
- 3.32.2
- 3.32.1
- 3.32.0
- 3.31.5
- 3.31.4
-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 1.23.2
- 1.23.1
- 1.23.0
- 1.22.2
- 1.22.1
- 1.22.0
- 1.21.2
- 1.21.1
- 1.21.0
- 1.20.4
- 1.20.3
- 1.20.2
- 1.20.1
- 1.20.0
- 1.19.1
- 1.19.0
- 1.18.6
- 1.18.5
- 1.18.4
- 1.18.3
- 1.18.2
- 1.18.1
- 1.18.0
- 1.17.2
- 1.17.1
- 1.17.0
- 1.16.2
- 1.16.1
- 1.16.0
- 1.15.1
- 1.15.0
- 1.14.0
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
- 1.10.1
- 1.10.0
- 1.8.0
- 1.6.0
- 1.4.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.0.2
- 1.0.1
- 1.0
- dev-vhost-creation-error
- dev-feature/sendfile-off
This package is auto-updated.
Last update: 2024-10-25 06:17:38 UTC
README
Command-line tools used at Delta Systems for common development workflow needs.
Delta CLI is an open source project started to improve development workflows at Delta Systems. Before Delta CLI, each project had its own ad-hoc shell scripts, Phing configuration files, git hooks, etc. When switching between projects, developers would have to learn the particular idiosyncracies of that project's deployment scripts. Beyond that, these scripts were typically written without robust error handling, logging or notifications. Delta CLI scripts have a handful of important properties that address these issues.
Documentation
Video Tutorials
- Original Intro to the Delta-CLI Project https://youtu.be/lm4iAuW4sIk
- Working with remote dev environments in Delta-CLI https://youtu.be/QlSR8enp_Cg
- Installing Delta CLI Tools using composer https://youtu.be/JTM429G2fps
- In Delta CLI 2.0 we added logging and Slack notifications https://youtu.be/Va_1Tsx5FFk
- Delta CLI v3.27.0 New Feature Update 2017-01-05 https://youtu.be/5I_fq9yEl1A
- Delta-CLI: Custom Scripts Walkthrough https://youtu.be/Nmkc_AIHe_g
Development
After cloning the repository, install dependencies with Composer, as in the following example:
$ git clone git@github.com:DeltaSystems/delta-cli-tools.git
$ cd delta-cli-tools
$ composer install
Test Suite
Testing is facilitated by PHPUnit, and the test suite can be executed as in the following example that is run within the root directory of the project and enables inspection of the results with less:
$ vendor/bin/phpunit --bootstrap 'tests/bootstrap.php' tests/ &>phpunit.out ; less phpunit.out
You will need to run composer install
in order to pass all tests.
Docker / Windows Support
For Windows users (or any OS), there is a Docker environment and commands available to run Delta CLI from your environment.
To get started, you need to have Docker installed, with both the docker
and docker-compose
commands available.
You also need to make sure that your source files are shared for mounting and that you are signed into the Docker Store.
It is also necessary to add the ./bin-docker folder to your local OS PATH variable to
access the docker commands once installed (even in a global installation).
Once those are prerequisites are met, simply execute delta in your Windows environment.
delta-docker
On Windows, delta-docker
executes delta-docker.bat
which passes through to delta-docker.ps1
, a specialised script that uses docker run
to execute your delta-cli commands.
Note: when you first execute delta
on Windows it will init a build of the delta-cli docker container. Subsequent runs won't have this overhead.
PHP Storm
To enable code inspections in PHPStorm, in the PHP section of Languages & Frameworks settings add ~/.composer/vendor
to your include paths