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: chef/distro/common/man/man8/knife.8
+35-19Lines changed: 35 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,9 @@ Set the log level (debug, info, warn, error, fatal)
29
29
\fB\-L\fR, \fB\-\-logfile\fR LOGLOCATION
30
30
Set the log file location, defaults to STDOUT
31
31
.TP
32
+
\fB\-n\fR, \fB\-\-no\-editor\fR
33
+
Do not open EDITOR, just accept the data as is
34
+
.TP
32
35
\fB\-u\fR, \fB\-\-user\fR USER
33
36
API Client Username
34
37
.TP
@@ -49,13 +52,12 @@ Knife sub-commands are structured as "NOUN verb NOUN (options)". The sub-command
49
52
.TP
50
53
Sub-commands related to working with clients, which are registered entities that access the Chef server.
51
54
.TP
52
-
.Bclientbulkdelete\fI(options)\fR
53
-
.TP
54
-
\fB\-r\fR, \fB\-\-regex\fR [REGEX]
55
-
Narrow the operation via regular expression
55
+
.BclientbulkdeleteREGEX\fI(options)\fR
56
56
.PP
57
-
Delete all the clients on the Chef server, or only certain clients based on a regular expression.
57
+
Delete clients on the Chef server based on a regular expression.
58
58
.PP
59
+
The regular expression (REGEX) here should be in quotes, not //'s.
60
+
.TP
59
61
.BclientcreateCLIENT(options)
60
62
.TP
61
63
\fB\-f\fR, \fB\-\-file\fR FILE
@@ -95,12 +97,11 @@ Show a client.
95
97
.TP
96
98
Cookbooks are the fundamental unit of distribution in Chef. They encapsulate all the recipes of resources and the assets used to configure a particular aspect of the infrastructure.
97
99
.PP
98
-
.BcookbookbulkdeleteCOOKBOOK(options)
99
-
.TP
100
-
\fB\-r\fR, \fB\-\-regex\fR [REGEX]
101
-
Narrow the operation via regular expression
100
+
.BcookbookbulkdeleteCOOKBOOKREGEX(options)
101
+
.PP
102
+
Delete cookbooks based on a regular expression.
102
103
.PP
103
-
Delete all the cookbooks on the Chef server, or use a regular expression to only delete certain cookbooks.
104
+
The regular expression (REGEX) here should be in quotes, not //'s.
104
105
.PP
105
106
.BcookbookdeleteCOOKBOOK(options)
106
107
.PP
@@ -143,7 +144,7 @@ The platform version to see the file for
143
144
.PP
144
145
Show the particular part of a COOKBOOK. PART can be one of:
@@ -184,12 +185,11 @@ Show a specific data bag or an item in a data bag.
184
185
.PP
185
186
Nodes are the entities which are configured with Chef, typically servers or workstations. Nodes are registered as a client, typcially of the same name, but a single client might represent one or more nodes.
186
187
.PP
187
-
.Bnodebulkdelete(options)
188
+
.BnodebulkdeleteREGEX(options)
188
189
.TP
189
-
\fB\-r\fR, \fB\-\-regex\fR [REGEX]
190
-
Narrow the operation via regular expression
190
+
Delete nodes based on a regular expression.
191
191
.PP
192
-
Delete all nodes, or only certain nodes based on a regular expression.
192
+
The regular expression (REGEX) here should be in quotes, not //'s.
193
193
.PP
194
194
.BnodecreateNODE(options)
195
195
.PP
@@ -238,12 +238,11 @@ Show a node.
238
238
.PP
239
239
Roles provide a mechanism to apply a set of recipes and attributes to nodes. For example, the 'webserver' role might instruct Chef to add a recipe for Apache, and specify a default domain to use.
240
240
.PP
241
-
.Brolebulkdelete(options)
241
+
.BrolebulkdeleteREGEX(options)
242
242
.TP
243
-
\fB\-r\fR, \fB\-\-regex\fR [REGEX]
244
-
Narrow the operation via regular expression
243
+
Delete roles based on a regular expression.
245
244
.PP
246
-
Delete all roles, or only certain roles based on a regular expression.
245
+
The regular expression (REGEX) here should be in quotes, not //'s.
247
246
.PP
248
247
.BrolecreateROLE(options)
249
248
.TP
@@ -315,6 +314,17 @@ The order to sort the results in
315
314
The row to start returning results at
316
315
.PP
317
316
Search indexes are a powerful feature of the Chef server and the search subcommand allows searching any of the available indexes using the SOLR query syntax.
317
+
.PP
318
+
.BsshQUERYCOMMAND(options)
319
+
.TP
320
+
\fB\-a\fR, \fB\-\-attribute\fR ATTR
321
+
The attribute to use for opening the connection \- default is fqdn
322
+
.TP
323
+
\fB\-C\fR, \fB\-\-concurrency\fR NUM
324
+
The number of concurrent connections
325
+
.PP
326
+
The ssh sub-command requires the net-ssh-multi Ruby library.
327
+
.PP
318
328
.SH CONFIGURATION
319
329
The knife configuration file is a Ruby DSL. If it exists, knife uses the settings for \fBGENERALOPTIONS\fR defaults.
320
330
.TP
@@ -338,6 +348,12 @@ The type of cache to use. Default is \fIBasicFile\fR. This can be any type of Ca
338
348
.TP
339
349
.Bcache_options
340
350
Specifies various options to use for caching. Default reads the Chef client configuration (/etc/chef/checksums).
351
+
.TP
352
+
.Bvalidation_client_name
353
+
Specifies the name of the client used to validate new clients. This is requested from the user when running the configuration sub-command.
354
+
.TP
355
+
.Bvalidation_key
356
+
Specifies the private key file to use for generating ec2 instance data for validating new clients. This is implied from the validation_client_name.
0 commit comments