New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dainprotocol/cli

Package Overview
Dependencies
Maintainers
0
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dainprotocol/cli

CLI for Dain Protocol

  • 1.0.46
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
decreased by-31.42%
Maintainers
0
Weekly downloads
 
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 13 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc