Skip to main content

astroctl_application_apply

astroctl application apply

Apply application template by file name

Synopsis

Deploy an application from a YAML specification file.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Application YAML format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ apiVersion: platform.astropulse.io/v1 kind: Application spec: name: myapp # required — unique within org, lowercase alphanumeric/hyphens profileName: my-profile # required — application profile (sets cluster + tier) source: type: image # image | helm | repository | yaml image: name: myrepo/myapp:v1.0.0 # required for image source namespace: myapp # optional — auto-generated from name if omitted syncType: auto # optional — auto (default) | manual

astroctl application apply [flags]

Examples


# Apply from file (K8s-style format)
astroctl app apply -f application.yaml

# Validate without deploying (dry-run)
astroctl app apply -f application.yaml --dry-run

# Pipe YAML inline (K8s-style)
echo 'apiVersion: platform.astropulse.io/v1
kind: Application
spec:
name: myapp
profileName: my-profile
source:
type: image
image:
name: myrepo/myapp:v1.0.0' | astroctl app apply -f -

# Or pipe a file
cat application.yaml | astroctl app apply -f -

Options

--dry-run Validate the application configuration without deploying
-f, --file string The files that contain the configurations to apply. Use '-' to read from stdin.
-h, --help help for apply

Options inherited from parent commands

-n, --name string name of the application
-o, --output string Output format (json|yaml) (default "yaml")

SEE ALSO