https://github.com/t14d3/ddev-rapunzelutils
https://github.com/t14d3/ddev-rapunzelutils
ddev-addon ddev-get
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/t14d3/ddev-rapunzelutils
- Owner: T14D3
- License: apache-2.0
- Created: 2025-02-10T08:53:05.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-11T09:38:01.000Z (over 1 year ago)
- Last Synced: 2025-08-01T07:04:24.695Z (10 months ago)
- Topics: ddev-addon, ddev-get
- Language: Shell
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
```