Usage¶
Command Line¶
To create a sample config file, run:
$ nfpm init
You can then customize it and package to the formats you want:
$ nfpm pkg --packager deb --target /tmp/
using deb packager...
created package: /tmp/foo_1.0.0_amd64.deb
$ nfpm pkg --packager rpm --target /tmp/
using rpm packager...
created package: /tmp/foo-1.0.0.x86_64.rpm
Go Library¶
Check the GoDocs page, as well as NFPM command line implementation and GoReleaser's usage.