Edge for Private Cloud v4.18.01
Drush is the Drupal command line interface. You can use it to perform many tasks as a Drupal administrator. Drush is installed for you when you install the portal.
How to run Drush commands
You have to run Drush commands from the root directory of the portal site. By default, the Developer Portal is installed at:
/opt/apigee/apigee-drupal/wwwroot
(Nginx)
Therefore, you should first change directory to the correct root directory before running Drush commands.
Example Drush Commands
The following table lists common Drush commands:
Command | Use |
drush status |
Check Drupal status. |
drush archive-dump --destination=../tmp/dc.tar |
Backup Drupal to a specific location. |
drush dc-getorg |
Return the Edge organization associated with the portal. |
drush dc-setorg org_name |
Set the Edge organization associated with the portal. |
drush dc-getauth |
Get the Edge organization administrator user name (email address) and password associated with the portal. |
drush dc-setauth org_admin_email |
Set the Edge organization administrator user name (email address). You will be prompted to set the password. |
drush dc-getend |
Get the Edge endpoint associated with the portal. |
drush dc-setend http://server_endpoint:8080/v1 |
Set the Edge endpoint associated with the portal. |
drush dc-test |
Test the connection from the portal to the Edge organization using the organization administrator's credentials. |