From 3f00c162bcb2ad61157e78c62893e31895184efb Mon Sep 17 00:00:00 2001 From: Kemi-Elizabeth <97071326+Kemi-Elizabeth@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:29:39 +0100 Subject: [PATCH 1/2] Added console tab for runtime operation Added tab for running runtime operation in console --- .../src/create-apps/runtime-operations.md | 31 ++++++++++++++++--- .../src/create-apps/runtime-operations.md | 31 ++++++++++++++++--- 2 files changed, 54 insertions(+), 8 deletions(-) diff --git a/sites/platform/src/create-apps/runtime-operations.md b/sites/platform/src/create-apps/runtime-operations.md index 861776a4d2..87292d1939 100644 --- a/sites/platform/src/create-apps/runtime-operations.md +++ b/sites/platform/src/create-apps/runtime-operations.md @@ -53,16 +53,37 @@ For more possibilities, see other [runtime operation examples](#runtime-operatio ## Run a runtime operation -Once you've [defined a runtime operation](#define-a-runtime-operation), -you can trigger it through the {{% vendor/name %}} CLI. -To do so, run the following command: +{{< codetabs >}} ++++ +title=In the Console ++++ + + + +First, make sure that you have [defined a runtime operation](#define-a-runtime-operation). Then: + +1. Navigate to the environment where you want to run the operation. +2. Click {{< icon more >}} **More**. +3. Click **Run runtime operation**. +4. Select the operation you want to run. +5. Click **Run**. + +<---> ++++ +title=Using the CLI ++++ + + +A runtime operation can be triggered through the {{% vendor/name %}} CLI once it has been [defined](#define-a-runtime-operation). + +Run the following command: ```bash {{% vendor/cli %}} operation:run {{< variable "RUNTIME_OPERATION_NAME" >}} --project {{< variable "PROJECT_ID" >}} --environment {{< variable "ENVIRONMENT_NAME" >}} ``` You can only trigger a runtime operation if you have permission to do so. -Permissions are granted through the `role` option specified in the [runtime operation configuration](#define-a-runtime-operation). +Permissions are granted through the `role` option specified in the [runtime operation configuration](#define-a-runtime-operation). This can only be done if a [runtime operation has been defined](#define-a-runtime-operation). For example, to trigger the runtime operation [defined previously](#define-a-runtime-operation), you could run the following command: @@ -71,6 +92,8 @@ you could run the following command: {{% vendor/cli %}} operation:run clear-rebuild --project {{< variable "PROJECT_ID" >}} --environment {{< variable "ENVIRONMENT_NAME" >}} ``` +{{< /codetabs >}} + ## List your runtime operations To list all the runtime operations available on an environment, diff --git a/sites/upsun/src/create-apps/runtime-operations.md b/sites/upsun/src/create-apps/runtime-operations.md index a10370b44c..161b59c62f 100644 --- a/sites/upsun/src/create-apps/runtime-operations.md +++ b/sites/upsun/src/create-apps/runtime-operations.md @@ -58,16 +58,37 @@ For more possibilities, see other [runtime operation examples](#runtime-operatio ## Run a runtime operation -Once you've [defined a runtime operation](#define-a-runtime-operation), -you can trigger it through the {{% vendor/name %}} CLI. -To do so, run the following command: +{{< codetabs >}} ++++ +title=In the Console ++++ + + + +First, make sure that you have [defined a runtime operation](#define-a-runtime-operation). Then: + +1. Navigate to the environment where you want to run the operation. +2. Click {{< icon more >}} **More**. +3. Click **Run runtime operation**. +4. Select the operation you want to run. +5. Click **Run**. + +<---> ++++ +title=Using the CLI ++++ + + +A runtime operation can be triggered through the {{% vendor/name %}} CLI once it has been [defined](#define-a-runtime-operation). + +Run the following command: ```bash {{% vendor/cli %}} operation:run {{< variable "RUNTIME_OPERATION_NAME" >}} --project {{< variable "PROJECT_ID" >}} --environment {{< variable "ENVIRONMENT_NAME" >}} ``` You can only trigger a runtime operation if you have permission to do so. -Permissions are granted through the `role` option specified in the [runtime operation configuration](#define-a-runtime-operation). +Permissions are granted through the `role` option specified in the [runtime operation configuration](#define-a-runtime-operation). This can only be done if a [runtime operation has been defined](#define-a-runtime-operation). For example, to trigger the runtime operation [defined previously](#define-a-runtime-operation), you could run the following command: @@ -76,6 +97,8 @@ you could run the following command: {{% vendor/cli %}} operation:run clear-rebuild --project {{< variable "PROJECT_ID" >}} --environment {{< variable "ENVIRONMENT_NAME" >}} ``` +{{< /codetabs >}} + ## List your runtime operations To list all the runtime operations available on an environment, From 5956db9185594dcdad305497debf49280fbe5209 Mon Sep 17 00:00:00 2001 From: Kemi-Elizabeth <97071326+Kemi-Elizabeth@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:53:27 +0100 Subject: [PATCH 2/2] added code tabs added in console description for runtime operations --- sites/platform/src/create-apps/runtime-operations.md | 2 +- sites/upsun/src/create-apps/runtime-operations.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/platform/src/create-apps/runtime-operations.md b/sites/platform/src/create-apps/runtime-operations.md index 87292d1939..ac6bbe4b4a 100644 --- a/sites/platform/src/create-apps/runtime-operations.md +++ b/sites/platform/src/create-apps/runtime-operations.md @@ -51,7 +51,7 @@ The name of the runtime operation in this case is `clear-rebuild`. For more possibilities, see other [runtime operation examples](#runtime-operation-examples). -## Run a runtime operation +## Run a runtime operation {{< codetabs >}} +++ diff --git a/sites/upsun/src/create-apps/runtime-operations.md b/sites/upsun/src/create-apps/runtime-operations.md index 161b59c62f..668faac7f0 100644 --- a/sites/upsun/src/create-apps/runtime-operations.md +++ b/sites/upsun/src/create-apps/runtime-operations.md @@ -56,7 +56,7 @@ The name of the runtime operation in this case is `clear-rebuild`. For more possibilities, see other [runtime operation examples](#runtime-operation-examples). -## Run a runtime operation +## Run a runtime operation {{< codetabs >}} +++