Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 758 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 758 Bytes

CLI for using web3.storage

npm install -g web3-storage-cli

Pack directory into .car file

Content Addressable aRchive (.car) is an archive file that stores files in the same manner as IPFS. This makes uploading it to an IPFS compatible endpoint easy.

web3 pack <file or directory> --output <path/to/file.car> # default is ./index.car

Note: this will not include the directory in the file, e.g. if you had the following dir/a

web3 pack dir

generates index.car which includes a but not dir.

Upload

Requires the environment variable WEB3_STORAGE_API_TOKEN or --api-key ... from nft.storage

web3 upload <path/to/file.car>