Installation
Stencil installation is simple. You can install Stencil on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine. There are several approaches to installing Stencil.
- Using a pre-compiled binary
- Installing with package manager
- Installing with Docker
- Installing from source
Binary (Cross-platform)β
Download the appropriate version for your platform from releases page. Once downloaded, the binary can be run from anywhere.
You donβt need to install it into a global location. This works well for shared hosts and other systems where you donβt have a privileged account.
Ideally, you should install it somewhere in your PATH
for easy use. /usr/local/bin
is the most probable location.
MacOSβ
stencil
is available via a Homebrew Tap, and as downloadable binary from the releases page:
brew install raystack/tap/stencil
To upgrade to the latest version:
brew upgrade stencil
Linuxβ
stencil
is available as downloadable binaries from the releases page. Download the .deb
or .rpm
from the releases page and install with sudo dpkg -i
and sudo rpm -i
respectively.
Windowsβ
stencil
is available via scoop, and as a downloadable binary from the releases page:
scoop bucket add stencil https://github.com/raystack/scoop-bucket.git
To upgrade to the latest version:
scoop update stencil
Dockerβ
We provide ready to use Docker container images. To pull the latest image:
docker pull raystack/stencil:latest
To pull a specific version:
docker pull raystack/stencil:v0.5.1
Building from sourceβ
To compile from source, you will need Go installed and a copy of git in your PATH
.
# Clone the repo
$ git clone git@github.com:raystack/stencil.git
# Check all build comamnds available
$ make help
# Build stencil binary file
$ make build
# Check for installed stencil version
$ ./stencil version
Verifying the installationβ
To verify Stencil is properly installed, run stencil --help
on your system. You should see help output. If you are executing it from the command line, make sure it is on your PATH
or you may get an error about Stencil not being found.
$ stencil --help