Skip to content

Releases: onflow/flow-cli

Version 0.41.3

16 Nov 17:17
1997e14

Choose a tag to compare

⬆️ Install or Upgrade

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

🛠 Improvements

  • Add Dylan as code owner (#696) @sideninja
  • Publish on new version tag (#690) @sideninja
  • Create codeql.yml (#689) @Latkes
  • Update version.txt (#681) @sideninja
  • Add Sandbox Chain ID (#699) @sideninja
  • Release process to two step (#694) @sideninja
  • Create persisted global settings file (#687) @DylanTinianov
  • Security code scanning (#684) @sideninja
  • Remove deprecated flags and arguments (#682) @sideninja
  • Remove contract name for add and update contract commands (#639) @DylanTinianov

Version 0.41.2

24 Oct 14:43
4c196ba

Choose a tag to compare

⬆️ Install or Upgrade

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

🛠 Improvements

  • Flag "--skip-check" added to explicitly avoid checking the latest version and doing extra network requests. This might be useful in cases where performance is important. (#673) @MaxStalker
  • Write errors to standard error output. (#678) @bluesign

🐞 Bug Fixes

  • Use provided ID to retrieve transaction result (#679) @sideninja

Version 0.41.1

13 Oct 17:52
71f721b

Choose a tag to compare

⬆️ Install or Upgrade

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

🛠 Improvements

  • Update dependencies (#674) @sideninja

🐞 Bug Fixes

Version 0.41.0

29 Sep 15:10
c82e69a

Choose a tag to compare

⬆️ Install or Upgrade

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

⭐ Features

Test runner

You can finally feel confident your Cadence code behaves! You are now able to run Cadence tests using the Flow CLI.
Here's an example of a Cadence test:

import Test
pub fun testSimpleScript() {
    var blockchain = Test.newEmulatorBlockchain()
    var result = blockchain.executeScript(
        "pub fun main(a: Int, b: Int): Int { return a + b }",
        [2, 3]
    )
    
    assert(result.status == Test.ResultStatus.succeeded)
    assert((result.returnValue! as! Int) == 5)
}

And then you can simply run it with:

> flow test test_script.cdc
Running tests...
Test results:
- PASS: testSimpleScript

(#640) @SupunS

🛠 Improvements

  • Update CD to go 1.19 (#666) @sideninja

Version 0.40.1

27 Sep 14:43
335acdc

Choose a tag to compare

⬆️ Install or Upgrade

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

🛠 Improvements

Version 0.40.0

16 Sep 10:03
30e91b0

Choose a tag to compare

⬆️ Install or Upgrade

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

⭐ Features

  • Multiple --signer flag support on signing transaction (#654) @bluesign
  • Warning when deploying standard contract to mainnet accidentally (#645) @bluesign
  • Keys generate & derive cleanup, bip44 support for generating (#644) @bluesign
  • BIP44 support for flow.json defined keys (#628) @bluesign

🛠 Improvements

📖 Documentation

Version 0.39.3

23 Aug 17:40
7401e49

Choose a tag to compare

⬆️ Install or Upgrade

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

🛠 Improvements

Version 0.39.2

22 Aug 20:44
e2bd018

Choose a tag to compare

⬆️ Install or Upgrade

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

🛠 Improvements

🐞 Bug Fixes

Version 0.39.1

12 Aug 17:38
441bf42

Choose a tag to compare

⬆️ Install or Upgrade

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

🐞 Bug Fixes

Version 0.39.0

11 Aug 20:09
779fd16

Choose a tag to compare

⬆️ Install or Upgrade

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

⭐ Features

Interactive account creation

Now users can create a new account in emulator, testnet and mainnet with one command flow accounts create. The command will lead users through the steps of

  • creating the public/private key pair
  • saving the private key to a private json file and automatically adding it to .gitignore
  • pairing the public key with the newly created account
    (#538)@sideninja

Enable argument init for add contract

Users can now initialize contracts with arguments for adding and updating contracts, using the format flow accounts add-contract <name> <filename> [<argument> <argument>...] [flags], for example flow accounts add-contract HelloWorld ./contract.cdc Hello 2.

Users can also use args json format, for example flow accounts add-contract HelloWorld ./tx.cdc '[{"type": "String", "value": "Hello"}]' (#589) @sukantoraymond

🛠 Improvements

🐞 Bug Fixes