» Aliases

    Aliases can be defined within file, or in a custom filedefined using the VAGRANT_ALIAS_FILE environment variable, in the followingformat:

    Internal command aliases call the CLI class directly, allowing you to aliasone Vagrant command to another Vagrant command. This technique can be veryuseful for creating commands that you think should exist. For example,if vagrant stop feels more intuitive than , the following aliasdefinitions would make that change possible:

    » External Aliases

    While internal aliases can be used to define more intuitive Vagrant commands,external command aliases are used to define Vagrant commands with brand newfunctionality. These aliases are prefixed with the ! character, whichindicates to the interpreter that the alias should be executed as a shellcommand. For example, let's say that you want to be able to view the processorand memory utilization of the active project's virtual machine. To do this, youcould define a vagrant metrics command that returns the required informationin an easy-to-read format, like so: