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
+26-35
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
@@ -211,12 +210,11 @@ Commands:
211
210
help Print this message or the help of the given subcommand(s)
212
211
213
212
Options:
214
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
215
-
--name <NAME> Add the pin with a custom name. If a pin with that name already exists, it will be overwritten
216
-
--frozen Add the pin as frozen, meaning that it will be ignored by `npins update` by default
217
-
-v, --verbose Print debug messages
218
-
-n, --dry-run Don't actually apply the changes
219
-
-h, --help Print help
213
+
--name <NAME> Add the pin with a custom name. If a pin with that name already exists, it will be overwritten
214
+
--frozen Add the pin as frozen, meaning that it will be ignored by `npins update` by default
215
+
-n, --dry-run Don't actually apply the changes
216
+
-v, --verbose Print debug messages
217
+
-h, --help Print help
220
218
```
221
219
222
220
There are several options for tracking git branches, releases and tags:
@@ -233,18 +231,16 @@ Arguments:
233
231
Options:
234
232
-b, --branch <BRANCH>
235
233
Track a branch instead of a release
236
-
-d, --directory <FOLDER>
237
-
Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
238
234
--name <NAME>
239
235
Add the pin with a custom name. If a pin with that name already exists, it will be overwritten
240
236
--at <tag or rev>
241
237
Use a specific commit/release instead of the latest. This may be a tag name, or a git revision when --branch is set
242
238
--frozen
243
239
Add the pin as frozen, meaning that it will be ignored by `npins update` by default
244
-
-v, --verbose
245
-
Print debug messages
246
240
--pre-releases
247
241
Also track pre-releases. Conflicts with the --branch option
242
+
-v, --verbose
243
+
Print debug messages
248
244
--upper-bound <version>
249
245
Bound the version resolution. For example, setting this to "2" will restrict updates to 1.X versions. Conflicts with the --branch option
250
246
--release-prefix <RELEASE_PREFIX>
@@ -267,9 +263,8 @@ Arguments:
267
263
<NAME>
268
264
269
265
Options:
270
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
271
-
-v, --verbose Print debug messages
272
-
-h, --help Print help
266
+
-v, --verbose Print debug messages
267
+
-h, --help Print help
273
268
```
274
269
275
270
### Show current entries
@@ -283,9 +278,8 @@ Lists the current pin entries
283
278
Usage: npins show [OPTIONS]
284
279
285
280
Options:
286
-
-d, --directory <FOLDER> Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
287
-
-v, --verbose Print debug messages
288
-
-h, --help Print help
281
+
-v, --verbose Print debug messages
282
+
-h, --help Print help
289
283
```
290
284
291
285
### Updating dependencies
@@ -302,16 +296,14 @@ Arguments:
302
296
[NAMES]... Updates only the specified pins
303
297
304
298
Options:
305
-
-d, --directory <FOLDER>
306
-
Base folder for sources.json and the boilerplate default.nix [env: NPINS_DIRECTORY=] [default: npins]
307
299
-p, --partial
308
300
Don't update versions, only re-fetch hashes
309
301
-f, --full
310
302
Re-fetch hashes even if the version hasn't changed. Useful to make sure the derivations are in the Nix store
311
-
-v, --verbose
312
-
Print debug messages
313
303
-n, --dry-run
314
304
Print the diff, but don't write back the changes
305
+
-v, --verbose
306
+
Print debug messages
315
307
--frozen
316
308
Allow updating frozen pins, which would otherwise be ignored
0 commit comments