An open API service indexing awesome lists of open source software.

https://github.com/t14d3/ddev-rapunzelutils


https://github.com/t14d3/ddev-rapunzelutils

ddev-addon ddev-get

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# ddev-rapunzelutils

## Using Custom Aliases

This add-on allows you to create short custom DDEV aliases. To add an alias, you can either manually edit the `.ddev/aliases.yaml` file or use the `ddev alias` command.

To create a new alias, use the `--add` or `--create` flag:

```sh
ddev alias --add
```

For example:

```sh
ddev alias --add myalias web "echo 'This is my custom alias'"
```

### Listing Aliases

To list all available aliases, use the `--list` or `-l` flag:

```sh
ddev alias --list
```

### Removing an Alias

To remove an alias, use the `--remove` or `--delete` flag:

```sh
ddev alias --remove
```

For example:

```sh
ddev alias --remove myalias
```

### Using Aliases

You can then use your aliases with the `ddev alias` command. For example, if we want to create an alias for clearing
the cache of a Symfony project, we can use the following command:

```sh
ddev alias --add cc web "php bin/console cache:clear"
```
And then we can use the alias like this:

```sh
ddev alias cc
```
The output will look something like this:

```sh
Executing in "web": "php bin/console cache:clear"

// Clearing the cache for the dev environment with debug true


[OK] Cache for the "dev" environment (debug=true) was successfully cleared.

```