Install knife
knife is included as a component of Chef Workstation, but you can also install it as a standalone package. The knife standalone installation doesn’t include the knife cloud provider plugins (knife-ec2, knife-google, knife-windows). For that reason, Progress Chef recommends installing Chef Workstation, which includes knife and the knife cloud provider plugins.
If you want to install knife as a standalone component, follow the steps below.
Requirements
knife has the following requirements:
- Supported on Linux (Ubuntu 18.04+, CentOS 7+, RHEL 7+), macOS 10.15+, or Windows 10/Server 2016+
- Chef Habitat 1.6.0 or later installed
- Internet connectivity for package download and bootstrapping remote nodes
- SSH or WinRM to manage remote nodes
Install the knife standalone package
To install the knife standalone package, follow these steps:
Install knife:
hab pkg install chef/knife --channel unstable --binlink --forceOptional: After installation, verify knife is installed and working:
knife --version