npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nevermined-io/cli

v2.2.2

Published

[![banner](https://raw.githubusercontent.com/nevermined-io/assets/main/images/logo/banner_logo.png)](https://nevermined.io)

Downloads

77

Readme

banner

Nevermined Command Line Interface (CLI)

Command Line Interface for interacting with Nevermined ecosystems nevermined.io

CI Build


Table of Contents


Installation

npm install -g @nevermined-io/cli

or

yarn global add @nevermined-io/cli

After doing that you should have available in your system the ncli tool.

$ ncli --help

Usage

Setup Accounts:

  • Option 1: Use the seed words
export SEED_WORDS="<your 12 words seed phrase>"
  • Option 2: Use keyfiles
export KEYFILE_PATH="<path to keyfile>"
export KEYFILE_PASSWORD="<keyfile password>"

export WEB3_PROVIDER_URL="https://rinkeby.infura.io/v3/INFURA_TOKEN"
or
export WEB3_PROVIDER_URL="https://eth-rinkeby.alchemyapi.io/v2/-ALCHEMY_TOKEN"

to switch the token address (optional):
export TOKEN_ADDRESS="<your erc20 compatible token address>"
if you want to use the native token of the network where you are operating you can specify the 0x0 address
export TOKEN_ADDRESS=0x0

Environment variables

  • NETWORK - Allows to uses one of the existing pre-configured Nevermined networks. Example: geth-localnet, mumbai, matic, goerli. You can see the full list of networks supported running ncli network list
  • WEB3_PROVIDER_URL - JSON-RPC server. It could be an Infura or Alchemy url too. Example: http://localhost:8545
  • TOKEN_ADDRESS - The ERC20 token address to use for the transactions. If not given or if is 0x0 the payments will be made in the network native token (ETH, Matic, ..)
  • NVM_NODE_URL - The url of the Nevermined Node to use. If not given the default url is: http://localhost:8030
  • MARKETPLACE_API_URL - The url of the marketplace api to use. If not given the default url is: http://localhost:3100
  • FAUCET_URL - The url of the faucet to use. If not given the default url is: http://localhost:3001
  • IPFS_GATEWAY - The url of the IPFS gateway used to upload/download contents. By default is https://ipfs.infura.io:5001
  • NODE_ADDRESS - The public address of the Nevermined Node. If not given the default address is: 0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0
  • GAS_MULTIPLIER - For networks with some congestion, this parameter can help to increase the gas spent and speed up the transactions. If not given the default is 0.

Commands

$ ncli
usage: ncli <command>

Commands:
  ncli network     Retrieve information about Nevermined deployments
  ncli accounts    Management of accounts and the funds associted to them
  ncli assets      Allows to register and manage assets in a Nevermined network
  ncli agreements  Get information about the Service Execution Agreements
  ncli provenance  Provenance functions
  ncli nfts721     Create and manage NFTs (ERC-721) attached to Nevermined assets
  ncli nfts1155    Create and manage NFTs (ERC-1155) attached to Nevermined assets
  ncli utils       Utility commands to faciliate files management, encryption, etc

Options:
      --help     Show help                                                                                                                                                    [boolean]
      --version  Show version number                                                                                                                                          [boolean]
  -v, --verbose  Run with verbose logging                                                                                                                                     [boolean]
  -n, --network  The network to use                                                                                                                         [string] [default: "mumbai"]
  -a, --accountIndex The index of the account to use                                                                                                                              [string] [default: "0"]

Networks

The CLI has pre-configured some Nevermined environments. You can check what is pre-configured using the network list command:

$ ncli network list
Nevermined pre-configured networks:

 mumbai:
        Public testnet environment where users can interact with Nevermined protocol.
        Is a Production environment? false

        Node Uri: https://rpc-mumbai.maticvigil.com
        Nevermined Node: https://node.mumbai.public.nevermined.rocks
        Marketplace API: https://marketplace-api.mumbai.public.nevermined.rocks
        Faucet: https://faucet.mumbai.public.nevermined.rocks

A part of these networks you can connect to any other network using the environment variables described above.

When you want to connect and interact with a different network of the default (mumbai), make sure you have exported the WEB3_PROVIDER_URL environment variable connected to the right environment, and pass the -n NETWORK_NAME parameter to your commands.

License

Copyright 2022 Nevermined AG

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.