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
Copy file name to clipboardExpand all lines: craft-cli.md
+1-29Lines changed: 1 addition & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -2,32 +2,4 @@
2
2
3
3
4
4
## Introduction
5
-
Craft is the command line interface shipped with Supercharge. The framework provides a handful of handy console commands that help you build your application. The console application executing the commands is called Craft.
6
-
7
-
If you’re in a Supercharge application, you’ll find a file called `craft`. This file includes the logic to start a console application. Start a console instance and print the list of available commands:
8
-
9
-
```bash
10
-
node craft
11
-
```
12
-
13
-
Craft provides a “help” overview for every command. It shows the command’s details and describes the arguments and options. Append `-h` to a command to display the help overview:
14
-
15
-
```bash
16
-
$ node craft make:route -h
17
-
Usage:
18
-
make:route <filename> [options]
19
-
20
-
Arguments:
21
-
filename Name of your route file
22
-
23
-
Options:
24
-
25
-
About:
26
-
Scaffold a new route
27
-
```
28
-
29
-
30
-
## Creating Commands
31
-
At this point, you can’t create and register your own Craft commands.
32
-
33
-
There’s an open issue asking for your help to [add this functionality](https://github.com/superchargejs/framework/issues/6). Please feel welcome to join the conversation in the issue or submit a pull request.
0 commit comments