near-cli icon indicating copy to clipboard operation
near-cli copied to clipboard

[UX] Use `--network-id` CLI argument instead of `NODE_ENV` environment variable to select the network

Open frol opened this issue 4 years ago • 0 comments

This issue is based on the user report in Discord.

Currently, to select a network, one should set an environment variable NODE_ENV, which is an abuse of the variable in the first place, and also confusing. There is a CLI argument -~~network_id / ~~~~networkId (oh my, both aliases are alien to unix CLI practices, where kebab-case is used, i.e. ~~-network-id), which turns out to have no effect on the nodeUrl, walletUrl, and others.

frol avatar Nov 21 '19 09:11 frol