Skip to content

Commit 6d6531a

Browse files
authored
feat: add kebab-case options to cli flags (#5395)
* feat: add kebab-case options to cli flags - first example * feat: remove option_deprecation functions and just leave old options * docs: update docs * fix: add --http-proxy-certificate-filename and hide --httpProxyCertificateFilename * fix: add --prod-if-unlocked and hide --prodIfUnlocked for deploy * fix: add --git-remote-name and hide --gitRemoteName for init and link * fix: add --replace-existing and hide --replaceExisting from env-import * fix: add --target-port and hide --targetPort for dev * fix: add --session-id and hide --sessionId for dev * fix: add --functions-port and hide --functionsPort for dev and serve * fix: add --edge-inspect-brk and hide --edgeInspectBrk from dev * fix: add --edge-inspect and hide --edgeInspect to dev
1 parent 87adddc commit 6d6531a

32 files changed

+251
-165
lines changed

docs/commands/addons.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ netlify addons
2222
**Flags**
2323

2424
- `debug` (*boolean*) - Print debugging information
25-
- `httpProxy` (*string*) - Proxy server address to route requests through.
26-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
25+
- `http-proxy` (*string*) - Proxy server address to route requests through.
26+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
2727

2828
| Subcommand | description |
2929
|:--------------------------- |:-----|
@@ -62,8 +62,8 @@ netlify addons:auth
6262
**Flags**
6363

6464
- `debug` (*boolean*) - Print debugging information
65-
- `httpProxy` (*string*) - Proxy server address to route requests through.
66-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
65+
- `http-proxy` (*string*) - Proxy server address to route requests through.
66+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
6767

6868
---
6969
## `addons:config`
@@ -83,8 +83,8 @@ netlify addons:config
8383
**Flags**
8484

8585
- `debug` (*boolean*) - Print debugging information
86-
- `httpProxy` (*string*) - Proxy server address to route requests through.
87-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
86+
- `http-proxy` (*string*) - Proxy server address to route requests through.
87+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
8888

8989
---
9090
## `addons:create`
@@ -105,8 +105,8 @@ netlify addons:create
105105
**Flags**
106106

107107
- `debug` (*boolean*) - Print debugging information
108-
- `httpProxy` (*string*) - Proxy server address to route requests through.
109-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
108+
- `http-proxy` (*string*) - Proxy server address to route requests through.
109+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
110110

111111
---
112112
## `addons:delete`
@@ -128,8 +128,8 @@ netlify addons:delete
128128

129129
- `force` (*boolean*) - delete without prompting (useful for CI)
130130
- `debug` (*boolean*) - Print debugging information
131-
- `httpProxy` (*string*) - Proxy server address to route requests through.
132-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
131+
- `http-proxy` (*string*) - Proxy server address to route requests through.
132+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
133133

134134
---
135135
## `addons:list`
@@ -146,8 +146,8 @@ netlify addons:list
146146

147147
- `json` (*boolean*) - Output add-on data as JSON
148148
- `debug` (*boolean*) - Print debugging information
149-
- `httpProxy` (*string*) - Proxy server address to route requests through.
150-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
149+
- `http-proxy` (*string*) - Proxy server address to route requests through.
150+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
151151

152152
---
153153

docs/commands/api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ netlify api
2323
**Flags**
2424

2525
- `data` (*string*) - Data to use
26-
- `list` (*boolean*) - List out available API methods
2726
- `debug` (*boolean*) - Print debugging information
28-
- `httpProxy` (*string*) - Proxy server address to route requests through.
29-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
27+
- `http-proxy` (*string*) - Proxy server address to route requests through.
28+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
29+
- `list` (*boolean*) - List out available API methods
3030

3131
**Examples**
3232

docs/commands/build.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ netlify build
1919
- `dry` (*boolean*) - Dry run: show instructions without running them
2020
- `offline` (*boolean*) - disables any features that require network access
2121
- `debug` (*boolean*) - Print debugging information
22-
- `httpProxy` (*string*) - Proxy server address to route requests through.
23-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
22+
- `http-proxy` (*string*) - Proxy server address to route requests through.
23+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
2424

2525
**Examples**
2626

docs/commands/completion.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ netlify completion
1818
**Flags**
1919

2020
- `debug` (*boolean*) - Print debugging information
21-
- `httpProxy` (*string*) - Proxy server address to route requests through.
22-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
21+
- `http-proxy` (*string*) - Proxy server address to route requests through.
22+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
2323

2424
| Subcommand | description |
2525
|:--------------------------- |:-----|
@@ -46,8 +46,8 @@ netlify completion:install
4646
**Flags**
4747

4848
- `debug` (*boolean*) - Print debugging information
49-
- `httpProxy` (*string*) - Proxy server address to route requests through.
50-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
49+
- `http-proxy` (*string*) - Proxy server address to route requests through.
50+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
5151

5252
---
5353

docs/commands/deploy.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ netlify deploy
9393
- `message` (*string*) - A short message to include in the deploy log
9494
- `open` (*boolean*) - Open site after deploy
9595
- `prod` (*boolean*) - Deploy to production
96-
- `prodIfUnlocked` (*boolean*) - Deploy to production if unlocked, create a draft otherwise
96+
- `prod-if-unlocked` (*boolean*) - Deploy to production if unlocked, create a draft otherwise
9797
- `site` (*string*) - A site name or ID to deploy to
9898
- `skip-functions-cache` (*boolean*) - Ignore any functions created as part of a previous `build` or `deploy` commands, forcing them to be bundled again as part of the deployment
9999
- `timeout` (*string*) - Timeout to wait for deployment to finish
100-
- `trigger` (*boolean*) - Trigger a new build of your site on Netlify without uploading local files
101100
- `debug` (*boolean*) - Print debugging information
102-
- `httpProxy` (*string*) - Proxy server address to route requests through.
103-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
101+
- `http-proxy` (*string*) - Proxy server address to route requests through.
102+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
103+
- `trigger` (*boolean*) - Trigger a new build of your site on Netlify without uploading local files
104104

105105
**Examples**
106106

@@ -109,7 +109,7 @@ netlify deploy
109109
netlify deploy --site my-first-site
110110
netlify deploy --prod
111111
netlify deploy --prod --open
112-
netlify deploy --prodIfUnlocked
112+
netlify deploy --prod-if-unlocked
113113
netlify deploy --message "A message with an $ENV_VAR"
114114
netlify deploy --auth $NETLIFY_AUTH_TOKEN
115115
netlify deploy --trigger

docs/commands/dev.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ netlify dev
2121
- `context` (*string*) - Specify a deploy context or branch for environment variables (contexts: "production", "deploy-preview", "branch-deploy", "dev")
2222
- `country` (*string*) - Two-letter country code (https://ntl.fyi/country-codes) to use as mock geolocation (enables --geo=mock automatically)
2323
- `dir` (*string*) - dir with static files
24-
- `edgeInspect` (*string*) - enable the V8 Inspector Protocol for Edge Functions, with an optional address in the host:port format
25-
- `edgeInspectBrk` (*string*) - enable the V8 Inspector Protocol for Edge Functions and pause execution on the first line of code, with an optional address in the host:port format
24+
- `edge-inspect` (*string*) - enable the V8 Inspector Protocol for Edge Functions, with an optional address in the host:port format
25+
- `edge-inspect-brk` (*string*) - enable the V8 Inspector Protocol for Edge Functions and pause execution on the first line of code, with an optional address in the host:port format
2626
- `framework` (*string*) - framework to use. Defaults to #auto which automatically detects a framework
2727
- `functions` (*string*) - specify a functions folder to serve
28-
- `functionsPort` (*string*) - port of functions server
28+
- `functions-port` (*string*) - port of functions server
2929
- `geo` (*cache | mock | update*) - force geolocation data to be updated, use cached data from the last 24h if found, or use a mock location
3030
- `live` (*boolean*) - start a public live session
3131
- `offline` (*boolean*) - disables any features that require network access
3232
- `port` (*string*) - port of netlify dev
33-
- `sessionId` (*string*) - (Graph) connect to cloud session with ID [sessionId]
34-
- `targetPort` (*string*) - port of target app server
33+
- `session-id` (*string*) - (Graph) connect to cloud session with ID [sessionId]
34+
- `target-port` (*string*) - port of target app server
3535
- `debug` (*boolean*) - Print debugging information
36-
- `httpProxy` (*string*) - Proxy server address to route requests through.
37-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
36+
- `http-proxy` (*string*) - Proxy server address to route requests through.
37+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
3838

3939
| Subcommand | description |
4040
|:--------------------------- |:-----|
@@ -46,13 +46,13 @@ netlify dev
4646
```bash
4747
netlify dev
4848
netlify dev -d public
49-
netlify dev -c "hugo server -w" --targetPort 1313
49+
netlify dev -c "hugo server -w" --target-port 1313
5050
netlify dev --context production
5151
netlify dev --graph
52-
netlify dev --edgeInspect
53-
netlify dev --edgeInspect=127.0.0.1:9229
54-
netlify dev --edgeInspectBrk
55-
netlify dev --edgeInspectBrk=127.0.0.1:9229
52+
netlify dev --edge-inspect
53+
netlify dev --edge-inspect=127.0.0.1:9229
54+
netlify dev --edge-inspect-brk
55+
netlify dev --edge-inspect-brk=127.0.0.1:9229
5656
BROWSER=none netlify dev # disable browser auto opening
5757
```
5858

@@ -76,8 +76,8 @@ netlify dev:exec
7676

7777
- `context` (*string*) - Specify a deploy context or branch for environment variables (contexts: "production", "deploy-preview", "branch-deploy", "dev")
7878
- `debug` (*boolean*) - Print debugging information
79-
- `httpProxy` (*string*) - Proxy server address to route requests through.
80-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
79+
- `http-proxy` (*string*) - Proxy server address to route requests through.
80+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
8181

8282
**Examples**
8383

docs/commands/env.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ netlify env
1717
**Flags**
1818

1919
- `debug` (*boolean*) - Print debugging information
20-
- `httpProxy` (*string*) - Proxy server address to route requests through.
21-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
20+
- `http-proxy` (*string*) - Proxy server address to route requests through.
21+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
2222

2323
| Subcommand | description |
2424
|:--------------------------- |:-----|
@@ -55,10 +55,10 @@ netlify env:clone
5555
**Flags**
5656

5757
- `from` (*string*) - Site ID (From)
58-
- `to` (*string*) - Site ID (To)
5958
- `debug` (*boolean*) - Print debugging information
60-
- `httpProxy` (*string*) - Proxy server address to route requests through.
61-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
59+
- `http-proxy` (*string*) - Proxy server address to route requests through.
60+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
61+
- `to` (*string*) - Site ID (To)
6262

6363
**Examples**
6464

@@ -85,10 +85,10 @@ netlify env:get
8585
**Flags**
8686

8787
- `context` (*string*) - Specify a deploy context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev")
88-
- `scope` (*builds | functions | post-processing | runtime | any*) - Specify a scope
8988
- `debug` (*boolean*) - Print debugging information
90-
- `httpProxy` (*string*) - Proxy server address to route requests through.
91-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
89+
- `http-proxy` (*string*) - Proxy server address to route requests through.
90+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
91+
- `scope` (*builds | functions | post-processing | runtime | any*) - Specify a scope
9292

9393
**Examples**
9494

@@ -116,10 +116,10 @@ netlify env:import
116116

117117
**Flags**
118118

119-
- `replaceExisting` (*boolean*) - Replace all existing variables instead of merging them with the current ones
119+
- `replace-existing` (*boolean*) - Replace all existing variables instead of merging them with the current ones
120120
- `debug` (*boolean*) - Print debugging information
121-
- `httpProxy` (*string*) - Proxy server address to route requests through.
122-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
121+
- `http-proxy` (*string*) - Proxy server address to route requests through.
122+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
123123

124124
---
125125
## `env:list`
@@ -135,12 +135,12 @@ netlify env:list
135135
**Flags**
136136

137137
- `context` (*string*) - Specify a deploy context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev")
138+
- `debug` (*boolean*) - Print debugging information
139+
- `http-proxy` (*string*) - Proxy server address to route requests through.
140+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
138141
- `json` (*boolean*) - Output environment variables as JSON
139142
- `plain` (*boolean*) - Output environment variables as plaintext
140143
- `scope` (*builds | functions | post-processing | runtime | any*) - Specify a scope
141-
- `debug` (*boolean*) - Print debugging information
142-
- `httpProxy` (*string*) - Proxy server address to route requests through.
143-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
144144

145145
**Examples**
146146

@@ -171,10 +171,10 @@ netlify env:set
171171
**Flags**
172172

173173
- `context` (*string*) - Specify a deploy context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev") (default: all contexts)
174-
- `scope` (*builds | functions | post-processing | runtime*) - Specify a scope (default: all scopes)
175174
- `debug` (*boolean*) - Print debugging information
176-
- `httpProxy` (*string*) - Proxy server address to route requests through.
177-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
175+
- `http-proxy` (*string*) - Proxy server address to route requests through.
176+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
177+
- `scope` (*builds | functions | post-processing | runtime*) - Specify a scope (default: all scopes)
178178

179179
**Examples**
180180

@@ -205,8 +205,8 @@ netlify env:unset
205205

206206
- `context` (*string*) - Specify a deploy context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev") (default: all contexts)
207207
- `debug` (*boolean*) - Print debugging information
208-
- `httpProxy` (*string*) - Proxy server address to route requests through.
209-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
208+
- `http-proxy` (*string*) - Proxy server address to route requests through.
209+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
210210

211211
**Examples**
212212

docs/commands/functions.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ netlify functions
1818
**Flags**
1919

2020
- `debug` (*boolean*) - Print debugging information
21-
- `httpProxy` (*string*) - Proxy server address to route requests through.
22-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
21+
- `http-proxy` (*string*) - Proxy server address to route requests through.
22+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
2323

2424
| Subcommand | description |
2525
|:--------------------------- |:-----|
@@ -51,10 +51,10 @@ netlify functions:build
5151
**Flags**
5252

5353
- `functions` (*string*) - Specify a functions directory to build to
54-
- `src` (*string*) - Specify the source directory for the functions
5554
- `debug` (*boolean*) - Print debugging information
56-
- `httpProxy` (*string*) - Proxy server address to route requests through.
57-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
55+
- `http-proxy` (*string*) - Proxy server address to route requests through.
56+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
57+
- `src` (*string*) - Specify the source directory for the functions
5858

5959
---
6060
## `functions:create`
@@ -73,12 +73,12 @@ netlify functions:create
7373

7474
**Flags**
7575

76-
- `language` (*string*) - function language
7776
- `name` (*string*) - function name
78-
- `url` (*string*) - pull template from URL
7977
- `debug` (*boolean*) - Print debugging information
80-
- `httpProxy` (*string*) - Proxy server address to route requests through.
81-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
78+
- `http-proxy` (*string*) - Proxy server address to route requests through.
79+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
80+
- `language` (*string*) - function language
81+
- `url` (*string*) - pull template from URL
8282

8383
**Examples**
8484

@@ -110,11 +110,11 @@ netlify functions:invoke
110110
- `name` (*string*) - function name to invoke
111111
- `no-identity` (*boolean*) - simulate Netlify Identity authentication JWT. pass --no-identity to affirm unauthenticated request
112112
- `payload` (*string*) - Supply POST payload in stringified json, or a path to a json file
113-
- `port` (*string*) - Port where netlify dev is accessible. e.g. 8888
114113
- `querystring` (*string*) - Querystring to add to your function invocation
115114
- `debug` (*boolean*) - Print debugging information
116-
- `httpProxy` (*string*) - Proxy server address to route requests through.
117-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
115+
- `http-proxy` (*string*) - Proxy server address to route requests through.
116+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
117+
- `port` (*string*) - Port where netlify dev is accessible. e.g. 8888
118118

119119
**Examples**
120120

@@ -146,10 +146,10 @@ netlify functions:list
146146
**Flags**
147147
148148
- `functions` (*string*) - Specify a functions directory to list
149-
- `json` (*boolean*) - Output function data as JSON
150149
- `debug` (*boolean*) - Print debugging information
151-
- `httpProxy` (*string*) - Proxy server address to route requests through.
152-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
150+
- `http-proxy` (*string*) - Proxy server address to route requests through.
151+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
152+
- `json` (*boolean*) - Output function data as JSON
153153
154154
---
155155
## `functions:serve`
@@ -165,11 +165,11 @@ netlify functions:serve
165165
**Flags**
166166
167167
- `functions` (*string*) - Specify a functions directory to serve
168+
- `debug` (*boolean*) - Print debugging information
169+
- `http-proxy` (*string*) - Proxy server address to route requests through.
170+
- `http-proxy-certificate-filename` (*string*) - Certificate file to use when connecting using a proxy server
168171
- `offline` (*boolean*) - disables any features that require network access
169172
- `port` (*string*) - Specify a port for the functions server
170-
- `debug` (*boolean*) - Print debugging information
171-
- `httpProxy` (*string*) - Proxy server address to route requests through.
172-
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server
173173
174174
---
175175

0 commit comments

Comments
 (0)