Skip to content

Releases: onflow/flow-cli

v2.13.3-prerelease.0

v2.13.3-prerelease.0 Pre-release
Pre-release

Choose a tag to compare

@chasefleming chasefleming released this 29 Dec 03:14
0d194c3

v2.13.2

Choose a tag to compare

@nialexsan nialexsan released this 23 Dec 20:57
0d194c3

What's Changed

Full Changelog: v2.13.0...v2.13.2

v2.13.0

Choose a tag to compare

@jribbink jribbink released this 23 Dec 08:43
c3a5113

What's Changed

New Contributors

Full Changelog: v2.12.0...v2.13.0

v2.12.0

Choose a tag to compare

@github-actions github-actions released this 10 Dec 00:03
a598c19

⬆️ Install or Upgrade

Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.

What's Changed

v2.11.2

Choose a tag to compare

@jribbink jribbink released this 25 Nov 23:22
7ee7c44

What's Changed

  • Skip updating dependencies aliased on another network by @jribbink in #2204

Full Changelog: v2.11.1...v2.11.2

v2.11.1

Choose a tag to compare

@jribbink jribbink released this 20 Nov 17:25
ef336d7

What's Changed

Full Changelog: v2.11.0...v2.11.1

v2.11.0

Choose a tag to compare

@jribbink jribbink released this 20 Nov 03:38

⬆️ 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.

(#2188) @jribbink

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.

(#2180) @chasefleming

Fork Testing Metrics

Added instrumentation and metrics for fork testing operations to help track performance and reliability of forked test sessions.

(#2188) @jribbink

Dependency updates

  • onflow/flow-emulator → v1.12.0v1.13.0
  • onflow/cadence-tools/test → v1.8.1v1.9.1
  • onflow/cadence-tools/languageserver → v1.7.2v1.7.3
  • onflow/cadence-tools/lint → v1.6.1v1.6.2
  • onflow/flow-go-sdk → v1.9.2v1.9.3

(#2188) @jribbink @janezpodhostnik

🐛 Bug Fixes

Typo Fixes

Fixed typos in FLIP template documentation.

(#2189) @efcking

GoReleaser Build

Fixed GitHub Actions release build configuration to ensure proper CLI binary distribution.

(#2190) @jribbink

v2.10.2

Choose a tag to compare

@jribbink jribbink released this 11 Nov 03:25
be55887

What's Changed

Full Changelog: v2.10.1...v2.10.2

v2.10.1

Choose a tag to compare

@github-actions github-actions released this 29 Oct 00:09
4a6ad25

⬆️ Install or Upgrade

Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.

🐞 Bug Fixes

v2.10.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 18:24
3306758

⬆️ Install or Upgrade

Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.

⭐ Features

Fork mode in test framework

flow test --fork lets you run tests against a local snapshot, exercising real contracts and dependencies. Supports optional --fork-height for deterministic runs.

Examples

# Fork latest testnet state for your test run
flow test --fork testnet

# Run against mainnet at a specific block height
flow test --fork mainnet --fork-height 123456789

Docs: Fork Testing Tutorial

(#2131) @jribbink

🛠 Improvements

Emulator forking via --fork

flow emulator --fork <network> starts the emulator from a live network snapshot, exercising real contracts and dependencies. Honors flow.json networks and supports --fork-height.

Examples

# Start emulator by forking testnet
flow emulator --fork testnet

# Fork mainnet at an exact height
flow emulator --fork mainnet --fork-height 123456789

Docs: Emulator Reference Docs

(#2148) @jribbink

Get account by name

Add ability to retrieve accounts by their configured name.
(#2147) @chasefleming

Account output readability

Improve the readability of account command output.
(#2163) @chasefleming

Emulator performance & reliability

Targeted improvements to rate-limit handling and caching for smoother forked sessions.

Security and analysis tooling

Add code analysis and dependency review.
(#2150) @JGowsk9

Fix SAST configuration and checks.
(#2151) @JGowsk9

Related Docs & guides

See Testing Smart Contracts for more details on testing smart contracts on Flow.

Dependency updates

  • onflow/flow-emulatorv1.10.1
  • onflow/cadence-tools/testv1.8.0
  • onflow/flow/protobuf/go/flowv0.4.16

(#2148) @jribbink · (#2131) @jribbink