You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-27
Original file line number
Diff line number
Diff line change
@@ -116,10 +116,11 @@ Commands:
116
116
help Print this message or the help of the given subcommand(s)
117
117
118
118
Options:
119
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
120
-
-v, --verbose Print debug messages
121
-
-h, --help Print help
122
-
-V, --version Print version
119
+
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
120
+
--lock-file <LOCK_FILE> Specifies the path to the sources.json and activates lockfile mode. In lockfile mode, no default.nix will be generated and --directory will be ignored
121
+
-v, --verbose Print debug messages
122
+
-h, --help Print help
123
+
-V, --version Print version
123
124
```
124
125
125
126
### Initialization
@@ -139,10 +140,9 @@ Intializes the npins directory. Running this multiple times will restore/upgrade
139
140
Usage: npins init [OPTIONS]
140
141
141
142
Options:
142
-
--bare Don't add an initial `nixpkgs` entry
143
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
144
-
-v, --verbose Print debug messages
145
-
-h, --help Print help
143
+
--bare Don't add an initial `nixpkgs` entry
144
+
-v, --verbose Print debug messages
145
+
-h, --help Print help
146
146
```
147
147
148
148
### Migrate from Niv
@@ -168,10 +168,9 @@ Arguments:
168
168
[PATH] [default: nix/sources.json]
169
169
170
170
Options:
171
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
172
-
-n, --name <NAME> Only import one entry from Niv
173
-
-v, --verbose Print debug messages
174
-
-h, --help Print help
171
+
-n, --name <NAME> Only import one entry from Niv
172
+
-v, --verbose Print debug messages
173
+
-h, --help Print help
175
174
```
176
175
177
176
### Adding dependencies
@@ -232,8 +231,6 @@ Arguments:
232
231
Options:
233
232
-b, --branch <BRANCH>
234
233
Track a branch instead of a release
235
-
-d, --directory <FOLDER>
236
-
Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
237
234
--name <NAME>
238
235
Add the pin with a custom name. If a pin with that name already exists, it will be overwritten
239
236
--at <tag or rev>
@@ -244,6 +241,8 @@ Options:
244
241
Print debug messages
245
242
--pre-releases
246
243
Also track pre-releases. Conflicts with the --branch option
244
+
-v, --verbose
245
+
Print debug messages
247
246
--upper-bound <version>
248
247
Bound the version resolution. For example, setting this to "2" will restrict updates to 1.X versions. Conflicts with the --branch option
249
248
--release-prefix <RELEASE_PREFIX>
@@ -266,9 +265,8 @@ Arguments:
266
265
<NAME>
267
266
268
267
Options:
269
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
270
-
-v, --verbose Print debug messages
271
-
-h, --help Print help
268
+
-v, --verbose Print debug messages
269
+
-h, --help Print help
272
270
```
273
271
274
272
### Show current entries
@@ -282,9 +280,8 @@ Lists the current pin entries
282
280
Usage: npins show [OPTIONS]
283
281
284
282
Options:
285
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
286
-
-v, --verbose Print debug messages
287
-
-h, --help Print help
283
+
-v, --verbose Print debug messages
284
+
-h, --help Print help
288
285
```
289
286
290
287
### Updating dependencies
@@ -301,14 +298,10 @@ Arguments:
301
298
[NAMES]... Updates only the specified pins
302
299
303
300
Options:
304
-
-d, --directory <FOLDER>
305
-
Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
306
301
-p, --partial
307
302
Don't update versions, only re-fetch hashes
308
303
-f, --full
309
304
Re-fetch hashes even if the version hasn't changed. Useful to make sure the derivations are in the Nix store
310
-
-v, --verbose
311
-
Print debug messages
312
305
-n, --dry-run
313
306
Print the diff, but don't write back the changes
314
307
--frozen
@@ -330,9 +323,8 @@ Upgrade the sources.json and default.nix to the latest format version. This may
330
323
Usage: npins upgrade [OPTIONS]
331
324
332
325
Options:
333
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
0 commit comments