Skip to main content

Knife supermarket compatibility

Marketplace supports all unauthenticated, read-only knife supermarket commands. The command syntax is the same as it is for Chef Supermarket, and no Marketplace credentials are required.

Configure Marketplace for all knife supermarket commands by adding the following setting to your knife.rb file:

knife[:supermarket_site] = "https://marketplace.chef.io"

After you configure knife[:supermarket_site], use your existing knife supermarket commands without any further changes. You can also apply Marketplace to a single command with the --supermarket-site https://marketplace.chef.io option, without changing knife.rb.

CommandMarketplace examplePurpose
knife supermarket download <cookbook-name>knife supermarket download <cookbook-name> --supermarket-site https://marketplace.chef.ioDownload a cookbook archive.
knife supermarket install <cookbook-name>knife supermarket install <cookbook-name> --supermarket-site https://marketplace.chef.ioInstall a cookbook into a local Git workflow.
knife supermarket listknife supermarket list --supermarket-site https://marketplace.chef.ioList available cookbooks.
knife supermarket search <search-query>knife supermarket search <search-query> --supermarket-site https://marketplace.chef.ioSearch available cookbooks.
knife supermarket show <cookbook-name>knife supermarket show <cookbook-name> --supermarket-site https://marketplace.chef.ioShow cookbook details.

Thank you for your feedback!

×