Hello @sfeldkamp
You can do this with the cloudron cli or the API.
API example based on the Cloudron LAMP app:
export ACCESS_TOKEN="YOUR_CLOUDRON_TOKEN"
export CLOUDRON_DOMAIN="my.DOMAIN.TLD"
curl "https://${CLOUDRON_DOMAIN}/api/v1/apps?access_token=${ACCESS_TOKEN}" \
-H 'content-type: application/json' \
--data-raw '{"appStoreId":"lamp.cloudronapp.php74@5.0.1","subdomain":"domain1","domain":"cloudron.dev","secondaryDomains":{},"aliasDomains":[{"domain": "cloudron.dev", "subdomain": "domain2"}, {"domain": "cloudron.dev", "subdomain": "*.wildcarddomain"}],"ports":{},"accessRestriction":null}'
CLI example based on the Cloudron LAMP app:
cloudron install --appstore-id "lamp.cloudronapp.php74@5.0.1" --location "domain1" --alias-domains "domain2,*.wildcarddomain"
CLI example for a custom app:
Note: I am using the yq tool to get the id and version from the CloudronManifest.json since this is how I also build the docker images for convenience.
Info: You need to add "multiDomain": true, to the CloudronManifest.json to enable domain aliases, see: https://docs.cloudron.io/packaging/manifest/#multidomain
cloudron install --location $(yq -r .id CloudronManifest.json) --image dr.cloudron.dev/$(yq -r .id CloudronManifest.json):$(yq -r .version CloudronManifest.json) --alias-domains "domain2,*.wildcarddomain"