Skip to main content

ankra stack-profiles

List, export, and import organisation-level stack profiles.

ankra stack-profiles apply

Apply (instantiate) a stack profile onto a cluster. By default this creates a reviewable stack DRAFT on the target cluster - nothing is deployed until you review it in the Ankra dashboard or pass —deploy. Bind profile parameters with —set name=value. For secret parameters prefer —set-file name=path or —set-env name=ENV_VAR so the value never appears in your shell history or process list. Use ‘ankra stack-profiles get <profile-id>’ to see which parameters a profile expects.
ankra stack-profiles apply [profile-id] [flags]
Flags
FlagDefaultDescription
--clusterTarget cluster name or ID (defaults to the selected cluster)
--deployfalseDeploy the stack immediately instead of leaving a draft for review
-o, --outputOutput format: json or yaml (default: human-readable)
--set[]Bind a parameter: name=value (repeatable; not for secrets)
--set-env[]Bind a parameter from an environment variable: name=ENV_VAR (repeatable; secret-safe)
--set-file[]Bind a parameter from a file: name=path (repeatable; secret-safe)
--stack-nameName for the new stack (defaults to the profile’s stack name)
--version0Profile version to apply (defaults to the profile’s current version)

ankra stack-profiles export-iac

Export a profile version as ClusterInfrastructureAsCode YAML
ankra stack-profiles export-iac [profile-id] [flags]
Flags
FlagDefaultDescription
-o, --outputWrite YAML to this file instead of stdout
--version1Profile version to export

ankra stack-profiles get

Describe a stack profile: its metadata, published versions, and the parameters you can bind when applying it.
ankra stack-profiles get [profile-id] [flags]
Flags
FlagDefaultDescription
-o, --outputOutput format: json or yaml (default: human-readable)
--version0Profile version to describe (defaults to the current version)

ankra stack-profiles import

Import a profile from a ClusterInfrastructureAsCode YAML file
ankra stack-profiles import [file] [flags]
Flags
FlagDefaultDescription
--categorygeneralProfile category
--nameProfile name (defaults to metadata.name in the file)

ankra stack-profiles list

List stack profiles in the active organisation
ankra stack-profiles list [flags]
Flags
FlagDefaultDescription
-o, --outputOutput format: json or yaml (default: human-readable)
--page1Page number
--page-size25Page size
--searchFilter profiles by name