-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
CLI stabilization effort #7701
Copy link
Copy link
Open
Labels
RFCRelated to an accepted RFCRelated to an accepted RFCnew-cliRelating to the "nix" commandRelating to the "nix" command
Milestone
Metadata
Metadata
Assignees
Labels
RFCRelated to an accepted RFCRelated to an accepted RFCnew-cliRelating to the "nix" commandRelating to the "nix" command
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
In discussion
This is a DRAFT
Tracking for the stabilizing effort:
Tasks
--helpoptions make senseThe 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 daemonnix daemoncommand #9647nix narnix narand subcommands #8875nix hashnix hashand subcommands #8876nix hash convert [--type sha256] --from (base16|...|sri) --to base64 strings...nix hash pathnix hash path, text hashing fornix store add, and preparatory refactors #9815nix keynix key#8877nix confignix storenix store gcnix store gc: Stabilize #7608min-freeandmax-freeconfig options, and remove--maxflag--maxis closer to the understanding of--minand can/should also be idempotent relative to disk space?nix store pingStabilisenix store ping#8914nix store infonix store add-file,nix store add-pathStabilisenix store add#8915--recursiveshould be the default due to history and to match string-interpolation behavior--key valueorcreate PR to CLI guidelines--value1|--value2Not a blocker for stabilisationnix store import,nix store exportnix store deleteprovide better information about why something was not deletedNot required for stabilisationMakeNot required for stabilisationnix store delete ./resultwork #9475nix store optimiseTo be discussed
Stuff that hasn't been processed yet
nix copynix copy#8011nix describe-storesnix help-storesnix describe-stores --jsonformat is not extensible #7824nix {show-config,doctor}under subcommands #7672nix path-infopath-infoand C++ path info fields #10498nix buildnix developnix print-dev-envnix shellnix runnix searchnix replnix evalnix bundlenix editnix fmtnix lognix registrynix why-dependsnix derivationenvdoes not adhere to the JSON guidelines #9866nix profile:nix profilehas bad UX #7966nix realisationnix upgrade-nixnix flakeGlobal concerns
SettingstoLocalStoreConfig#7740--print-build-logsfrom various commands #7820Blocked on installables
nix shellnix shelldoes not insertPATHitems in command line order #7905To 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 repairnix store verifysigs-neededonly takes into account the cryptographic portion of the key, not the namenix store sign-r)--key-file -to read key from stdin, exclusive with--stdin, but then how to pass both via pipe?--pipe FDfor which--stdinis alias for--pipe /dev/fd/0?References
CLI Guidelines
legacy CLI mapping