Skip to content

Releases: onflow/flow-cli

Version 0.41.0

29 Sep 15:10
c82e69a
Compare
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

Version 0.40.1

27 Sep 14:43
335acdc
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

Version 0.38.0

27 Jul 16:39
0095fb2
Compare
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

Transaction signing with remote payload

It's now possible to sign a transaction payload that is fetched from a remote resource. When --from-remote-url flag is used the value needs to be a fully qualified url to transaction RLP Example: flow transaction sign --from-remote-url https://fully/qualified/url --signer alice (#564) @bthaile

🛠 Improvements

📖 Documentation

Version 0.37.6

15 Jul 21:38
604c61a
Compare
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.37.5

15 Jul 17:22
92cd95c
Compare
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

📖 Documentation