Skip to content

Use the command line interface

Once installed, you can use the nanopub library through the np command line interface to sign and publish Nanopublication.

👤 Check the current user profile

np profile

✍ī¸ Set your user profile

See the setup instructions page for more details about setting up your profile.

np setup

✒ī¸ Sign nanopubs

Sign a nanopublication from a file, this will generate the signed nanopub in a new file signed.nanopub.trig alongside the original:

np sign nanopub.trig

đŸ“Ŧī¸ Publish nanopubs

Publish a nanopublication from a signed file:

np publish signed.nanopub.trig

Or directly publish a nanopublication from an unsigned file:

np publish nanopub.trig

You can also publish to the test server:

np publish nanopub.trig --test

☑ī¸ Check signed nanopubs

Check if a signed nanopublication is valid:

np check signed.nanopub.trig

ℹī¸ Get help

Display the help for the different commands with the --help flag.

np --help
np sign --help