Skip to content

CLI Installation

RedstoneWizard08 edited this page Nov 17, 2024 · 2 revisions

There are various ways to install the KJSPKG CLI:

Via script (Linux/MacOS only) You can install the KJSPKG CLI with a handy script! Just run:
curl -fsSL https://github.com/RedstoneWizard08/kjspkg/raw/main/install_cli.sh | bash

Once you've run that, if ~/.local/bin is in your PATH, it should be installed!

Via PowerShell script (Windows only) You can install the KJSPKG CLI with a handy script! Just run:
Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://github.com/RedstoneWizard08/kjspkg/raw/main/install_cli.ps1").Content

Once you've run that, if $HOME\.local\bin is in your Path, it should be installed!

With `cargo-binstall` To install the KJSPKG CLI with `cargo-binstall`, you need to run:
cargo binstall kjspkg

As long as ~/.cargo/bin is in your PATH, the CLI (kjspkg) should be available!

With `cargo install` You can also install the KJSPKG CLI using `cargo install`, compiling it from the latest version on [crates.io](https://crates.io/crates/kjspkg)! Just run:
cargo install kjspkg

As long as ~/.cargo/bin is in your PATH, the CLI (kjspkg) should be available! Note that this option requires Rust to be installed: https://rustup.rs/

From source If you want the most bleeding-edge unreleased version of the CLI, you can install it from source:
# For Linux/MacOS
git clone https://github.com/RedstoneWizard08/kjspkg
cd kjspkg
cargo build --release -p kjspkg
cp target/release/kjspkg /path/to/your/bin/dir/kjspkg
# For Windows
git clone https://github.com/RedstoneWizard08/kjspkg
cd kjspkg
cargo build --release -p kjspkg
cp target/release/kjspkg.exe C:\path\to\your\bin\dir\kjspkg.exe

Note that this requires git, rust, and for Windows, MSVC to be installed.

Clone this wiki locally