{"repo":"DeterminateSystems/fh","free":true,"listed":false,"github":"https://github.com/DeterminateSystems/fh","clone":"git clone https://github.com/DeterminateSystems/fh.git","description":"The official CLI for FlakeHub: search for flakes, and add new inputs to your Nix flake.","language":"Rust","stars":162,"topics":["cli","flake","nix","nixos"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"fh, the official FlakeHub CLI fh is a scrappy CLI for searching [FlakeHub] and adding new [inputs] to your [Nix flakes][nix-flakes]. Usage Using fh from FlakeHub: [!NOTE] This builds fh locally on your computer. Pre-built binaries aren't yet available. Installation NixOS To make the fh CLI readily available on a [NixOS] system: Using fh You can use fh to: - Log into FlakeHub - Check FlakeHub login status - Initialize a new flake.nix - Add flake inputs to your flake.nix - Fetch flake outputs directly from FlakeHub Cache - Resolve flake references to store paths - Apply NixOS, Home Manager, and nix-darwin configurations to the current system - Convert flake inputs to use FlakeHub - Eject flake inputs - Search FlakeHub flakes - List available releases and flakes, organizations, and versions - List flakes by label Log into FlakeHub fh is the standard way to set up your local Nix to use [FlakeHub]'s advanced features like [FlakeHub Cache][cache] and private flakes: This will prompt you for a FlakeHub token that you can obtain under [ Tokens ][tokens] on your [user settings page][settings]. Click New to create a new token, provide your desired configuration, copy the token, paste it into the prompt, and follow the remaining instructions. Check FlakeHub login status You can check your current login status vis-à-vis [FlakeHub] using the fh status command: If you are currently logged in, the command returns information like this: Initialize a new flake.nix from scratch fh init generat","default_branch":null,"files":null,"tree":[],"storefront":"/r/DeterminateSystems","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DeterminateSystems/fh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}