Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.34 KB

File metadata and controls

40 lines (26 loc) · 1.34 KB

NEAR Command Line Interface

Run the NEAR cli using Nix.

Run as Nix flake

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.

Interactive mode

nix run github:Openmesh-Network/near-cli  --experimental-features 'nix-command flakes' --accept-flake-config

Command

  1. Replace near with nix run github:Openmesh-Network/near-cli --experimental-features 'nix-command flakes' --accept-flake-config.
  2. Repeat all normal arguments.
  3. Add -- and repeat all arguments starting with - or -- after it.

Example

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

Update flake

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