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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tangle-js/tangle-cli

v0.11.1

Published

CLI for Tangle.js

Readme

tangle-cli

CLI for developing applications on the Tangle

Github Test Workflow npm badge

Installation

npm install -g @tangle-js/tangle-cli

Usage

On the command line just run tcli.

tcli [command]

Commands:
  tcli did      DID operations
  tcli vc       Verifiable Credential operations
  tcli channel  Streams Channels operations (Powered by IOTA Streams)
  tcli msg      Tangle message (indexation payloads) operations

Global Options:
  --version        Show version number                                 [boolean]
  --devnet         Default settings for IOTA Chrysalis Devnet
                   Network:   dev
                   Node:      https://api.lb-0.h.chrysalis-devnet.iota.cafe
                   Explorer:  https://explorer.iota.org/devnet
                   Permanode: -                                        [boolean]
  --mainnet        Default settings for IOTA Chrysalis Mainnet
                   Network:   main
                   Node:      https://chrysalis-nodes.iota.org
                   Explorer:  https://explorer.iota.org/mainnet
                   Permanode: https://chrysalis-chronicle.iota.org/api/mainnet/
                                                                       [boolean]
  --net, -i        Tangle network identifier                            [string]
  --node, -n       Node endpoint                                        [string]
  --explorer, -x   Tangle explorer endpoint                             [string]
  --permanode, -p Permanode endpoint                                   [string]
  --help           Show help                                           [boolean]

For all commands you must specify at minimum --devnet, --mainnet or --net <netId> --node <nodeUrl>

See commands for:

DID

tcli did

DID operations

Commands:
  tcli did create   DID creation
  tcli did resolve  DID resolution

DID Creation

tcli did create

DID creation

Options:
  --didService     List of DID services (JSON Array)                    [string]

DID Resolution

tcli did resolve

DID resolution

Options:
  --did            DID to be resolved                        [string] [required]

Verifiable Credentials (VC)

tcli vc

Verifiable Credential operations

Commands:
  tcli vc issue    VC issuance
  tcli vc verify   VC / VP verification
  tcli vc present  VC presentation

Issuing a VC

tcli vc issue

VC issuance

Options:
  --issuer         DID of the issuer of the VC               [string] [required]
  --method         Verification Method                       [string] [required]
  --expDate        Expiration Date                                      [string]
  --secret         Secret key of the issuer                  [string] [required]
  --subject        (D)ID of the subject of the VC            [string] [required]
  --claims         Credential claim data (As a JSON Object)  [string] [required]
  --type           Credential type                                      [string]
  --id             Credential id                                        [string]
  --json           Output the credential in JSON format ready for cyp  [boolean]

Verifying a VC or a VP

tcli vc verify

VC / VP verification

Options:
  --vc             Verifiable Credential to be verified (As JSON)       [string]
  --vp             Verifiable Presentation to be verified (As JSON)     [string]

Presenting a VC

tcli vc present

VC presentation

Options:
  --vc             VC to be presented                        [string] [required]
  --holder         Holder who presents the credential. By default is the
                   credential subject                                   [string]
  --method         Verification Method                       [string] [required]
  --secret         Secret key of the holder                  [string] [required]
  --id             Presentation id                                      [string]
  --type           Presentation type                                    [string]
  --json           Output the credential presentation in JSON format ready for
                   cyp                                                 [boolean]

Channels

tcli channel

Streams Channels operations (Powered by IOTA Streams)

Commands:
  tcli channel create   Creates a new Streams Channel
  tcli channel anchor   Anchors a message to an IOTA Streams Channel
  tcli channel fetch    Fetches one message previously anchored
  tcli channel inspect  Inspects a channel, visiting all messages
  tcli channel seed     Creates a new seed to be used to interact with channels

Channel Creation

tcli channel create

Creates a new Streams Channel

Options:
  --seed           IOTA Streams Author's seed for creating the channel  [string]
  --psk            Pre-shared keys                                       [array]
  --encrypted      Whether the channel must be encrypted or not        [boolean]
  --private        Whether the channel is private or not               [boolean]

Anchor message

tcli channel anchor

Anchors a message to an IOTA Streams Channel

Options:
  --seed           IOTA Streams Subscriber's seed to use to anchor the message
                                                             [string] [required]
  --msg            (JSON) Message content to be anchored     [string] [required]
  --channelID      ID of the Channel ('address:announceMsgID') to anchor the
                   message to                                [string] [required]
  --anchorageID    The anchorage point (message) ID to anchor the message to
                                                             [string] [required]
  --encrypted      Whether the channel must be encrypted or not        [boolean]
  --private        Whether the channel is private or not               [boolean]

Fetch message

tcli channel fetch

Fetches one message previously anchored

Options:
  --seed           IOTA Streams Subscriber's seed to fetch on the channel
                                                                        [string]
  --psk            IOTA Streams pre-shared key to fetch on the channel  [string]
  --channelID      ID of the Channel ('address:announceMsgID') from which to
                   fetch the message                         [string] [required]
  --msgID          ID of the message to be fetched                      [string]
  --anchorageID    ID of the anchorage where the message to be fetched is
                   anchored to                               [string] [required]
  --encrypted      Whether the channel must be encrypted or not        [boolean]
  --private        Whether the channel is private or not               [boolean]

Inspect channel

tcli channel inspect

Inspects a channel, visiting all messages

Options:
  --seed           IOTA Streams Subscriber's seed to inspect the channel[string]
  --psk            Pre-shared key used to inspect the channel           [string]
  --channelID      ID of the Channel ('address:announceMsgID') from which to
                   fetch the message                         [string] [required]
  --encrypted      Whether the channel must be encrypted or not        [boolean]
  --private        Whether the channel is private or not               [boolean]

Seed generation

tcli channel seed

Creates a new seed to be used to interact with channels

Options:
  --size           Size of the seed                                     [number]

Tangle Messages

tcli msg

Tangle message (indexation payloads) operations

Commands:
  tcli msg submit  Message (indexation payload) submission
  tcli msg get     Message retrieval

Submit a message (indexation payload)

tcli msg submit

Message (indexation payload) submission

Options:
  --msg            Message content to be submitted           [string] [required]
  --index          Index for the message                     [string] [required]

Retrieve a message

tcli msg get

Message retrieval

Options:
  --msgID          ID of the message to be retrieved         [string] [required]