File tree 1 file changed +16
-2
lines changed
packages/@sanity/core/src/commands/start
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
import lazyRequire from '@sanity/util/lib/lazyRequire'
2
2
3
+ const helpText = `
4
+ Notes
5
+ Changing the hostname or port number might require a new CORS-entry to be added.
6
+
7
+ Options
8
+ --port <port> TCP port to start server on. [default: 3333]
9
+ --host <host> The local network interface at which to listen. [default: "127.0.0.1"]
10
+
11
+ Examples
12
+ sanity start --host=0.0.0.0
13
+ sanity start --port=1942
14
+ `
15
+
3
16
export default {
4
17
name : 'start' ,
5
- signature : '' ,
18
+ signature : '[--port <port>] [--host <host>] ' ,
6
19
description : 'Starts a webserver that serves Sanity' ,
7
- action : lazyRequire ( require . resolve ( '../../actions/start/startAction' ) )
20
+ action : lazyRequire ( require . resolve ( '../../actions/start/startAction' ) ) ,
21
+ helpText
8
22
}
You can’t perform that action at this time.
0 commit comments