Skip to main content

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:
repository: myrepo/myapp # required — <registry-user>/<image-name>
tag: v1.0.0 # required — image tag
namespace: myapp # optional — auto-generated from name if omitted
syncType: auto # optional — auto (default) | manual
externalAccess: # optional — omit if the app needs no external access
domain: example.com # a VERIFIED domain → auto-generated <app>-<id>.example.com
# hostname: shop.example.com # OR serve at exactly this (apex or a hostname under a verified domain)
# accessType: None # explicitly internal-only
astroctl application apply [flags]

Examples


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

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

# Pipe YAML inline (declarative manifest)
echo 'apiVersion: platform.astropulse.io/v1
kind: Application
spec:
name: myapp
profileName: my-profile
source:
type: image
image:
repository: myrepo/myapp
tag: 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