Socket
Book a DemoInstallSign in
Socket

@dxos/cli-ipfs

Package Overview
Dependencies
Maintainers
12
Versions
432
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dxos/cli-ipfs

DXOS IPFS CLI

latest
Source
npmnpm
Version
2.20.4
Version published
Maintainers
12
Created
Source

IPFS CLI

CLI extension for IPFS operations.

Operations

Start / stop IPFS daemon

dx ipfs start command is used to start IPFS.

Optional --daemon flag allows to start IPFS as a daemon, with enabled autorestart on fail and restart in case when memory limit exceeded.

In case of starting as a daemon, one need to make sure process has write access to log file, located by default at /var/log/ipfs.log. Alternative location of the log file could be defined via optional --log-file parameter.

By default, started IPFS node swarms with other DXOS IPFS nodes, bootstrapped from WNS. Interval of swarm connections could be defined with --connect-interval (in seconds), default is 300. WNS bootstrap could be turned on/off using --wns-bootstrap flag, which is true by default.

dx ipfs start --daemon --log-file "/tmp/ipfs.log"

In case when IPFS was started as a daemon, dx ipfs stop command could be used for its stopping.

// TODO(egorgripasov): Not only for daemon case?

IPFS find.

dx ipfs find command is used to find file in IPFS nodes, both registered and not registred with WNS. Command requires IPFS node running locally.

Command supports lookup of app, bot or just hash, e.g.:

Hash lookup:

dx ipfs find QmWztwfX8JRepUZdbFF7ygJy1Bhfks33W7SocZnqzx2T4k

App lookup:

dx ipfs find app example.com/editor

Bot lookup: (resuires additional --platform parameter)

dx ipfs find bot dxos.org/echo --platform macos-x64

FAQs

Package last updated on 12 Jul 2022

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