* Get usage of the CLI tool.
()
| 412 | * Get usage of the CLI tool. |
| 413 | */ |
| 414 | function getUsage(): string { |
| 415 | return ` |
| 416 | schematics [collection-name:]schematic-name [options, ...] |
| 417 | |
| 418 | By default, if the collection name is not specified, use the internal collection provided |
| 419 | by the Schematics CLI. |
| 420 | |
| 421 | Options: |
| 422 | --debug Debug mode. This is true by default if the collection is a relative |
| 423 | path (in that case, turn off with --debug=false). |
| 424 | |
| 425 | --allow-private Allow private schematics to be run from the command line. Default to |
| 426 | false. |
| 427 | |
| 428 | --dry-run Do not output anything, but instead just show what actions would be |
| 429 | performed. Default to true if debug is also true. |
| 430 | |
| 431 | --force Force overwriting files that would otherwise be an error. |
| 432 | |
| 433 | --list-schematics List all schematics from the collection, by name. A collection name |
| 434 | should be suffixed by a colon. Example: '@angular-devkit/schematics-cli:'. |
| 435 | |
| 436 | --no-interactive Disables interactive input prompts. |
| 437 | |
| 438 | --verbose Show more information. |
| 439 | |
| 440 | --help Show this message. |
| 441 | |
| 442 | Any additional option is passed to the Schematics depending on its schema. |
| 443 | `; |
| 444 | } |
| 445 | |
| 446 | const CLI_OPTION_DEFINITIONS = { |
| 447 | 'allow-private': { type: 'boolean' }, |