2.4.3 • Published 4 years ago
@mehulagg/w3 v2.4.3
Getting started
Install the CLI from npm
$ npm install -g @web3-storage/w3Login in and create a token on https://web3.storage and pass it to w3 token to save it.
$ w3 token
? Paste your API token for api.web3.storage › <your token here>
⁂ API token savedCommands
w3 put <path>
Upload files to web3.storage. The IPFS Content ID (CID) for your files is calculated on your machine, and sent up along with your files. web3.storage makes your content available on the IPFS network
--no-wrapDon't wrap input files with a directory-n, --nameName to identify the upload-H, --hiddenInclude paths that start with "."--no-retryDon't try the upload again if it fails
w3 put-car <path>
Upload a CAR file to web3.storage.
-n, --nameName to identify the upload--no-retryDon't try the upload again if it fails
w3 get <cid>
Fetch files by CID. They are verified on your machine to ensure you got the eact bytes for the given CID.
-o, --outputThe path to write the files to
w3 list
List all the uploads in your account.
--jsonFormat as newline delimted JSON--cidOnly print the root CID per upload
w3 status <cid>
Get the Filecoin deals and IPFS pins that contain a given CID, as JSON.
w3 token
Paste in a token to save a new one. Pass in --delete to remove a previously saved token.
--apiURL for the Web3 Storage API. Default: https://api.web3.storage--deleteDelete a previously saved token