|
1 | | -[](https://github.com/ddev/ddev-ibexa-cloud/actions/workflows/tests.yml)  |
| 1 | +[](https://addons.ddev.com) |
| 2 | +[](https://github.com/ddev/ddev-ibexa-cloud/actions/workflows/tests.yml?query=branch%3Amain) |
| 3 | +[](https://github.com/ddev/ddev-ibexa-cloud/commits) |
| 4 | +[](https://github.com/ddev/ddev-ibexa-cloud/releases/latest) |
| 5 | + |
| 6 | +# DDEV Ibexa Cloud |
| 7 | + |
| 8 | +## Overview |
2 | 9 |
|
3 | 10 | The [Ibexa Cloud](https://www.ibexa.co/products/ibexa-cloud) has its own CLI, instead of using the `platform` CLI. |
4 | 11 |
|
5 | | -This add-on provides integration for Ibexa Cloud and adds the `ddev ibexa_cloud` custom command. |
| 12 | +This add-on provides integration for Ibexa Cloud and adds the `ddev ibexa_cloud` custom command into your [DDEV](https://ddev.com/) project. |
| 13 | + |
| 14 | +## Installation |
6 | 15 |
|
7 | 16 | 1. Configure your Ibexa project for DDEV if you haven't already, see [DDEV Ibexa Quickstart](https://ddev.readthedocs.io/en/stable/users/quickstart/#ibexa-dxp) |
8 | | -2. `ddev get ddev/ddev-ibexa-cloud` (# or in DDEV v1.23.5+ `ddev add-on get ddev/ddev-ibexa-cloud`) |
9 | | -3. Configure your IBEXA_CLI_TOKEN globally, `ddev config global --web-environment-add=IBEXA_CLI_TOKEN=nf4amudfn23biyourtoken` |
10 | | -4. Configure your IBEXA_PROJECT, IBEXA_ENVIRONMENT, and IBEXA_APP environment variables, for example `ddev config --web-environment-add=IBEXA_PROJECT=nf4amudfn23biyourproject,IBEXA_ENVIRONMENT=main,IBEXA_APP=app` |
11 | | -5. `ddev restart` |
12 | | -6. `ddev pull ibexa-cloud` |
| 17 | +2. `ddev add-on get ddev/ddev-ibexa-cloud` |
| 18 | +3. Configure your `IBEXA_CLI_TOKEN` globally: |
| 19 | + |
| 20 | + ```bash |
| 21 | + ddev config global --web-environment-add=IBEXA_CLI_TOKEN=nf4amudfn23biyourtoken |
| 22 | + ``` |
| 23 | + |
| 24 | +4. (Optional) To use multiple API tokens for different projects, add them to your per-project configuration using the [.ddev/config.local.yaml](https://ddev.readthedocs.io/en/stable/users/configuration/config/#environmental-overrides) file instead. This file is gitignored by default. |
| 25 | + |
| 26 | + ```yaml |
| 27 | + web_environment: |
| 28 | + - IBEXA_CLI_TOKEN=nf4amudfn23biyourtoken |
| 29 | + ``` |
| 30 | +
|
| 31 | +5. Configure your `IBEXA_PROJECT`, `IBEXA_ENVIRONMENT`, and `IBEXA_APP` environment variables, for example: |
| 32 | + |
| 33 | + ```bash |
| 34 | + ddev config --web-environment-add=IBEXA_PROJECT=nf4amudfn23biyourproject,IBEXA_ENVIRONMENT=main,IBEXA_APP=app |
| 35 | + ``` |
| 36 | + |
| 37 | +6. `ddev restart` |
| 38 | +7. `ddev pull ibexa-cloud` |
| 39 | + |
| 40 | +After installation, make sure to commit the `.ddev` directory to version control. |
| 41 | + |
| 42 | +## Usage |
| 43 | + |
| 44 | +| Command | Description | |
| 45 | +| ------- | ----------- | |
| 46 | +| `ddev ibexa_cloud` | Run `ibexa_cloud` CLI inside the web container | |
| 47 | +| `ddev pull ibexa-cloud` | Pull the configured environment | |
13 | 48 |
|
14 | 49 | ## Running Automated Tests Locally |
15 | 50 |
|
16 | 51 | * `IBEXA_CLI_TOKEN`, `IBEXA_PROJECT` and `IBEXA_ENVIRONMENT` should exist in the environment |
17 | 52 | * `brew tap kaos/shell && brew install bats-assert bats-file` |
18 | 53 |
|
| 54 | +## Credits |
19 | 55 |
|
20 | 56 | **Contributed and maintained by [@rfay](https://github.com/rfay)** |
0 commit comments