Skip to main content

Building a Custom Knife Plugin

Hands-On Lab


Photo of

Training Architect





Occasionally, we need to be able to interact with our Chef Server from our workstations in a way that Knife doesn't handle by default. Whether the situation is that we need to interact with a private cloud, manipulate data from the Chef Server in a specific way, or want to add completely new functionality to Knife, writing a custom plugin can be a good approach. In this hands-on lab, you'll write a Knife plugin that will allow you to export node information from the Chef Server in CSV format so it can be used by others in their spreadsheet application of choice. By the time you've finished this lab, you should feel comfortable structuring a custom Knife plugin so you can add more functionality to Knife in the future.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.