HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

nix flake info — Show flake metadata. More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-f

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandnix flake infometadatashowcliinformationflakemore

Problem

How to use the nix flake info command: Show flake metadata. More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake-info>.

Solution

nix flake info — Show flake metadata. More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-flake-info>.

Show flake metadata of the flake in the current directory:
nix flake info


Show flake metadata from GitHub as a json on a single line:
nix flake info {{github:owner/repo}} --json --no-pretty


Show flake metadata from Github as a multi-line indented json:
nix flake info {{github:owner/repo}} --json --pretty

Code Snippets

Show flake metadata of the flake in the current directory

nix flake info

Show flake metadata from GitHub as a json on a single line

nix flake info {{github:owner/repo}} --json --no-pretty

Show flake metadata from Github as a multi-line indented json

nix flake info {{github:owner/repo}} --json --pretty

Context

tldr-pages: common/nix flake info

Revisions (0)

No revisions yet.