You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,13 +28,17 @@ DotKernel component to build console applications based on [laminas-cli](https:/
32
28
33
29
Run the following command in your application's root directory:
34
30
35
-
composer require dotkernel/dot-cli
31
+
```shell
32
+
composer require dotkernel/dot-cli
33
+
```
36
34
37
35
### 2. Register ConfigProvider
38
36
39
37
Open your application's `config/config.php` and the following line under the _DK packages_ comment:
40
38
41
-
Dot\Cli\ConfigProvider::class,
39
+
```php
40
+
Dot\Cli\ConfigProvider::class,
41
+
```
42
42
43
43
### 3. Copy bootstrap file
44
44
@@ -54,10 +54,13 @@ This is the config file you will add your commands to.
54
54
55
55
Using the command line, go to your application's root directory, then type the following command:
56
56
57
-
php ./bin/cli.php
57
+
```shell
58
+
php ./bin/cli.php
59
+
```
58
60
59
61
The output should look similar to this, containing information on how to start using dot-cli:
60
62
63
+
```text
61
64
DotKernel CLI 1.0.0
62
65
63
66
Usage:
@@ -77,17 +80,22 @@ The output should look similar to this, containing information on how to start u
77
80
list List commands
78
81
demo
79
82
demo:command Demo command description.
83
+
```
80
84
81
85
As shown in `config/autoload/cli.global.php`, dot-cli includes a demo command `demo:command` that will help you understand the basics of creating a new command.
82
86
For more information, see [laminas-cli documentation](https://docs.laminas.dev/laminas-cli/).
0 commit comments