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
{{ message }}
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,6 @@ USAGE
38
38
OPTIONS
39
39
-c, --cmd=cmd command to run
40
40
-d, --devport=devport port of the dev server started by command
41
-
-d, --dir=dir dir with static files
42
41
-f, --functions=functions Specify a functions folder to serve
43
42
-o, --offline disables any features that require network access
44
43
-p, --port=port port of netlify dev
@@ -69,14 +68,13 @@ The order of precedence for applying redirect rules is:
69
68
70
69
See the [Redirects Documentation](https://www.netlify.com/docs/redirects/) for more information on Netlify's redirect and proxying capabilities.
71
70
72
-
73
71
#### Running the project and accessing redirects
72
+
74
73
```bash
75
74
# Build, serve and hot-reload changes
76
75
$ netlify dev
77
76
```
78
77
79
-
80
78
### Project detection
81
79
82
80
Netlify Dev will attempt to detect the SSG or build command that you are using, and run these on your behalf, while adding other development utilities.
@@ -91,14 +89,13 @@ The number of project types which Netlify Dev can detect is growing, but if your
91
89
92
90
```
93
91
94
-
95
92
### Netlify Functions
96
93
97
94
Netlify can also create serverless functions for you locally as part of Netlify Functions. The serverless functions can then be run by Netlify Dev in the same way that wold be when deployed to the cloud.
98
95
99
96
A number of function templates are available to get you started, and you can add your own utility functions to suit your own project development needs.
100
97
101
-
Create a new function
98
+
Create a new function
102
99
103
100
```bash
104
101
$ netlify functions:create
@@ -113,13 +110,9 @@ $ netlify functions:create
113
110
114
111
# Create a new function with a given name
115
112
$ netlify functions:create hello-world
116
-
# or
113
+
# or
117
114
$ netlify functions:create --name hello-world
118
115
119
-
# Create a new function in a subdirectory
120
-
# rather than as a single file
121
-
$ netlify functions:create hello-world --dir
122
-
123
116
# Create a new function by cloning a template from a remote url
124
117
# organised with dependencies installed into a subdirectory
0 commit comments