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
* remove support for deprecated `netlify-lambda` package ([#7236](https://github.com/netlify/cli/issues/7236))
17
+
18
+
[The netlify-lambda NPM package](https://github.com/netlify/netlify-lambda) was deprecated in Feb 2023. If you are one of the few using this, see the [migration guide](https://github.com/netlify/netlify-lambda/blob/main/MIGRATE.md).
19
+
20
+
### ⚠ Potentially breaking changes
21
+
22
+
#### run build before deploy ([#7195](https://github.com/netlify/cli/issues/7195))
23
+
24
+
The `deploy` command now runs the site's configured `build` command before deployment by default. Previously, this was achieved by passing the `--build` flag. In other words, `--build` is no longer needed.
25
+
26
+
To opt into the previous default behavior, users can now specify `netlify deploy --no-build`.
27
+
28
+
👉🏼 _Why are we changing this?_
29
+
30
+
This has long been one of the most common sources of confusion with the Netlify CLI. Developers expect a "deploy" command to deploy their project. We're making this change to follow the Principle of Least Surprise and streamline the experience for new users.
31
+
32
+
**Upgrading**
33
+
34
+
👉🏼 (most common) Build and deploy
35
+
36
+
Remove the `--build` flag:
37
+
38
+
```sh
39
+
netlify deploy --build [...] # before
40
+
```
41
+
→
42
+
```sh
43
+
netlify deploy [...] # after
44
+
```
45
+
46
+
👉🏼 Separate build and deploy
47
+
48
+
> [!WARNING]
49
+
> Make sure your deploy command runs in your expected environment, e.g. if you were running `FOO=bar netlify build && netlify deploy`, make sure `FOO` is visible to the deploy command, which is now running the build: `FOO=bar netlify deploy`.
50
+
51
+
Collapse into one command, if you can:
52
+
53
+
```sh
54
+
netlify build && netlify deploy # before
55
+
```
56
+
→
57
+
```sh
58
+
netlify deploy # after
59
+
```
60
+
61
+
Otherwise, add the `--no-build` flag:
62
+
63
+
```sh
64
+
make spaghetti && netlify deploy # before
65
+
```
66
+
→
67
+
```sh
68
+
make spaghetti && netlify deploy --no-build # after
69
+
```
70
+
71
+
👉🏼 (rare) Deploy without build step
72
+
73
+
Add the `--no-build` flag:
74
+
75
+
```sh
76
+
netlify deploy [...] # before (there was no `--build` here)
77
+
```
78
+
→
79
+
```sh
80
+
netlify deploy --no-build [...]
81
+
```
82
+
83
+
#### polish and improve deploy command output ([#7250](https://github.com/netlify/cli/issues/7250)) ([795a451](https://github.com/netlify/cli/commit/795a4516bc12bf60fba05eda73215d937f062194))
84
+
85
+
If you were automatically looking for specific strings in the `netlify deploy` output, your scripts may stop working. See the above PR for details.
86
+
87
+
Note that this is not recommended and such changes may not be considered breaking in the future. For stable output that conforms to semantic versioning, use `netlify deploy --json`.
* link out to relevant Netlify docs in command help output ([#7254](https://github.com/netlify/cli/issues/7254)) ([1978faf](https://github.com/netlify/cli/commit/1978faf6ca59e128449a462292f3a13b328c8f2a))
92
+
* remove support for deprecated `netlify-lambda` package ([#7236](https://github.com/netlify/cli/issues/7236)) ([0d48c28](https://github.com/netlify/cli/commit/0d48c284ea0c6b6d3d34ffb72dd8bd93a85b7ed6))
93
+
* run build before deploy ([#7195](https://github.com/netlify/cli/issues/7195)) ([8e95c58](https://github.com/netlify/cli/commit/8e95c58c51677d56ea8a6ba3a428e292576d1c75))
94
+
* **telemetry:** send command opts and args ([#7251](https://github.com/netlify/cli/issues/7251)) ([9545bdc](https://github.com/netlify/cli/commit/9545bdc9689952c1131153591342d3859e0b2715))
13
95
14
96
97
+
### Bug Fixes
98
+
99
+
* **deploy:** remove messages about future deprecated flag removals ([#7252](https://github.com/netlify/cli/issues/7252)) ([758fd88](https://github.com/netlify/cli/commit/758fd884ad46864f4731604a93a9cd0f496df354))
100
+
* **deps:** update dependency @netlify/edge-functions to v2.12.0 ([#7239](https://github.com/netlify/cli/issues/7239)) ([5d70c98](https://github.com/netlify/cli/commit/5d70c989562df4918c9c1dcfcfa0d2192f130a5a))
101
+
* **dev:** polish and improve dev command output ([#7249](https://github.com/netlify/cli/issues/7249)) ([7a5b7c0](https://github.com/netlify/cli/commit/7a5b7c0efefc761a26c449e3545d8f8e216cf18b))
102
+
* fix framework server loading spinner ("Waiting for framework port") ([#7242](https://github.com/netlify/cli/issues/7242)) ([841d782](https://github.com/netlify/cli/commit/841d782e851fd1672febd1db5be2b3e94982f588))
103
+
* polish and improve deploy command output ([#7250](https://github.com/netlify/cli/issues/7250)) ([795a451](https://github.com/netlify/cli/commit/795a4516bc12bf60fba05eda73215d937f062194))
104
+
* polish and improve postinstall onboarding message ([#7248](https://github.com/netlify/cli/issues/7248)) ([d9523c7](https://github.com/netlify/cli/commit/d9523c72ffcd8869b05a2e982d30fed44ce600bd))
0 commit comments