* docs: migrate to hugo and hextra Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * chore: cleanup Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: htmltest Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * ci: update Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * chore: eof Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * docs: udpate Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * wip Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * docs: improvements Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * ci: fix Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * better icons Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * wip Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * wip Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: updates Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * wip Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
1.6 KiB
| title | weight |
|---|---|
| Quick Start | 1 |
nFPM can be used both as a command line tool or as a Go library.
Getting Started
{{% steps %}}
Install nFPM
You can choose from several instalation methods, for example:
Using Homebrew:
brew install goreleaser/tap/nfpm
Using go install:
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
Make sure to check the complete list and choose the best option for your case.
Initialize your project
Use nfpm init to create a sample configuration:
nfpm init
This creates a nfpm.yaml file with a commented example configuration.
Build your packages
Use nfpm package to create your packages:
# Build specific formats
nfpm pkg --packager deb --target /tmp/
nfpm pkg --packager rpm --target /tmp/
nfpm pkg --packager apk --target /tmp/
You can also use ipk and archlinux as packagers.
{{% /steps %}}
Command Line Reference
For more information about available options:
nfpm --help
See the configuration reference to customize your package definition.
Check out the command line reference for detailed documentation of all commands.
Using as a Go library
You can also use nFPM as a library in your Go project.
Check out the GoDocs page, the nFPM command line implementation and GoReleaser's usage.