Install the CLI from npm
$ npm install -g nft.storage-cli
Login in and create a token on https://classic-api.nft.storage and pass it to nftstorage token
to save it.
$ nftstorage token
? Paste your API token for api.nft.storage › <your token here>
API token saved
Paste in a token to save a new one. Pass in --delete
to remove a previously saved token.
-
--api
URL for the nft.storage API. Default: https://api.nft.storage -
--delete
Delete a previously saved token
List all the uploads in your account.
-
--json
Format as newline delimted JSON -
--cid
Only print the root CID per upload