CLI
The snowstead command pushes store paths to your caches.
Install
Browser login is available in the native CLI preview:
nix profile install github:Polymath-AS/snowstead/preview/rust-cli
Or run it once without installing: nix run github:Polymath-AS/snowstead/preview/rust-cli -- push …
snowstead login
Sign in once per machine. Open the printed URL, enter the eight-character code from your terminal, and choose the organization and caches the CLI can access:
snowstead login
Over SSH, use snowstead login --no-browser and open the URL on another device. No callback to your machine is needed.
Codes expire after ten minutes. Choose how long the CLI token lasts: 30 days, 90 days (the default), 1 year, or Never.
Approval grants Nix push and pull access to the caches you select. Choose All, including new ones to also allow caches created later.
Revoke the token in the dashboard to end access sooner.
For Go and sccache, create a token in the dashboard.
Credentials stay in ~/.config/snowstead/config.json, under the organization's slug. The latest login becomes the default;
use --server <name> to select another saved profile. snowstead auth status shows the active credential source
and verifies the token with the server. It reports the current permissions, cache scope, organization, and expiry, and rejects expired or revoked tokens.
If the server is unreachable, it reports that verification was unavailable. snowstead logout removes the local profile without revoking its token.
CI authentication
Without a browser, use a token from the dashboard. Set both environment variables on the push step; no browser login or saved config is needed:
export SNOWSTEAD_URL=https://api.snowstead.com # Set SNOWSTEAD_TOKEN through your CI secret store. snowstead push main --closure ./result
These variables override saved credentials. Uploads use https://api.snowstead.com, not the organization's read hostname.
snowstead push
Pushes store paths to a cache. With --closure, it pushes a path and everything it depends on:
snowstead push main /nix/store/…-hello-2.12.1 snowstead push main --closure ./result snowstead push main --closure .#nixosConfigurations.web-01.config.system.build.toplevel
It only uploads what the cache doesn't have yet, and prints a line per path and a summary at the end. Use --jobs <n> to set how many paths it uploads at once; the default is 32.
Storage limits
Your organization's assigned tier sets how much its caches can hold together. The Usage page shows the current limit and how much is used. Snowstead assigns tiers manually during beta. A push that would go over is refused before anything uploads, and says how much it needed:
[1/12] 0c5a8bvbj6ld1jdk7k1w5p4f5l9jwq8x-hello-2.12.1 FAIL: Not enough storage: this push needs 1.2 GB, and 310 MB of your 10 GB is left.