Files CLI
The official CLI for the Files API written in Go
The Files CLI is a tool you can use alongside your account to upload and manage files through your terminal. The source code can be found in the link below.
Source Code
Installation
If you are on Windows please use WSL when installing. If you get an error that it was not able to resolve the github host run git config --global --unset http.proxy
Install Script
The easiest way to install is to copy and paste this script into your terminal
Homebrew
If you are on MacOS and have homebrew installed you can run the command below to install the CLI
Building from Source
To build and instal from source make sure you have Go installed on your computer and the following command returns a version:
Then paste and run the following into your terminal:
Linux Binary
As versions are released you can visit the Releases page and download the appropriate binary for your system, them move it into your bin folder.
For example, this is how I install the CLI for my Raspberry Pi
Usage
The Pinata CLI is equipped with the majortiry of features on the Files API.
auth
With the CLI installed you will first need to authenticate it with your Pinata JWT. Run this command and follow the steps to setup the CLI!
upload
files
get
list
update
delete
groups
create
get
list
add
remove
gateways
set
Use the command with no arguments and get a list of your gateways to choose from!
sign
open
keys
create
list
revoke
swaps
list
add
delete
Contact
If you have any questions please feel free to reach out to us!