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.
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.
You can install stencil on macOS or Linux using Homebrew:
# Install stencil (requires homebrew installed)
$ brew install odpf/taps/stencil
# Upgrade stencil (requires homebrew installed)
$ brew upgrade stencil
# Check for installed stencil version
$ stencil version
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:odpf/stencil.git
# Check all build comamnds available
$ make help
# Build stencil binary file
$ make build
# Check for installed stencil version
$ ./stencil version
Stencil ships a Docker image odpf/stencil that enables you to use stencil as part of your Docker workflow.
For example, you can run stencil help with this command:
$ docker run odpf/stencil --help
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
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |