Run the NEAR cli using Nix.
Note
Requires Nix to be installed. Installation on linux can be done through sh <(curl -L https://nixos.org/nix/install) --daemon
. For other platforms please refer to the official installation guide.
nix run github:Openmesh-Network/near-cli --experimental-features 'nix-command flakes' --accept-flake-config
- Replace
near
withnix run github:Openmesh-Network/near-cli --experimental-features 'nix-command flakes' --accept-flake-config
. - Repeat all normal arguments.
- Add
--
and repeat all arguments starting with-
or--
after it.
near call openmesh.pool.near ping '{}' --accountId dcb56967d85ca66c1d991b011540887990b46ac09923d3c3891f47334ef9c941 --gas=300000000000000 --network-id=mainnet
becomes
nix run github:Openmesh-Network/near-cli --experimental-features 'nix-command flakes' --accept-flake-config call openmesh.pool.near ping '{}' -- --accountId dcb56967d85ca66c1d991b011540887990b46ac09923d3c3891f47334ef9c941 --gas=300000000000000 --network-id=mainnet
Nix will run a previously downloaded version if available. Run this command to update to the latest version.
nix flake update --flake github:Openmesh-Network/near-cli