|
1 | 1 | # Testing |
| 2 | + |
2 | 3 | Using the command line, go to your application's root directory, then type the following command: |
3 | 4 |
|
4 | 5 | php /bin/cli.php |
5 | 6 |
|
6 | 7 | The output should look similar to this, containing information on how to start using dot-cli: |
7 | | -```text |
8 | | -DotKernel CLI 1.0.0 |
9 | | -
|
10 | | -Usage: |
11 | | - command [options] [arguments] |
12 | 8 |
|
13 | | -Options: |
14 | | - -h, --help Display help for the given command. When no command is given display help for the list command |
15 | | - -q, --quiet Do not output any message |
16 | | - -V, --version Display this application version |
17 | | - --ansi Force ANSI output |
18 | | - --no-ansi Disable ANSI output |
19 | | - -n, --no-interaction Do not ask any interactive question |
20 | | - -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug |
| 9 | + DotKernel CLI 1.0.0 |
| 10 | + |
| 11 | + Usage: |
| 12 | + command [options] [arguments] |
| 13 | + |
| 14 | + Options: |
| 15 | + -h, --help Display help for the given command. When no command is given display help for the list command |
| 16 | + -q, --quiet Do not output any message |
| 17 | + -V, --version Display this application version |
| 18 | + --ansi Force ANSI output |
| 19 | + --no-ansi Disable ANSI output |
| 20 | + -n, --no-interaction Do not ask any interactive question |
| 21 | + -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug |
| 22 | + |
| 23 | + Available commands: |
| 24 | + help Display help for a command |
| 25 | + list List commands |
| 26 | + demo |
| 27 | + demo:command Demo command description. |
21 | 28 |
|
22 | | -Available commands: |
23 | | - help Display help for a command |
24 | | - list List commands |
25 | | - demo |
26 | | - demo:command Demo command description. |
27 | | -``` |
28 | 29 | 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. |
29 | 30 | For more information, see [laminas-cli documentation](https://docs.laminas.dev/laminas-cli/). |
0 commit comments