Skip to content

rubenkristian/pinata-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental Command

  • auth

pinata auth :auth_key

create file for store key api before use other command, put your JWT Key to create file in current folder to save your key for request pinata API.

  • list

pinata list :file_name :query

save result of query to file (or create file if not exists).

  • unpin-hash

pinata unpin-hash :hash

remove/unpin file by hash id from pinata.

  • unpin-query

pinata unpin-query :query

remove/unpin file by query from pinata.

EXAMPLE UNPIN BY QUERY

pinata unpin-query "status=pinned"

remove/unpin file pinata where status of file is pinned

pinata unpin-query "metadata[name]=test"

remove/unpin file pinata where name in metadata file is test

pinata unpin-query "metadata[keyvalues][key1]={'value':'valkey1','op':'eq'}"

remove/unpin file pinata where keyvalues key1 value is equal 'valkey1'

for more example query you can find in pinata documentation https://docs.pinata.cloud/pinata-api/data/query-files