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

@noisekit/ipfs-deploy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@noisekit/ipfs-deploy

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ipfs-deploy

ipfs-deploy is a command-line tool for deploying static websites to an auth-protected IPFS cluster. It takes care of recursively adding the files in the specified source directory to the IPFS cluster, authenticating with the cluster using provided credentials, and outputting the IPFS hash (CID) of the root folder.

Install

npm install -g @noisekit/ipfs-deploy

ENV

Configure the environment variables with your IPFS cluster credentials and settings.

IPFS_HOST=ipfs.synthetix.io
IPFS_PORT=443
IPFS_PROTOCOL=https
IPFS_USER=
IPFS_PASS=

CLI

Usage and examples

# SOURCE_DIR will be recursively pinned to IPFS under `www/` path
# prints Qm CID of pinned root `www` folder 
> ipfs-deploy SOURCE_DIR

# Example: Deploy the `dist` folder and output Qm into `cid.txt` file
ipfs-deploy ./dist > ./cid.txt

# Example: Deploy the `public` folder and store the CID in an environment variable
export IPFS_CID=$(ipfs-deploy ./public)

# Example: Deploy a custom folder (e.g., 'build') and output the CID
ipfs-deploy ./build

# Print all CIDs using DEBUG
DEBUG=ipfs-deploy ipfs-deploy ./dist

FAQs

Package last updated on 27 Mar 2023

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