1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 11:42:08 +02:00
tldr/pages/common/knife.md
Lena 7ca1069d76
pages/*: reword descriptions without using "a CLI for" etc. (#10437)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-07-16 19:23:40 +02:00

32 lines
542 B
Markdown

# knife
> Interact with a Chef server from a local Chef repo.
> More information: <https://docs.chef.io/knife.html>.
- 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}}`