IPFS CLI

Learn how to configure IPFS CLI for use with Filebase.

What is IPFS CLI?

IPFS CLI is a command line tool that can be used to interact with IPFS. It can be configured to utilize different IPFS pinning services such as Filebase through the ipfs pin remote commands.

Read below to learn how to use IPFS CLI with Filebase.

Prerequisites:

Configure Filebase As a Pinning Service

To add Filebase as a pinning service, use the following command:

ipfs pin remote service add filebase https://api.filebase.io/v1/ipfs access-token

Replace access-token with your Filebase IPFS Pinning Service token. The access-token can be generated by navigating to the Filebase Access Keys page, then viewing the IPFS PInning Service API Endpoint. Click the drop down menu for 'Choose Bucket to Generate Token', then choose the IPFS Filebase Bucket you want to use.

Then copy the generated Secret Access Token:

To Pin a CID Into Your Filebase Bucket:

ipfs pin remote add --service=filebase --name=test.png QmSp5z5RAgDhS38w7TmLMfyDXvY9i2hF6sJ4qm62SK5939

To List All Pinned Files In Your Filebase Bucket:

ipfs pin remote ls --service=filebase

To List All Pins That Are Queued, Pinning, Or Failed:

ipfs pin remote ls --service=filebase --status=queued,pinning,failed

If you have any questions, please join our Discord server, or send us an email at hello@filebase.com

Last updated