Open
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
--help
options 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 nar
and 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 hash
and 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 gc
nix store gc: Stabilize #7608- Make 'nix store gc' use the auto-GC policy #7851 : honor
min-free
andmax-free
config options, and remove--max
flag- note:
--max
is closer to the understanding of--min
and can/should also be idempotent relative to disk space?
- note:
- Make 'nix store gc' use the auto-GC policy #7851 : honor
-
nix store ping
Stabilisenix 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-path
Stabilisenix store add
#8915-
--recursive
should be the default due to history and to match string-interpolation behavior - need clarification of how to specify outputHashMode, outputHashAlgo, etc.
- expose as
--key value
orcreate PR to CLI guidelines--value1|--value2
-
-
Not a blocker for stabilisationnix store import
,nix store export
-
nix store delete
provide better information about why something was not deletedNot required for stabilisation-
MakeNot required for stabilisationnix store delete ./result
work #9475
-
nix store optimise
- stabilise as is!
-
To be discussed
Stuff that hasn't been processed yet
-
nix copy
-
nix describe-stores
nix 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 profile
has 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 cat
nix store ls
nix store copy-log
nix store copy-sigs
nix store diff-closures
nix store make-content-addressed
nix store path-from-hash-part
nix store prefetch-file
nix store repair
-
nix store verify
- document the defaults for the options
- ensure that
sigs-needed
only 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 FD
for which--stdin
is alias for--pipe /dev/fd/0
?
References
Metadata
Assignees
Type
Projects
Status
In discussion