Installation
Install imgen with the install script, from a prebuilt release, or build it from source with Cargo.
curl -fsSL https://raw.githubusercontent.com/casoon/imgen/master/install.sh | shWorks on macOS and Linux. The script picks the archive for your platform from the latest release,
verifies it against the published SHA256SUMS and installs the binary to /usr/local/bin.
Two environment variables change its behaviour:
| Variable | Effect |
|---|---|
IMGEN_INSTALL_DIR |
Target directory, default /usr/local/bin |
VERSION |
Install a specific release instead of the latest one |
curl -fsSL https://raw.githubusercontent.com/casoon/imgen/master/install.sh \
| IMGEN_INSTALL_DIR="$HOME/.local/bin" VERSION=0.3.1 shEach GitHub release has four archives:
| Archive | Platform |
|---|---|
imgen-aarch64-apple-darwin.tar.gz |
macOS, Apple silicon |
imgen-x86_64-apple-darwin.tar.gz |
macOS, Intel |
imgen-aarch64-unknown-linux-gnu.tar.gz |
Linux, arm64 |
imgen-x86_64-unknown-linux-gnu.tar.gz |
Linux, x86_64 |
SHA256SUMS next to them carries the checksums. Each archive contains the single imgen binary.
Unpack it into a directory on your PATH:
tar xzf imgen-aarch64-apple-darwin.tar.gz
mv imgen ~/.local/bin/cargo install --git https://github.com/casoon/imgenNeeds a Rust toolchain. TLS uses rustls, so no OpenSSL is required.
git clone https://github.com/casoon/imgen.git
cd imgen
cargo install --path .Caution
imgen is not published on crates.io. The crate named
imgen there is a
different project, so cargo install imgen installs something else.Verify the install
imgen --version
# imgen 0.3.1
Next, set up your API token.