Skip to content

Instantly share code, notes, and snippets.

@stm555
Created September 29, 2012 15:59
Show Gist options
  • Save stm555/3804453 to your computer and use it in GitHub Desktop.
Save stm555/3804453 to your computer and use it in GitHub Desktop.
PHP Storm External Command Description
In PHPStorm choose "Settings" => "Command Line Tool Support" and add a "Custom Framework". Add the following vales into popuped franework-settings window:
- Framework name: vagrant
- Tool path: /usr/local/bin/vagrant (check with command "which vagrant" on your computer to get the right path)
- Alias: vagrant
- Description: Whatever you want to describe
After clicking ok a xml file is opened in the editor, just put the above code from vagrant.xml into it. After saving you can controll vagrant within phpstorm using CTRL+ALT+X keys.
<?xml version="1.0" encoding="UTF-8"?>
<framework
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.xsd"
name="vagrant"
invoke="vagrant"
alias="vagrant"
enabled="true"
version="1">
<command>
<name>box add</name>
<help>vagrant box add [options] box-name url &lt;br/&gt; The name
used with the vagrant box add command is the name used to reference the
box from that point forward. Any box can be named anything you want.
Boxes that are added using vagrant box add are global to the vagrant
install, and they are stored at on the local filesystem.
</help>
<params>box-name</params>
<params>url</params>
</command>
<command>
<name>box list</name>
<help>vagrant box list &lt;br/&gt;list all installed boxes</help>
</command>
<command>
<name>box remove</name>
<help>vagrant box remove [options] [box-name] &lt;br/&gt;
This command removes the installed box. &lt;br/&gt;
Warning: There is no going back from this command. This command
literally deletes the files off the filesystem.
</help>
<params>box-name</params>
</command>
<command>
<name>destroy</name>
<help>vagrant halt [box-name] &lt;br/&gt;
Destroys the vagrant environment</help>
<params>box-name[=null]</params>
</command>
<command>
<name>halt</name>
<help>vagrant halt [options] [box-name] &lt;br/&gt;
Halts the currently running vagrant environment
</help>
<params>box-name[=null]</params>
</command>
<command>
<name>init</name>
<help>vagrant init [options] &lt;br/&gt;
Initializes current folder for Vagrant usage
</help>
<params>box-name[=null]</params>
<params>url[=null]</params>
</command>
<command>
<name>provision</name>
<help>vagrant provision [box-name] &lt;br/&gt;
Runs the provisioning scripts without reloading the entire Vagrant environment.
</help>
<params>box-name[=null]</params>
</command>
<command>
<name>reload</name>
<help>vagrant reload [box-name] &lt;br/&gt;
This command adds new puppet modules to the vagrant environment and
corrects path changes, afterwards the environment is completly reloaded.
</help>
<params>box-name[=null]</params>
</command>
<command>
<name>resume</name>
<help>vagrant resume [box-name] &lt;br/&gt;
When you’re ready to get rolling again its just as easy to start your virtual machine back up with this command.
</help>
<params>box-name[=null]</params>
</command>
<command>
<name>status</name>
<help>vagrant status [box-name] &lt;br/&gt;
This command tells you the status of your current project’s environment.
</help>
<params>box-name[=null]</params>
</command>
<command>
<name>suspend</name>
<help>vagrant suspend [box-name] &lt;br/&gt;
This command advices VirtualBox to take a snapshot of the box’s current state from which you can resume later.
</help>
<params>box-name[=null]</params>
</command>
<command>
<name>up</name>
<help>vagrant up [options] &lt;br/&gt;
This command builds the VirtualBox and sets it up based on the specifications of the Vagrantfile
</help>
</command>
</framework>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment