Skip to content

Commit ab7054c

Browse files
Add docs from gofiber/fiber@83d702b
1 parent ac51599 commit ab7054c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

β€Ždocs/core/whats_new.mdβ€Ž

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ We are excited to announce the release of Fiber v3! πŸš€
1313

1414
In this guide, we'll walk you through the most important changes in Fiber `v3` and show you how to migrate your existing Fiber `v2` applications to Fiber `v3`.
1515

16+
### πŸ› οΈ Migration tool
17+
18+
Fiber v3 introduces a CLI-powered migration helper. Install the CLI and let
19+
it update your project automatically:
20+
21+
```bash
22+
go install github.com/gofiber/cli/fiber@latest
23+
fiber migrate --to 3.0.0
24+
```
25+
26+
See the [migration guide](#-migration-guide) for more details and options.
27+
1628
Here's a quick overview of the changes in Fiber `v3`:
1729

1830
- [πŸš€ App](#-app)
@@ -1403,6 +1415,20 @@ func main() {
14031415

14041416
## πŸ“‹ Migration guide
14051417

1418+
To streamline upgrades between Fiber versions, the Fiber CLI ships with a
1419+
`migrate` command:
1420+
1421+
```bash
1422+
go install github.com/gofiber/cli/fiber@latest
1423+
fiber migrate --to 3.0.0
1424+
```
1425+
1426+
### Options
1427+
1428+
- `-t, --to string` migrate to a specific version, e.g. `3.0.0`
1429+
- `-f, --force` force migration even if already on that version
1430+
- `-s, --skip_go_mod` skip running `go mod tidy`, `go mod download`, and `go mod vendor`
1431+
14061432
- [πŸš€ App](#-app-1)
14071433
- [🎣 Hooks](#-hooks-1)
14081434
- [πŸš€ Listen](#-listen-1)

0 commit comments

Comments
Β (0)