🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@dainprotocol/cli

Package Overview
Dependencies
Maintainers
6
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dainprotocol/cli

CLI for Dain Protocol

latest
npmnpm
Version
1.2.19
Version published
Maintainers
6
Created
Source

DAIN CLI

A command-line interface tool for the DAIN Protocol service sdks.

Installation

Install globally via npm:

npm install @dainprotocol/cli -g

Documentation

For detailed documentation, usage guides, and additional information, please visit: https://docs.dain.org

Usage

dain --help

Init

dain init <project-name>

The following commands require a dain.json file to be present in the root of the project with the following structure:

{
  "out-dir": "your-build-output-directory(build/dist)",
  "main-file": "your-main-file.(ts/js)",
  "deployment-id": "your deploymentId that you will have after the deploy",
  "api-key": "your-api-key"
}

Build

dain build

Dev

dain dev

Deploy

An .env file must be present in the root of the project with the following variables:

DAIN_API_KEY=your_api_key

To deploy the project, run the following command:

dain deploy

Status

dain status

Logs

dain logs [-w|--watch]

The -w or --watch parameter allows you to monitor logs in real time.

Undeploy

dain undeploy

FAQs

Package last updated on 26 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts