web3-storage-cli
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

CLI for using web3.storage

npm install -g web3-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>

Readme

Keywords

Package Sidebar

Install

npm i web3-storage-cli

Weekly Downloads

0

Version

0.1.0

License

Apache-2.0

Unpacked Size

24.9 kB

Total Files

11

Last publish

Collaborators

  • sirwillem