Skip to content

Commit c739fad

Browse files
chore(main): release 21.0.0 (#7241)
* chore(main): release 21.0.0 * docs(changelog): add more detail to v21.0.0 --------- Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com> Co-authored-by: Philippe Serhal <[email protected]>
1 parent 9545bdc commit c739fad

File tree

3 files changed

+94
-4
lines changed

3 files changed

+94
-4
lines changed

CHANGELOG.md

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,101 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
99

10+
11+
## [21.0.0](https://github.com/netlify/cli/compare/v20.1.1...v21.0.0) (2025-05-06)
12+
13+
14+
### ⚠ BREAKING CHANGES
15+
16+
* 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`.
88+
1089
### Features
1190

12-
* add integration deploy command ([#6078](https://github.com/netlify/cli/issues/6078)) ([aa9b0be](https://github.com/netlify/cli/commit/aa9b0be3b6f91df45e136cbdca3a92f7a04a0d7e))
91+
* 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))
1395

1496

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))
15105

16106
## [20.1.1](https://github.com/netlify/cli/compare/v20.1.0...v20.1.1) (2025-04-25)
17107

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "netlify-cli",
33
"description": "Netlify command line tool",
4-
"version": "20.1.1",
4+
"version": "21.0.0",
55
"author": "Netlify Inc.",
66
"type": "module",
77
"engines": {

0 commit comments

Comments
 (0)