Skip to main content

Add a Chef license key

To use Chef products that require a license, you need to add your license key. You can find your license key in the customer support portal.

Products that require a Chef license key

You need a Chef license key to run the following products:

  • Chef InSpec 6

You might need a Chef license key to run the following products, depending on the distribution:

  • Chef InSpec 7

For these products, you need a license depending on how you install it:

  • The Chef Habitat package for InSpec 7 doesn’t require a license key to run.
  • The inspec gem requires a license key to run.

You can’t manually enable or disable licensing. The licensing requirements are determined by the distribution.

Add a license key

Chef products accept a license key through an environment variable or a command line argument. Chef stores license data locally in a configuration file at $HOME/.chef/licenses.yaml.

Use a command line option

To add a license key, use the --chef-license-key command line option:

<CHEF_PRODUCT_COMMAND> --chef-license-key <LICENSE_KEY>

Use an environment variable

To add a license key, set the CHEF_LICENSE_KEY environment variable:

export CHEF_LICENSE_KEY=<LICENSE_KEY>
<CHEF_PRODUCT_COMMAND>
Edit this page on GitHub

Thank you for your feedback!

×