Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bash aliases for knife
# BOOTSTRAP COMMANDS
alias kb="knife bootstrap"
# alias k="knife bootstrap windows ssh FQDN
# alias k="knife bootstrap windows winrm FQDN
# CLIENT COMMANDS
alias kbdc="knife client bulk delete"
alias kcc="knife client create --editor /usr/bin/sublime"
alias kdc="knife client delete"
alias kec="knife client edit"
alias klc="knife client list"
alias krrc="knife client reregister"
alias ksc="knife client show"
# CONFIGURE COMMANDS
alias kconf="knife configure --editor /usr/bin/sublime"
alias kconfc="knife configure client --editor /usr/bin/sublime"
# COOKBOOK COMMANDS
alias kbdcb="knife cookbook bulk delete"
alias kccb="knife cookbook create --editor /usr/bin/sublime"
alias kdcb="knife cookbook delete"
alias kdowncb="knife cookbook download"
alias klcb="knife cookbook list"
alias kmcb="knife cookbook metadata"
alias kfcbm="knife cookbook metadata from"
alias kscb="knife cookbook show"
alias ktcb="knife cookbook test"
alias kupcb="knife cookbook upload"
# COOKBOOK SITE COMMANDS
alias kdowncbs="knife cookbook site download"
alias kinscbs="knife cookbook site install"
alias klcbs="knife cookbook site list"
alias kfindcbs="knife cookbook site search"
# alias kss="knife cookbook site share COOKBOOK CATEGORY
alias kscbs="knife cookbook site show"
# alias k="knife cookbook site unshare COOKBOOK
# DATA BAG COMMANDS
alias kcdb="knife data bag create --editor /usr/bin/sublime"
alias kddb="knife data bag delete"
alias kedb="knife data bag edit"
alias kfdb="knife data bag from file --editor /usr/bin/sublime"
alias kldb="knife data bag list"
alias ksdb="knife data bag show "
# EC2 COMMANDS
alias klec2f="knife ec2 flavor list"
alias ksec2="knife ec2 instance data "
alias kcec2="knife ec2 server create "
alias kdec2="knife ec2 server delete "
alias klec2="knife ec2 server list "
# ENVIRONMENT COMMANDS
alias kce="knife environment create --editor /usr/bin/sublime"
alias kde="knife environment delete"
alias kee="knife environment edit"
alias kfe="knife environment from file"
alias kle="knife environment list"
alias kse="knife environment show"
# EXEC COMMANDS
alias kexec="knife exec"
# HELP COMMANDS
alias kh="knife help"
# INDEX COMMANDS
alias ki="knife index rebuild "
# KNIFE COMMANDS
alias k="knife"
# NODE COMMANDS
alias kbdn="knife node bulk delete"
alias kcn="knife node create --editor /usr/bin/sublime"
alias kdn="knife node delete"
alias ken="knife node edit"
alias kfn="knife node from file "
alias kln="knife node list "
alias kanrl="knife node run_list add "
alias krnrl="knife node run_list remove "
alias ksnrl="knife node run_list set"
alias ksn="knife node show"
# PATH-BASED COMMANDS
alias kd="knife delete"
alias kdep="knife deps "
alias kdiff="knife diff"
alias kdown="knife download"
alias ke="knife edit"
alias kl="knife list"
alias ks="knife show"
alias kup="knife upload"
alias kxargs="knife xargs"
# RAW COMMANDS
alias kraw="knife raw"
# RECIPE COMMANDS
alias klrp="knife recipe list"
# ROLE COMMANDS
alias kbdr="knife role bulk delete"
alias kcr="knife role create --editor /usr/bin/sublime"
alias kdr="knife role delete "
alias ker="knife role edit"
alias kfr="knife role from file"
alias klr="knife role list "
alias ksr="knife role show "
# SEARCH COMMANDS
alias ksearch="knife search"
# SSH COMMANDS
alias kssh="knife ssh"
# STATUS COMMANDS
alias kstat="knife status"
# TAG COMMANDS
alias kct="knife tag create --editor /usr/bin/sublime"
alias kdt="knife tag delete"
alias klt="knife tag list"
# USER COMMANDS
alias kcu="knife user create --editor /usr/bin/sublime"
alias kdu="knife user delete"
alias keu="knife user edit"
alias klu="knife user list"
alias krru="knife user reregister"
alias ksu="knife user show"
# WINDOWS COMMANDS
# alias k="knife bootstrap windows winrm FQDN
# alias k="knife bootstrap windows ssh FQDN
# alias k="knife winrm QUERY COMMAND
# WINRM COMMANDS
# alias k="knife winrm QUERY COMMAND
@ringular

This comment has been minimized.

Copy link
Owner Author

commented Oct 10, 2014

Add [[ -s "$HOME/.chef_profile" ]] && source "$HOME/.chef_profile" # Load chef aliases to your bash_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.