LogoLogo
  • Introduction
    • 🚀 Welcome to Datagram
    • What is Datagram?
  • Alpha Testnet
    • What Is Alpha Testnet?
    • Getting Started with the Alpha Testnet
  • Rewards
    • Datagram Rewards System
    • Datagram Points (Alpha Testnet Rewards)
    • DGRAM Token (Mainnet Rewards)
  • Datagram Architecture
    • Datagram Architecture Overview
    • Node Network
    • Fabric Networks
    • Datagram Core Substrate (DCS)
    • The Hyper Network Layer
  • DATAGRAM DESKTOP APPLICATION GUIDE
    • Datagram Desktop Application User Guide
    • Create a Datagram Account
    • Home Screen Guide
  • SETUP DATAGRAM
    • Desktop Application Setup
      • Mac (Silicon, Intel)
      • Windows
    • Partner Substrate Setup
      • Local Machine (Ubuntu/Linux)
      • VPS Servers
  • APIs
    • Get an API Key
  • SDKs
    • Video Conferencing
      • Web (external)
      • iOS (external)
  • Additional Tools
    • CLI (Command Line Interface)
    • Node License Tools
      • Desktop (Full Core License required)
      • Partner Substrate (Partner Core License required)
  • Documentation
    • Whitepaper
      • 1. Introduction & Project Overview
      • 2. Why Blockchain?
      • 3. Datagram Architecture
        • 3.1. The Datagram Node Network & Fabric Networks
        • 3.2. Datagram Core Substrate DCS: The Connectivity Layer
        • 3.3. The Hyper Network Layer
      • 4. Datagram in Action: Real-World Applications & Adoption
        • 4.1. Key Use Cases
        • 4.2. The Datagram Browser
        • 4.3. Business Implementation
      • 5. Tokenomics
        • 5.1. Tri-Token Model
        • 5.2. Supply & Distribution
      • 6. Datagram Rewards & Emissions Model
        • 6.1. Checkpoints
        • 6.2. Emissions Formula
      • 7. Datagram Governance
        • 7.1. Overview
        • 7.2. Voting Process
        • 7.3. Proposal Lifecycle
        • 7.4. Governance Dashboard
      • 8. Datagram Team
      • 9. Conclusion
  • EXTERNAL LINKS
  • Website
  • Dashboard
  • FAQs
  • Blog
  • Discord
  • X
  • Telegram
Powered by GitBook
On this page
  • 1. Install & Update
  • 2. Download the Latest Version
  • 4. Running a Partner Core Node
  • 5. Running Datagram CLI with Docker
  • 6. Uninstalling
  • 7. Updating the CLI
  • 8. Additional Notes
  1. Additional Tools

CLI (Command Line Interface)

PreviousiOS (external)NextNode License Tools

Last updated 2 days ago

1. Install & Update

Important Notes

  • You cannot run multiple instances of the Datagram CLI on the same machine simultaneously (e.g., Linux CLI and Windows GUI together). Doing so may cause unexpected errors.

  • Always ensure you are running the of the CLI.

2. Download the Latest Version

You can download the latest Datagram CLI binary from the official releases page:

https://github.com/Datagram-Group/datagram-cli-release/releases/latest/download/datagram-cli-<target-platform>

Replace <target-platform> with your specific OS and architecture. Currently supported values include

  • aarch64-apple-darwin – for Apple Silicon (M-series Macs)

  • x86_64-apple-darwin – for Intel-based Macs

  • x86_64-linux – for Linux systems

Example commands for Linux/macOS:

wget https://github.com/Datagram-Group/datagram-cli-release/releases/latest/download/datagram-cli-x86_64-linux
chmod +x ./datagram-cli-x86_64-linux

License Requirement

During the Alpha Testnet, a free Full Core Node License is automatically provided to every newly created account. For more details, see the .

Run the Datagram CLI with License Key

Run the CLI with your full core license key as follows:

./datagram-cli-<target-platform> run -- -key <fullcore-license-key>

Replace <fullcore-license-key> with your actual license string.

4. Running a Partner Core Node

1. Request a Partner License

Get your partner license from the Datagram License Portal. Partner licenses support running multiple nodes under one license and distributing rewards to the license owner.

Follow the steps below to request a Partner License:

Step 2: Navigate to the “Wallet” section from the left sidebar, then click on the “Licenses” tab at the top of the screen.

Step 3: Click the Request partner license button located in the upper-right corner of the screen.

Step 4: In the pop-up window titled "Request Partner Core License," enter the Project Name (e.g., NodeSync) and click the Confirm button.

Step 6: Once submitted, your license request will appear in the Licenses table with the status marked as "Requested."

2. Partner Key Format

The partner key uses a multikey format with key-value pairs:

/key_1/value_1/key_2/value_2/...

Key parameters include:

  • secret (required): Partner license string.

  • id (required): External ID for tracking within your system.

  • address (optional): Reward recipient address; defaults to the license owner's address if not provided.

3. Run the CLI with Partner License

Example command:

./datagram-cli-<target-platform> run -- -key /secret/<partner-license>/id/<external-id>/address/<reward-address>

Replace placeholders with your actual values.

5. Running Datagram CLI with Docker

Docker Setup Overview

You can run the Datagram node inside a Docker container using the provided Dockerfile entrypoint.sh and run.sh scripts.

Dockerfile

FROM ubuntu:20.04 AS base

RUN apt-get update && \
  apt-get install -y wget

# Install Datagram CLI
RUN wget https://github.com/Datagram-Group/datagram-cli-release/releases/latest/download/datagram-cli-x86_64-linux && \
  chmod +x ./datagram-cli-x86_64-linux && \
  mv datagram-cli-x86_64-linux /usr/bin/datagram

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

Entrypoint Script (entrypoint.sh)

#!/bin/bash

# Check if DATAGRAM_KEY environment variable is set
if [ -z "$DATAGRAM_KEY" ]; then
  echo "Error: DATAGRAM_KEY environment variable is not set." >&2
  exit 1Datagram Node CLI Usage Guide
fi

# Run datagram with the provided key
datagram run -- -key "$DATAGRAM_KEY"

Run Script (run.sh)

#!/bin/sh

# Example environment variable exports:
# For full core license:
# export DATAGRAM_KEY=fullcore-license-key
# For partner license:
# export DATAGRAM_KEY=/secret/here-is-partner-license/id/here-is-external-id

export DATAGRAM_KEY=/secret/here-is-partner-license/id/here-is-external-id/address/0x00abc

docker build --platform linux/amd64 -t datagram .

docker run \
  --platform linux/amd64 \
  --env DATAGRAM_KEY=$DATAGRAM_KEY \
  --rm -it \
  datagram

6. Uninstalling

Since this is a CLI binary or Docker container, uninstalling typically involves removing the binary file or stopping/removing the container. If you used manual installation steps, simply delete the binary file:

rm ./datagram-cli-<target-platform>

For Docker, remove images and containers as usual.

7. Updating the CLI

To update, download the latest release from the releases page and replace your existing binary. If using Docker, rebuild the Docker image using the latest Dockerfile and run.sh.

8. Additional Notes

  • Always verify your license key and environment variables before starting the node.

  • For partner nodes, ensure your external ID and reward address are correctly set.

  • Docker usage allows easier environment isolation and management, but requires Docker to be installed and configured.

Step 1: Navigate to the and log in to your account.

latest version
Alpha Testnet Info
Datagram website