diff --git a/docs/ibexa_cloud/ddev_and_ibexa_cloud.md b/docs/ibexa_cloud/ddev_and_ibexa_cloud.md index 907b1cc0ee..57c60a902a 100644 --- a/docs/ibexa_cloud/ddev_and_ibexa_cloud.md +++ b/docs/ibexa_cloud/ddev_and_ibexa_cloud.md @@ -13,6 +13,7 @@ Two ways are available to run an [[= product_name_cloud =]] project locally with !!! note The following examples use [[[= product_name_cloud =]] CLI (`ibexa_cloud`)](https://cli.ibexa.co/). + For more information and examples, see [[[= product_name_cloud =]] CLI](ibexa_cloud_cli.md). ## With Ibexa Cloud add-ons diff --git a/docs/ibexa_cloud/ibexa_cloud.md b/docs/ibexa_cloud/ibexa_cloud.md index 03bd6652cc..f285dbc618 100644 --- a/docs/ibexa_cloud/ibexa_cloud.md +++ b/docs/ibexa_cloud/ibexa_cloud.md @@ -11,6 +11,7 @@ month_change: false [[= cards([ "ibexa_cloud/ibexa_cloud_guide", "ibexa_cloud/install_on_ibexa_cloud", + "ibexa_cloud/ibexa_cloud_cli", "ibexa_cloud/environment_variables", "ibexa_cloud/ddev_and_ibexa_cloud", ], columns=3) =]] diff --git a/docs/ibexa_cloud/ibexa_cloud_cli.md b/docs/ibexa_cloud/ibexa_cloud_cli.md new file mode 100644 index 0000000000..c61de39eaf --- /dev/null +++ b/docs/ibexa_cloud/ibexa_cloud_cli.md @@ -0,0 +1,64 @@ +--- +description: Use the [[= product_name_cloud =]] CLI to manage your I[[= product_name_cloud =]] projects from the command line. +month_change: true +--- + +# [[= product_name_cloud =]] CLI + +The [[= product_name_cloud =]] CLI (`ibexa_cloud`) is a command-line tool for managing your [[= product_name_cloud =]] projects. +It is based on the [Upsun CLI](https://docs.upsun.com/administration/cli.html) and shares the same commands. + +## Installation + +Follow the installation instructions at [cli.ibexa.cloud](https://cli.ibexa.cloud/). + +After installation, authenticate with your [[= product_name_cloud =]] account: + +```bash +ibexa_cloud auth:browser-login +``` + +## Command reference + +For the full list of available commands, see the [Upsun CLI reference](https://developer.upsun.com/cli/reference). +Replace `upsun` with `ibexa_cloud` in all examples. + +## Examples + +### Run a SQL script + +To execute a SQL upgrade script on a [[= product_name_cloud =]] environment, pass it to `ibexa_cloud sql`: + +=== "MySQL" + + ```bash + ibexa_cloud sql < vendor/ibexa/installer/upgrade/db/mysql/ibexa-x.x.x-to-x.x.y.sql + ``` + +=== "PostgreSQL" + + ```bash + ibexa_cloud sql < vendor/ibexa/installer/upgrade/db/postgresql/ibexa-x.x.x-to-x.x.y.sql + ``` + +### Connect with a SQL client + +To connect to the database using any SQL client, start a SSH tunnel by running the following command in the project directory: + +```bash +ibexa_cloud tunnel:open +``` + +The command outputs connection details, for example: + +``` shell-session +SSH tunnel opened to database at: mysql://user:@127.0.0.1:30000/main +``` + +Use the displayed host, port, database name, username, and password to configure your SQL client. + +When you're done, close the tunnel: + +```bash +ibexa_cloud tunnel:close +``` diff --git a/docs/ibexa_cloud/install_on_ibexa_cloud.md b/docs/ibexa_cloud/install_on_ibexa_cloud.md index edc0907cd1..b1e40cc05e 100644 --- a/docs/ibexa_cloud/install_on_ibexa_cloud.md +++ b/docs/ibexa_cloud/install_on_ibexa_cloud.md @@ -1,5 +1,5 @@ --- -description: Install and configure Ibexa DXP to run in cloud using Ibexa Cloud. +description: Install and configure Ibexa DXP to run in cloud using [[= product_name_cloud =]]. month_change: false --- @@ -82,6 +82,8 @@ In **Settings** (top right gear icon) -> **Project Settings** -> **Variables** - ### Composer authentication using the CLI command +Use [Ibexa Cloud CLI](ibexa_cloud_cli.md) to create the variable: + ```bash ibexa_cloud variable:create --level project --name env:COMPOSER_AUTH \ --json true --visible-runtime false --sensitive true --visible-build true \ @@ -111,11 +113,6 @@ Modify this password after the installation, for example, by using [data migrati !!! caution - Don't use Upsun CLI (`upsun`), instead, use the [[[= product_name_cloud =]] CLI (`ibexa_cloud`)](https://cli.ibexa.cloud/). - - To install [[= product_name_cloud =]] CLI, follow https://cli.ibexa.cloud/ "Installation instructions". - - [[= product_name_cloud =]] CLI and Upsun CLI share the same commands and the [same documentation](https://fixed.docs.upsun.com/administration/cli.html#3-use), but you have to replace `upsun` with `ibexa_cloud`. + Don't use Upsun CLI (`upsun`), instead, use the [[[= product_name_cloud =]] CLI (`ibexa_cloud`)](https://cli.ibexa.cloud/) instead. - If you have previously set up an alias to use Upsun CLI with [[= product_name_cloud =]], it's outdated. - Remove the alias and install [[= product_name_cloud =]] CLI instead. + For more information, see [[[= product_name_cloud =]] CLI](ibexa_cloud_cli.md). diff --git a/mkdocs.yml b/mkdocs.yml index ca8e299822..55d7c99513 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -853,6 +853,7 @@ nav: - Ibexa Cloud: ibexa_cloud/ibexa_cloud.md - Ibexa Cloud guide: ibexa_cloud/ibexa_cloud_guide.md - Install on Ibexa Cloud: ibexa_cloud/install_on_ibexa_cloud.md + - Ibexa Cloud CLI: ibexa_cloud/ibexa_cloud_cli.md - Environment variables: ibexa_cloud/environment_variables.md - DDEV and Ibexa Cloud: ibexa_cloud/ddev_and_ibexa_cloud.md - Infrastructure and maintenance: