LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

knife

command-line tool for Chef infrastructure automation

TLDR

Bootstrap node
$ knife bootstrap [host] -x [user] -P [password]
copy
List nodes
$ knife node list
copy
Show node info
$ knife node show [node_name]
copy
Upload cookbook
$ knife cookbook upload [cookbook]
copy
Search nodes
$ knife search node "role:[webserver]"
copy
SSH to nodes
$ knife ssh "role:[webserver]" "[command]"
copy

SYNOPSIS

knife command [subcommand] [options]

DESCRIPTION

knife is the command-line tool for Chef infrastructure automation. It manages nodes, cookbooks, and Chef server.The tool bootstraps nodes for configuration management. It uploads recipes and queries infrastructure.

PARAMETERS

bootstrap HOST

Bootstrap Chef on node.
node CMD
Node management.
cookbook CMD
Cookbook operations.
search TYPE QUERY
Search Chef server.
ssh QUERY CMD
Run command via SSH.
-x USER
SSH username.
--help
Display help information.

CAVEATS

Requires Chef Workstation. Chef server access needed. Ruby-based.

HISTORY

knife is part of Chef, the infrastructure automation platform created by Opscode (now Progress Chef).

SEE ALSO

chef(1), berks(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid