2021-02-15 00:41:15 +00:00
|
|
|
# update
|
|
|
|
The `update` subcommand is a simple alias for:
|
|
|
|
```sh
|
|
|
|
nix flake update --recreate-lock-file --commit-lock-file
|
|
|
|
```
|
|
|
|
As it sounds, this will update your lock file, and commit it.
|
2021-02-23 02:49:31 +00:00
|
|
|
|
|
|
|
## Updating Package Sources
|
|
|
|
If you pass an input name then it will only update that input.
|
|
|
|
|
|
|
|
For example, you can update any
|
|
|
|
[package sources](../../pkgs#automatic-source-updates) you may have declared
|
|
|
|
in _pkgs/flake.nix_:
|
|
|
|
```sh
|
|
|
|
flk update srcs
|
|
|
|
```
|