The man page for the knife exec subcommand. the knife exec subcommand uses the knife configuration file to execute ruby scripts in the context of a fully configured chef-client. this subcommand is most often used to run scripts that will only access server one time (or otherwise very infrequently). use this subcommand any time that an operation does not warrant full usage of the knife subcommand library. authenticated api requests the knife exec subcommand can be used to make authenticated api requests to the server using the following methods:
Chef