Skip to content

justicenode/node-ipns-pin

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

ipns-pin

A small script that updates pins for ipns addresses. Should be set up as a cron job.

Requirements

  • a running ipfs node

Usage

Note: You'll probably want to set up a cron job for the update command

Command Description
ipns-pin version Prints current version
ipns-pin update Updates pins
ipns-pin ls lists all pins
ipns-pin add {nodeid/dnslink} add new ipns pin
ipns-pin rm {nodeid/dnslink} remove a ipns pin
ipns-pin ipfs {api address} set which ipfs node to use

Examples:

  • ipns-pin add ipfs.io
  • ipns-pin add QmQH5NZmPByoGokbhTWduMxMCanewdZrt3PBK7xi3nAQJv
  • ipns-pin ipfs http://localhost:5001/api/v0

If I use this thing enough I'll probably add cli commands to add/remove pins. Boredom also works

About

Script to pin files via ipns and keep them updated. Feedback appreciated : )

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published