mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 14:33:40 +02:00
knife: add page (#2624)
This commit is contained in:
parent
0642c84562
commit
5e32343c5c
1 changed files with 31 additions and 0 deletions
31
pages/common/knife.md
Normal file
31
pages/common/knife.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
# knife
|
||||
|
||||
> CLI for interacting with a Chef server from a local Chef repo.
|
||||
|
||||
- Bootstrap a new node:
|
||||
|
||||
`knife bootstrap {{fqdn_or_ip}}`
|
||||
|
||||
- List all registered nodes:
|
||||
|
||||
`knife node list`
|
||||
|
||||
- Show a node:
|
||||
|
||||
`knife node show {{node_name}}`
|
||||
|
||||
- Edit a node:
|
||||
|
||||
`knife node edit {{node_name}}`
|
||||
|
||||
- Edit a role:
|
||||
|
||||
`knife role edit {{role_name}}`
|
||||
|
||||
- View a data bag:
|
||||
|
||||
`knife data bag show {{data_bag_name}} {{data_bag_item}}`
|
||||
|
||||
- Upload a local cookbook to the Chef server:
|
||||
|
||||
`knife cookbook upload {{cookbook_name}}`
|
Loading…
Add table
Reference in a new issue