mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
746 B
Plaintext
26 lines
746 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# nix flake show
|
|
|
|
> Show outputs provided by a flake.
|
|
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake-show.html>.
|
|
|
|
- Show all the outputs of the flake in the current directory:
|
|
|
|
`nix flake show`
|
|
|
|
- Show all the outputs of a flake on GitHub and print the output as a json on a single line:
|
|
|
|
`nix flake show {{github:owner/repo}} --json --no-pretty`
|
|
|
|
- Show all the `legacyPackages` outputs of a flake on GitHub and print the output as a multi-line indented json:
|
|
|
|
`nix flake show {{github:owner/repo}} --json --pretty --legacy`
|
|
|
|
- List all available flake templates for `nix flake init`:
|
|
|
|
`nix flake show templates`
|