Running Solution Directly
The run command is used to run the solution directly from the AppHost directory against a cluster within your KUBECONFIG.
The command will first create the manifest file, however, this can be overridden if you pass in the path to an existing manifest file using the --aspire-manifest
or -m
flag and supplying the path.
To clean-up after using the run command, you can use the Stop
command.
This deletes anything added to the Namespace within the state file, and removes the namespace.
Cli Options (Optional)
Option | Alias | Environmental Variable Counterpart | Description |
---|---|---|---|
--project-path | -p |
| The path to the aspire project. |
--aspire-manifest | -m |
| The aspire manifest file to use |
--skip-build |
| Skips build and Push of containers. | |
--namespace |
| Generates a Kubernetes Namespace resource, and applies the namespace to all generated resources. Will be used at deployment time. | |
--container-image-tag | -ct |
| The Container Image Tag to use as the fall-back value for all containers. |
--container-registry | -cr |
| The Container Registry to use as the fall-back value for all containers. |
--container-repository-prefix |
| The Container Repository Prefix to use as the fall-back value for all containers. | |
--container-builder |
| The Container Builder: can be | |
--image-pull-policy |
| The image pull policy to use for all containers in generated manifests. Can be | |
--disable-secrets |
| Disables secrets management features. | |
--runtime-identifier |
| Sets the runtime identifier for project builds. Defaults to | |
--secret-password |
| If using secrets, or you have a secret file - Specify the password to decrypt them | |
--non-interactive |
| Disables interactive mode for the command | |
--private-registry |
| Enables usage of a private registry - which will produce image pull secret. | |
--private-registry-url |
| The url for the private registry | |
--private-registry-username |
| The username for the private registry. This is required if passing | |
--private-registry-password |
| The password for the private registry. This is required if passing | |
--private-registry-email |
| The email for the private registry. This is purely optional and will default to | |
--include-dashboard |
| Boolean flag to specify if the Aspire dashboard should also be included in deployments. | |
--clear-namespace |
| Boolean flag to specify the specified namespace should automatically be cleaned during a deployment. | |
--launch-profile | -lp | 'ASPIRATE_LAUNCH_PROFILE' | The launch profile to use when building the Aspire Manifest. |