|
OverviewKnife is a command-line tool that comes with Chef.It is used by administrators to interact with the Chef Server API, the local Chef repository and and can be used to manage environments within one Chef setup (or one organization on Hosted Chef).Knife's environment sub-command provides this capability.
createCreates a new environment object on the Chef Server. Usage: Knife will open $EDITOR and allow you to edit the ENVIRONMENT description. Once you are done editing, knife will save the environment to the Chef Server. Additional Options:
deleteDeletes an environment on the Chef Server. Usage: editEdit an existing environment using $EDITOR. Usage: from fileCreate or update an environment from a JSON or Ruby DSL description of the environment. See [Environment] for more details. Usage: listList all the of the environments saved on the Chef Server. Usage: Additional Options:
Example: To list nodes within an environment, use search. Within the context of search, the chef_environment of a node is treated like an attribute. The following will result in a list of nodes within a the dev environment: see Searching within Environments below for an additional example. showShow the information for a given environment. Usage: Examples: |
|
|


