github near/near-cli v4.0.0

latest releases: v4.0.13, v4.0.12, v4.0.11...
7 months ago

The major change at the code level is that the project was re-organized to make simpler to maintain:
- All commands are now in the commands folder
- Added multiple tests (all now running directly on testnet)
- All packages were updated (node v16 is now the minimum version, which is understandable)
- Errors are now handled on each command, and not through some obscure middleware.

In terms of usability, the complexity of near-cli was reduced by removing a couple of features:
- Removed analytics
- Breaking: removed x-api option
- Breaking: removed stake command
- Breaking: removed all evm commands
- Breaking: Removed all Ledger support
- Breaking: removed all validator commands
- Breaking: removed walletUrl, nodeUrl and helperUrl options
- Breaking: removed dev-deploy command. Users must now create an account (can fund it with a faucet) and deploy to it.

The following fixes were implemented:

  • create-account can now create sub-accounts and .testnet/.near accounts and fund them with an existing account or with a faucet service
  • Default wallet is now MyNearWallet install of NearWallet
  • Removed global flags, since they were not so global at all.. now each command has only the strict and necessary flags that it needs
  • Fixed --networkId flag, now it works as expected (i.e. switches network) in all relevant commands
  • Many commands were renamed, but aliases are set in place for retro-compatibility.
  • The generate-key command does not save the key by default, now it needs the --saveImplicit flag to save the key. Also, it does not overwrite the key if it exists, it needs the --force flag for that.

Don't miss a new near-cli release

NewReleases is sending notifications on new releases.