DEV Community

Cover image for Pinata CLI: A CLI Application for the Pinata.Cloud Files Interface
Oliver Bennet
Oliver Bennet

Posted on

Pinata CLI: A CLI Application for the Pinata.Cloud Files Interface

This is a submission for the The Pinata Challenge

What I Built

I created Pinata CLI 💻, a command line application that allows users and system admins who are working with CLI's to easily manage their files, Folders, Images, Audio and Video files in decentralized fashion using Pinata Cloud.

My Project Integrates Pinata's File API to Upload, Download, Delete and Change Metadata on the files that are stored in your pinata cloud account.

Features of Pinata CLI

  • One Time authentication Setup: You are required to setup the API token only once before accessing the features
  • Authentication verification: There is a specially designed cli switch that will help you validate your connectivity to Pinata Cloud
  • Upload Files: You can upload any kind of files like Images, Video, PDF and text documents to Pinata Cloud
  • List files: You can list all your files in your Pinata Cloud Account in a table fashion
  • Change Metadata: You can change the metadata of your file like Name.
  • Delete files: You can delete a single file by its ID, It will ask you for confirmation before deleting the file from the system.

Demo

This is a detailed step by step guide to setup and working with Pinata CLI in Linux Operating System (Ubuntu 24.04)

There is also a Binary Release for your preferred operating system. The Know-How video for Binary Release on Both Linux and Windows is here.

Pinata CLI Help
Pinata CLI Help

Setup Authentication Token
Setup API Token

Authenticate, List and Delete Files
Authenticate, List and Delete Files

Upload Various File Types
Upload Various Files

Pinata CLI on Windows

Pinata CLI Windows

My Code

The entire Source Code for the Project is Uploaded in the Github Repository Below

Pinata CLI

What is Pinata Cloud?

Pinata Cloud is a SaaS platform that provides infrastructure to manage your files and other data using the IPFS (InterPlanetary File System) network. Pinata aims to provide IPFS services to a wider range of users by offering tools to:

  • Pin Files: Ensuring that they remain accessible and stored across the IPFS network.
  • File Storage: A File API that is simpler than S3, lightning fast, and highly durable.
  • Serve IPFS Content: Offering reliable gateways to make decentralized content accessible through traditional web browsers.
  • Automate Workflows: Facilitating workflows related to content distribution, making it popular for NFT (Non-Fungible Token) projects, where digital assets need decentralized and permanent hosting.

Pinata offers both free and paid tiers, with the paid version providing more storage, faster pinning, and enhanced performance options. It’s widely used in decentralized applications (dApps), NFTs, and by anyone looking to leverage the distributed nature of…

More Details

A More Detailed Blog Post on the IPFS File System and Pinata Cloud, the benefits and Use cases along with Step by Step Setup Guide and Screenshots is written in my Blog Post. Feel Free to Go through the same and let me know your Comments and Feedbacks on the Project.

IPFS and Pinata Cloud : An Overview - GraphPe

In this latest tutorial, we will walk you through what is IPFS and Pinata Cloud. We will also setup a quick CLI based Pinata Application.

favicon graphpe.com

Top comments (7)

Collapse
 
sumathi_dinesh_228446103f profile image
Sumathi Dinesh

Thank you for the useful information.Appreciate the technical details and clarity.Lots of knowledge and information shared.More heights to go!!!

Collapse
 
mvn_admin_523551e91fba807 profile image
MVN Admin

Cool.

Collapse
 
oliverbennet profile image
Oliver Bennet

Thanks mate.

Collapse
 
parthiban_rangaraj_fde2bb profile image
Parthiban Rangaraj

Great Stuff, Tried on my windows 10 Laptop and works like a breeze. Good Luck.

Collapse
 
oliverbennet profile image
Oliver Bennet

Thanks

Collapse
 
esam_ahmed_d7003b9cfb3da5 profile image
Esam Ahmed

All the Best, Looks great.

Collapse
 
oliverbennet profile image
Oliver Bennet

Thanks