Releases: onflow/flow-cli
v2.12.0
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
What's Changed
- Include
mainnet-forkin defaultflow.json(#2220) @jribbink - Update
flow devdeprecation message (#2219) @chasefleming - Fix nested paths in
flow cadence lint(#2213) @jribbink - Bump github.com/onflow/flow-evm-gateway from 1.4.2 to 1.4.3 (#2216) @dependabot
- refactor: replace interface{} with any for clarity and modernization (#2205) @bigmoonbit
- Bump github.com/spf13/cobra from 1.10.1 to 1.10.2 (#2217) @dependabot
- Update to Cadence v1.8.7 (#2215) @jribbink
- Bump github.com/getsentry/sentry-go from 0.39.0 to 0.40.0 (#2206) @dependabot
- Bump github.com/onflow/fcl-dev-wallet from 0.8.0 to 0.9.1 (#2208) @dependabot
- Bump github.com/getsentry/sentry-go from 0.36.2 to 0.39.0 (#2195) @dependabot
- Bump golang.org/x/term from 0.36.0 to 0.37.0 (#2197) @dependabot
- Bump actions/checkout from 5 to 6 (#2200) @dependabot
- Bump actions/setup-go from 5 to 6 (#2201) @dependabot
- Include system transactions in
flow blocks get <txid> --include transactions(#2211) @jribbink - Support Cadence import aliasing in Dependency Manager (#2192) @chasefleming
- Allow
flow cadence lintwith empty args (#2212) @jribbink
v2.11.2
v2.11.1
v2.11.0
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
⭐ Features
Inline Fork Testing with #test_fork Pragma
The Cadence Test Framework now supports the #test_fork pragma, enabling inline fork testing directly in your test files. Fork a network snapshot for individual test functions without needing separate CLI flags.
Example:
// Test swapping on IncrementFi by forking mainnet
#test_fork(mainnet)
access(all) fun testIncrementFiSwap() {
// ... test swap logic with live contract dependencies
}The DeFi Actions scaffold (flow init) includes a ready-to-use IncrementFi fork test example showcasing this new capability.
Full Scheduled Transaction Support
The Flow Emulator and Cadence Test Framework now support scheduled transactions, including all the latest scheduled callback features live (or coming soon) on mainnet. Test time-based logic and deferred execution end-to-end in your local environment.
(#2188) @jribbink @janezpodhostnik
🛠 Improvements
Execution Effort Recalibration (FLIP 346)
The Flow Emulator and Test Framework now support the updated execution effort weights from FLIP 346, which recalibrates transaction metering to better align with actual computational costs. This delivers fairer pricing and stronger network stability.
Key improvements:
- Flow token transfer: 27 → 19 computation (30% reduction)
- NFT transfer: 48 → 26 computation (46% reduction)
- EVM token transfer: 143 → 28 computation (80% reduction)
- EVM gas capacity: 50M → 220M gas per transaction
- 99.995% of existing transactions remain compatible
This change improves fee fairness, reduces costs for common operations, and strengthens network resilience against resource exhaustion attacks.
(#2188) @jribbink @janezpodhostnik
Compute Limit Terminology
Updated terminology from "gas limit" to "compute limit" to better reflect Flow's resource metering model. This change affects CLI output and messaging, aligning with FLIP 346's execution effort recalibration.
Fork Testing Metrics
Added instrumentation and metrics for fork testing operations to help track performance and reliability of forked test sessions.
Dependency updates
- onflow/flow-emulator → v1.12.0 → v1.13.0
- onflow/cadence-tools/test → v1.8.1 → v1.9.1
- onflow/cadence-tools/languageserver → v1.7.2 → v1.7.3
- onflow/cadence-tools/lint → v1.6.1 → v1.6.2
- onflow/flow-go-sdk → v1.9.2 → v1.9.3
(#2188) @jribbink @janezpodhostnik
🐛 Bug Fixes
Typo Fixes
Fixed typos in FLIP template documentation.
GoReleaser Build
Fixed GitHub Actions release build configuration to ensure proper CLI binary distribution.