Upload files to permanent IPFS storage from the command line. Pay-per-use with x402 payment protocol.
# From npm (when published)
npm install -g x402store-cli
# From source
git clone https://github.com/user/x402store-cli
cd x402store-cli
npm install
npm run build
npm linkExport your Base wallet private key:
export X402_PRIVATE_KEY=0x...Need a wallet? Create one at https://x402.storage
# Upload a file
x402store myfile.txt
# Output on success:
# Success! File stored permanently.
# URL: https://x402.storage/bafybeig...
# CID: bafybeig...$0.01 per upload (paid in USDC on Base).
- Node.js 18+
- Base wallet with USDC balance
MIT