⌨️ Use from a Command Line Interface
Check, sign, and publish Nanopubs from your terminal using the binary for your platform.
📥️ Install
Download the binary adapted to your platform from the repository Releases page:
- 🐧 Linux
- 🍎 MacOS
- 🪟 Windows
Rename the binary to np
(or anything you prefer), and put it in your path.
You can do it easily on Linux, MacOS, and Windows WSL, by using our install script:
✍️ Sign
You can define the path to the key pair used for signing in a profile.yml
which contains the following information:
orcid_id: https://orcid.org/0000-0000-0000-0000
name: Your Name
public_key: /home/user/.nanopub/id_rsa.pub
private_key: /home/user/.nanopub/id_rsa
introduction_nanopub_uri:
Sign a Nanopub, by default it will try to use the profile available at ~/.nanopub/profile.yml
Sign a Nanopub, using a specific private key file:
Sign a Nanopub, using a profile.yml
file:
📬️ Publish
Check and publish a signed nanopub, or sign and publish an unsigned nanopub:
You can use the same -p
and -k
options that are available for the np sign
command
🔎 Check
Check if a signed nanopub is valid. It will check the Trusty hash, and signature based on the public key:
⏭️ Enable completions
You can generate and enable completions for your shell:
-
🪐 ZSH
-
🥊 Bash
-
🐟 Fish
Add the
source
command to your.zshrc
or.bashrc
if not already done.