tldr/pages/common/knife.md

33 lines
542 B
Markdown
Raw Normal View History

2018-12-01 18:07:13 +00:00
# knife
> Interact with a Chef server from a local Chef repo.
2019-06-05 08:55:47 +01:00
> More information: <https://docs.chef.io/knife.html>.
2018-12-01 18:07:13 +00:00
- 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}}`