Installation
Binaries
To get the binary, download the latest release for your OS/Arch from and put the binary somewhere convenient.
lego does not assume anything about the location you run it from.
From Docker
From package managers
Note: The snap can only write to the /var/snap/lego/common/.lego directory.
You can enable GURU repository and then:
or
The lego maintainers are only maintaining the AUR and Snap packages, the other packages are community maintained.
From sources
Requirements:
- go1.25+.
To install the latest version from sources, just run:
or