Reputation: 21
I'm trying to activate the NEAR mainnet on the NEAR-CLI but when typing NEAR-ENV=mainnet it says unknown argument.
Upvotes: 1
Views: 190
Reputation: 7756
Try out the new https://near.cli.rs. It should be more intuitive.
Upvotes: 0
Reputation: 326
If you are trying to set the default to mainnet
you need to run:
export NEAR_ENV=mainnet
Alternatively, you can change the network by prepending an environment variable to your command.
Example:
NEAR_ENV=mainnet near send ...
See the CLI Docs for more info: https://docs.near.org/tools/near-cli#network-selection
Upvotes: 4