Skip to content

mrhenry/nix-shopify-cli

Repository files navigation

Shopify CLI packaged for Nix

This is the shopify-cli packaged for Nix.

Installation

nix profile install github:mrhenry/nix-shopify-cli

Alternatively you can just run the CLI directly without permanently installing it:

nix run github:mrhenry/nix-shopify-cli -- <args>

Usage as a flake

FlakeHub

Add nix-shopify-cli to your flake.nix:

{
  inputs.nix-shopify-cli.url = "https://flakehub.com/f/mrhenry/nix-shopify-cli/*.tar.gz";

  outputs = { self, nix-shopify-cli }: {
    # Use in your outputs
  };
}

Supported Systems

  • x86_64-linux
  • x86_64-darwin
  • aarch64-linux
  • aarch64-darwin

Build

nix build
nix flake check

How to build a new version of shopify

  1. Update the package.json with the new version
  2. Run nix develop --command update-hashes
  3. Run nix flake check again, now it should build the new version.
  4. Run nix run -- <some args> to test the new version.
  5. When you are happy with the new version:
    1. push the changes to GitHub
    2. nix develop --command do-release
    3. Publish the draft release on github