Skip to content

stratumctl image-recipes

Manage image build recipes

Terminal window
stratumctl image-recipes [flags]

Aliases: image-recipe, recipes

Start a build of a recipe now (returns the build; follow it with image-builds get/logs)

Terminal window
stratumctl image-recipes build <recipe-id> [flags]
Terminal window
stratumctl image-recipes build ir-8k2m4x7q9a
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Create an image recipe from a JSON file (–from-file - reads stdin)

Terminal window
stratumctl image-recipes create [flags]
Terminal window
stratumctl image-recipes create --from-file recipe.json
cat recipe.json | stratumctl image-recipes create --from-file -
Flag Type Default Description
--from-file string Path to the recipe JSON (required; - for stdin)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Delete an image recipe (refused while a build is in flight; output images stay)

Terminal window
stratumctl image-recipes delete <recipe-id> [flags]
Terminal window
stratumctl image-recipes delete ir-8k2m4x7q9a
Flag Type Default Description
--force bool false delete a platform-owned resource anyway (needs platform:ManageInternal; audited; the platform re-creates it)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe an image recipe

Terminal window
stratumctl image-recipes get <recipe-id> [flags]
Terminal window
stratumctl image-recipes get ir-8k2m4x7q9a
stratumctl image-recipes get ir-8k2m4x7q9a --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

List the project’s image recipes

Terminal window
stratumctl image-recipes list [flags]
Terminal window
stratumctl image-recipes list
stratumctl image-recipes list --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Replace an image recipe’s definition from a JSON file

Terminal window
stratumctl image-recipes update <recipe-id> [flags]
Terminal window
stratumctl image-recipes update ir-8k2m4x7q9a --from-file recipe.json
Flag Type Default Description
--from-file string Path to the recipe JSON (required; - for stdin)
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)