wtree Cloud

Application commands

Create, deploy, configure and delete applications with the application group.

The application group creates, deploys and manages applications. You must be authenticated.

CommandWhat it does
wtree-cloud-cli application create --name <name> --environmentId <id>Create an application in an environment.
wtree-cloud-cli application one --applicationId <id>Get the details of an application.
wtree-cloud-cli application searchSearch applications, for example with --name or --q.
wtree-cloud-cli application deploy --applicationId <id>Deploy an application.
wtree-cloud-cli application redeploy --applicationId <id>Rebuild and deploy again.
wtree-cloud-cli application start --applicationId <id>Start an application.
wtree-cloud-cli application stop --applicationId <id>Stop a running application.
wtree-cloud-cli application kill-build --applicationId <id>Stop a build in progress.
wtree-cloud-cli application update --applicationId <id>Update the settings of an application.
wtree-cloud-cli application move --applicationId <id> --targetEnvironmentId <id>Move an application to another environment.
wtree-cloud-cli application delete --applicationId <id>Delete an application.

Source providers are configured with save-github-provider, save-gitlab-provider, save-bitbucket-provider, save-gitea-provider, save-git-provider and save-docker-provider. The build type uses save-build-type and variables use save-environment. Run wtree-cloud-cli application --help for the full list.

Examples

# Create an application
wtree-cloud-cli application create --name "my-app" --environmentId env123

# Deploy it
wtree-cloud-cli application deploy --applicationId app123

# Get its details as JSON
wtree-cloud-cli application one --applicationId app123 --json

Environment variables

save-environment replaces the environment variables, build arguments and build secrets of an application. All options are required; pass an empty string for those you don't use.

wtree-cloud-cli application save-environment \
  --applicationId app123 \
  --env "$(cat .env)" \
  --buildArgs "" \
  --buildSecrets "" \
  --createEnvFile

On this page