Skip to content

recipe-validate

Shortcut: rv

Help option

~ $ dk recipe-validate --help


Current context is: default
Usage: dk recipe-validate [OPTIONS]

  Validates local copy of a Recipe, returning a list of errors and warnings.
  If there are no local changes, will only validate remote files.

Options:
  -v, --variation       Variation name  [required]
  --help            Show this message and exit.

Validate recipe with no local changes

~/Kitchens/Dev_Sprint/Recipe1 $ dk recipe-validate --variation Variation1


Current context is: default
YYYY-MM-DD HH:MM:SS - Validating recipe/variation Recipe-1.Variation1 in Kitchen DevSprint
There are no local changes. Validating recipe with remote version.
DKCloudCommand.recipe_validate succeeded
No recipe issues identified.

Validate recipe with local changes using shortcuts

~/Kitchens/Dev_Sprint/Recipe1 $ dk rv -v Variation1


Current context is: default
YYYY-MM-DD HH:MM:SS - Validating recipe/variation Recipe1.Variation1 in Kitchen Dev_Sprint
Validating recipe with local changes applied
Recipe issues identified with the following files:
variables.json:
        Error: Cannot parse the file, please check.