Installation
The Neocache CLI (neocache) is available through multiple installation methods.
Using Nix (Recommended)
Flakes
Add Neocache to your flake inputs:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
neocache.url = "github:neocache/neocache";
};
outputs = { self, nixpkgs, neocache, ... }: {
# Add to your packages
devShells.default = pkgs.mkShell {
packages = [ neocache.packages.${system}.default ];
};
};
}
Profile Install
For a quick global install:
nix profile install github:neocache/neocache
Ad-hoc Shell
Try it without installing:
nix shell github:neocache/neocache
neocache --help
Using Cargo
If you have Rust installed:
cargo install neocache
From Source
Clone and build:
git clone https://github.com/neocache/neocache
cd neocache
cargo build --release
The binary will be at ./target/release/neocache.
Verify Installation
neocache --version
# neocache 0.1.0
Shell Completions
Generate shell completions for your shell:
# Bash
neocache completions bash > ~/.local/share/bash-completion/completions/neocache
# Zsh
neocache completions zsh > ~/.zfunc/_neocache
# Fish
neocache completions fish > ~/.config/fish/completions/neocache.fish