Skip to content

Releases: onflow/flow-cli

Version 0.29.0

26 Nov 15:10
c89b027
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.

💥 Breaking Changes

Updated Dependencies

  • Updated to new major Cadence version 0.20.1
  • Updated to Flow emulator version 0.26.0

⭐ Features

Hot commands

Implemented by the community FLIP Fest: (#406) @sakshamb2113 🙌
This feature allows you to quickly execute most common CLI commands such as deploy, init and run. The run command starts the emulator and deploys all the contracts for the project. Read more about it in the docs

Usage:
flow [command]

Hot Commands:

deploy       Deploy all project contracts
init         Initialize a new configuration
run          Start emulator and deploy all project contracts

🛠 Improvements

Tests

More state loader tests were added (#412) @sideninja

Version 0.28.4

09 Nov 19:14
a453244
Compare
Choose a tag to compare

⭐ Features

New Signature Command
A new signature command was added giving you capabilities to sign an arbitrary message with an account saved in the flow.json configuration and to validate a signature of a message using those same accounts. You can easily use the command by running: flow signatures generate|verify. Read more about it in the documentation. (#390) @sideninja

🛠 Improvements

Transaction Signing Check
During transaction signing the check is performed whether the signer provided is a correct one. (#382) @sideninja

Update dependencies

  • Updated flow-emulator dependency (#408) @sideninja
  • Update third-library dependencies (#396) @sideninja

Maintenance

  • Change the default event range for batch to 25 from 250 (#397) @ph0ph0

🐞 Bug Fixes

Event Fetching Fix
Don't overflow block range calculation when the last block is smaller than the end range block (#392) @sideninja

📖 Documentation

  • Update emulator documentation (#403) @sideninja

Version 0.28.3

22 Sep 17:37
ff1f8b1
Compare
Choose a tag to compare

🛠 Improvements

Tests

Add more tests for transaction imports.
(#370) @sideninja

Missing Include Flag

Implemented by the community: @tuommaki 🙌
Transaction sign command was missing the include flag and this was now fixed achieving better consistency across transactions commands.

🐞 Bug Fixes

Fix Config Syntax Error Handling

The error was wrongly reported if a configuration had a syntax error.
(#378) @sideninja

📖 Documentation

Improve Documentation with Examples

Add examples for building complex transactions with multiple authorizers and containing different accounts in the signing process.
(#389) @sideninja

Version 0.28.2

30 Aug 10:38
695f303
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

Default Gas Limit

The transaction gas limit is required and all CLI transactions now include the default maximum gas limit (of 9999).

Version 0.28.1

26 Aug 11:05
5ea9616
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

Inferred Argument Types Fix

The latest feature for inferring argument types introduced a bug when importing contracts. This bugfix resolves the issue.

Version 0.28.0

25 Aug 13:39
3f2cabb
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

Block Transaction IDs

Fetching a block didn't include transaction IDs when using the --include transactions flag due to a regression in the command layer.

Script Execution Error

Implemented by the community: @bjartek 🙌

Script execution error wasn't returned when using hosted gateway implementation.

Parsing Boolean in Configuration

Implemented by the community: @bluesign 🙌

Parsing booleans in the flow configuration deployment arguments weren't working properly. This bugfix addresses that problem and allows you to pass boolean type in the args section such as:

...
"args": [
    {"type": "Bool", "value": true}
]
...

Cross-referencing Composed Configuration

Cross-referencing values in the composed configuration wasn't working correctly as the validation was done per configuration instead on the higher level on the composed configuration.

🛠 Improvements

Arguments Without Types

Implemented by the community: @bluesign 🙌

Great improvement to the argument parsing. CLI now infers types from transaction parameters and script parameters, so it's not needed anymore to specify the type explicitly. This new improvement also supports passing arrays and dictionaries.

The new command format is:

flow scripts execute <filename> [<argument> <argument> ...] [flags]

Example:

> flow scripts execute script.cdc "Meow" "Woof"

In the example above the string, type is inferred from the script source code.

More complex example:

> flow transactions send tx1.cdc Foo 1 2 10.9 0x1 '[123,222]' '["a","b"]'

Transaction code:

transaction(a: String, b: Int, c: UInt16, d: UFix64, e: Address, f: [Int], g: [String]) {
	prepare(authorizer: AuthAccount) {}
}

Idiomatic Accessors

Implemented by the community: @bjartek 🙌

Getter methods were rewritten in idiomatic Go, containing a value and an error. This solves some edge case bugs where the value is missing but the returned value is not checked for nil.

Configuration Loader Improvement

Implemented by the community: @bjartek 🙌

Configuration loading logic was improved, and it now only loads global configuration if local isn't present. Furthermore, it improves the configuration add commands that now only allow passing a single config by using the -f flag and it requires at least one local configuration to be present.

Version 0.27.0

26 Jul 13:42
8701124
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

Non-existing Service Account

Implemented by the community: @bjartek
The bug crashing the CLI when referencing a non-existing service account was fixed.

🛠 Improvements

Improved Event Command

Implemented by the community: @bjartek
Big improvements for the event commands. You can now specify multiple event names when you are fetching the events. The command will combine all the events together in the result.

flow events get A.1654653399040a61.FlowToken.TokensDeposited A.1654653399040a61.FlowToken.TokensWithdrawn

Command format was changed so it now requires flags for start block height (--start), end block height (--end), and allows a new flag for specifying the number of blocks since the last block height (--last). Some examples of usage:

flow events get A.1654653399040a61.FlowToken.TokensDeposited --start 11559500 --end 11559600
flow events get A.1654653399040a61.FlowToken.TokensDeposited --last 20 

The event fetching will be done concurrently using workers, the default worker count is 10, but you can specify the count explicitly using the --workers flag and also the number of blocks each worker fetches with --batch flag. This functionality brings great speed improvements and also allows you to fetch more blocks than the current limit.

Add Mainnet Alias

Implemented by the community: @bjartek
The improved config command allows you to add new mainnet aliases. Example usage:

flow config add contract --mainnet-alias Alice 

Continuous Delivery

Continuous delivery with help of Github actions.

Version 0.25.1

30 Jun 16:16
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

Update Contract Bugfix

The update contract command introduced a bug that was fixed in this version.

Get Events Range Check

Fetching events was previously limited to a range of block heights that was bigger than the access node restriction.

📖 Documentation

Minor Documentation Improvements

v0.25.0

24 Jun 23:50
9afd793
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.

💥 Breaking Changes

🛠 Improvements

Version 0.24.1

23 Jun 22:06
f10e04b
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

VSCode Update (#304) @sideninja