Skip to content

T14D3/ddev-rapunzelutils

Repository files navigation

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:

ddev alias --add <alias_name> <container> <command>

For example:

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

Listing Aliases

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

ddev alias --list

Removing an Alias

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

ddev alias --remove <alias_name>

For example:

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:

ddev alias --add cc web "php bin/console cache:clear"

And then we can use the alias like this:

ddev alias cc

The output will look something like this:

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.                                            
                                                                                                                        

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages