Getting Kobweb
The first step for starting with Kobweb is to get the Kobweb binary. You can install it, download it, and/or build it, so we'll include instructions for all these approaches.
When in doubt, we recommend installation via one of the package managers we support.
Install the Kobweb binary
Homebrew
OS: Mac and Linux
Scoop
OS: Windows
SDKMAN!
OS: Windows, Mac, and *nix
Arch Linux
With an AUR helper, e.g.:
Without an AUR helper:
Don't see your favorite package manager?
Please visit https://github.com/varabyte/kobweb-cli/issues/11 and consider leaving a comment!
Download the Kobweb binary
Our binary artifact is hosted on GitHub. To download latest, you can either grab the zip or tar file from the GitHub or you can fetch it from your terminal:
and I recommend adding it to your path, either directly:
or via symbolic link:
Build the Kobweb binary
Although we host Kobweb artifacts on GitHub, it is easy enough to build your own.
Building Kobweb requires JDK11 or newer. We'll first discuss how to add that, but you can skip this step if you have already done this on your machine.
Download a JDK
If you want full control over your JDK install, manually downloading is a fine option.
- Download a JDK for your OS
- Unzip it somewhere
- Update your
JAVA_HOME
variable to point at it.
Install a JDK with the IntelliJ IDE
For a more automated approach, you can request IntelliJ to install a JDK for you.
Follow their instructions here: https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk
Compile the source
The Kobweb CLI is actually maintained in a separate GitHub repo. Once you have the JDK set up, it should be easy to clone and build it:
Finally, update your PATH:
Update the Kobweb binary
If you previously installed Kobweb and are aware that a new version is available, the way you update it depends on how you installed it.
Method | Instructions |
---|---|
Homebrew | brew upgrade kobweb |
Scoop | scoop update kobweb |
SDKMAN! | sdk upgrade kobweb |
Arch Linux | Rerunning install steps should work. If using an AUR helper, you may need to review its manual. |
Downloaded from Github | Visit the latest release. You can find both a zip and tar file there. |