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
> ipfs-deploy SOURCE_DIR
ipfs-deploy ./dist > ./cid.txt
export IPFS_CID=$(ipfs-deploy ./public)
ipfs-deploy ./build
DEBUG=ipfs-deploy ipfs-deploy ./dist