Releases: onflow/flow-cli
Version 0.41.0
⬆️ 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
🛠 Improvements
- Update CD to go 1.19 (#666) @sideninja
Version 0.40.1
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
🛠 Improvements
- Update to Cadence v0.27.0 and Emulator v0.37.0 (#664) @turbolent
Version 0.40.0
⬆️ 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
- Update Dependencies flow-go-sdk, emulator and language server to latest versions (#653) @sideninja
- Update dev-wallet (#627) @gpavlov2016
- Update time output for block get (#643) @sukantoraymond
📖 Documentation
- Update create-accounts.md (#656) @a5chanda
- Remove deprecated workflow. (#647) @10thfloor
- Remove unused expression (#646) @10thfloor
- Update send signed link in docs (#634) @sukantoraymond
Version 0.39.3
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
🛠 Improvements
- Add mixpanel to emulator (#633) @sukantoraymond
Version 0.39.2
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
🛠 Improvements
- Update install script version fetching (#624) @sukantoraymond
- Change opt-out command tracking logic (#621) @sukantoraymond
- Resolve imports when deploying a contract (#623) @sideninja
- Generate unique ID for command tracking (#626) @sukantoraymond
- Update language server (#618) @sideninja
- Update emulator (#629) @sideninja
🐞 Bug Fixes
- Fix broken links in the documentation (#625) @sukantoraymond
Version 0.39.1
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
🐞 Bug Fixes
- Bugfix in command usage statistics being rate limited. (#616) @sukantoraymond
Version 0.39.0
⬆️ 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
- chore: fix broken link to emulator info (#611) @jdbranham
- Feature/event tracking command count on mixpanel (#582) @sukantoraymond
- Optional arguments parsing fix (#590) @bluesign
- Add command 'keys derive' to derive public key from private key (#593) @bluesign
- Fix legacy Type json-cdc encoding (#594) @bluesign
- Update Args JSON Documentation (#598) @sukantoraymond
- Fix unnecesary contract updates (#592) @bluesign
- Dependent issues action (#596) @sideninja
- Update emulator dependency to v0.34.0 (#607) @sukantoraymond
🐞 Bug Fixes
- Fix bug for setting metric settings (#609) @sukantoraymond
- Fix gitignore method for interactive account creation (#604) @sukantoraymond
Version 0.38.0
⬆️ 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
- Make it possible to configure the emulator with any option (#581) @bjartek
- Update linter used in the CI (#584) @sideninja
- Update Cadence, Emulator, Go SDK dependencies (#578) @dsainati1
- Update dev wallet to v0.4.9 (#574) @sukantoraymond
- Refactor the flowkit to allow passing a logger to the emulator (#573) @bjartek
- Avoid saving default emulator configuration to the flow.json (#509) @sukantoraymond
📖 Documentation
- Update this release template (#575) @sideninja
Version 0.37.6
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
🛠 Improvements
- Fill in missing dev wallet config values #569 (#571) @sukantoraymond
Version 0.37.5
⬆️ Install or Upgrade
Follow the Flow CLI installation guide for instructions on how to install or upgrade the CLI.
🛠 Improvements
- Fill in missing dev wallet config values (#569) @sukantoraymond
- Improved crash reporting in development and production (#540) @sideninja
📖 Documentation
- Update docs with update section (#544) @sideninja
- Update install documentation for specific version (#567) @sukantoraymond