npm install -g web3-storage-cliContent 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.carNote: this will not include the directory in the file, e.g. if you had the following dir/a
web3 pack dirgenerates index.car which includes a but not dir.
Requires the environment variable WEB3_STORAGE_API_TOKEN or --api-key ... from nft.storage
web3 upload <path/to/file.car>