-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
RFCRelated to an accepted RFCRelated to an accepted RFCnew-cliRelating to the "nix" commandRelating to the "nix" command
Milestone
Description
This is a DRAFT
Tracking for the stabilizing effort:
Tasks
- consider feature mappings with legacy CLI (not expected to be 1-1)
- review correctness of command
- do all
--helpoptions make sense - create any issues or PRs to resolve the above, we will link it here for tracking
- verify "ready for stabilization"
The goal isn't to stabilize the whole CLI at once. A bunch of less-frequent commands can wait for a bit while we focus on the most important ones.
First batch of stabilization
-
nix daemon -
nix nar- Stabilise
nix narand subcommands #8875 - request for contributions: make this usable as a general utility. eg: the unpack/extract
- rename to pack/unpack
- (non-blockers) refine other subcommands such as cat, ls, tar conversions
- Stabilise
-
nix hash- rename sub-commands: Stabilise
nix hashand subcommands #8876 -
nix hash convert [--type sha256] --from (base16|...|sri) --to base64 strings... -
nix hash path
- rename sub-commands: Stabilise
-
nix key - new-command:
nix config- Check
- Show
-
nix store-
nix store gcnix store gc: Stabilize #7608- Make 'nix store gc' use the auto-GC policy #7851 : honor
min-freeandmax-freeconfig options, and remove--maxflag- note:
--maxis closer to the understanding of--minand can/should also be idempotent relative to disk space?
- note:
- Make 'nix store gc' use the auto-GC policy #7851 : honor
-
nix store pingStabilisenix store ping#8914- trusted returned as integer is awkward, should be a boolean
- rename to
nix store info
-
nix store add-file,nix store add-pathStabilisenix store add#8915-
--recursiveshould be the default due to history and to match string-interpolation behavior - need clarification of how to specify outputHashMode, outputHashAlgo, etc.
- expose as
--key valueorcreate PR to CLI guidelines--value1|--value2
-
-
Not a blocker for stabilisationnix store import,nix store export -
nix store deleteprovide better information about why something was not deletedNot required for stabilisation-
MakeNot required for stabilisationnix store delete ./resultwork #9475
-
nix store optimise- stabilise as is!
-
To be discussed
Stuff that hasn't been processed yet
-
nix copy -
nix describe-storesnix help-stores -
nix path-info -
nix build -
nix develop -
nix print-dev-env -
nix shell -
nix run -
nix search -
nix repl- Technically already stable
-
nix eval -
nix bundle -
nix edit -
nix fmt -
nix log -
nix registry -
nix why-depends -
nix derivation -
nix profile:nix profilehas bad UX #7966 -
nix realisation -
nix upgrade-nix -
nix flake
Global concerns
- settings
- config
- flags
- layering, see: [RFC 0136] A plan to stabilize the new CLI and Flakes incrementally rfcs#136
- (non-blocking) Can't add a file from stdin #7773
Blocked on installables
-
nix shell - ...
To stabilise in a later batch
These are low priority and have more involved background issues we have to clarify first
nix store catnix store lsnix store copy-lognix store copy-sigsnix store diff-closuresnix store make-content-addressednix store path-from-hash-partnix store prefetch-filenix store repair-
nix store verify- document the defaults for the options
- ensure that
sigs-neededonly takes into account the cryptographic portion of the key, not the name
-
nix store sign- see previous: Unsigned derivations uploaded to S3 #6960 (comment)
- QUESTION: sign only until other signatures encountered (limited
-r) -
--key-file -to read key from stdin, exclusive with--stdin, but then how to pass both via pipe? - QUESTION: add a
--pipe FDfor which--stdinis alias for--pipe /dev/fd/0?
References
thufschmitt, aaronjheng, cdepillabout, ryan4yin, bodadotsh and 24 morealyssais, ryan4yin, minghongx, andriyor, cottand and 5 morethufschmitt, aaronjheng, dryya, ryan4yin, Minion3665 and 3 morerjpcasalino, ryan4yin, goyalyashpal, bvngee, arut-plus and 1 more
Metadata
Metadata
Assignees
Labels
RFCRelated to an accepted RFCRelated to an accepted RFCnew-cliRelating to the "nix" commandRelating to the "nix" command
Type
Projects
Status
In discussion