PHPackages                             lullabot/robo-acquia - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lullabot/robo-acquia

ActiveRobo-tasks[Utility &amp; Helpers](/categories/utility)

lullabot/robo-acquia
====================

A Robo task runner for the Acquia Cloud API.

8103.2k—3.4%4[1 PRs](https://github.com/Lullabot/robo-acquia/pulls)PHP

Since Oct 4Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Lullabot/robo-acquia)[ Packagist](https://packagist.org/packages/lullabot/robo-acquia)[ RSS](/packages/lullabot-robo-acquia/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Robo Acquia Cloud API Task runner
=================================

[](#robo-acquia-cloud-api-task-runner)

This composer package integrates the [Robo](https://robo.li) task runner with the [Acquia Cloud API v2 PHP SDK](https://github.com/typhonius/acquia-php-sdk-v2/)to facilitate running Acquia CLI tasks either in Robo or Drush. If you aren't already using Robo or Drush and would like a command-line tool to interact with the Acquia Cloud API, it's recommended you use [acquia\_cli](https://github.com/typhonius/acquia_cli) instead.

Installation
------------

[](#installation)

From your project's composer root directory, require this library:

```
$ composer require lullabot/robo-acquia

```

Usage in a Robofile.php
-----------------------

[](#usage-in-a-robofilephp)

First, generate an [Acquia Cloud API token](https://docs.acquia.com/acquia-cloud/develop/api/auth/). Once done, you should store that token in a secure place for retrieval in your command. For the purposes of this documentation, we will use the [robo.yml](https://robo.li/getting-started/#configuration)in our project root.

`./robo.yml`

```
acquia:
  key: 'd0697bfc-7f56-4942-9205-b5686bf5b3f5'
  secret: 'D5UfO/4FfNBWn4+0cUwpLOoFzfP7Qqib4AoY+wYGsKE='
```

You may want to specify a custom config yml and set appropriate permissions so that unpriveleged users cannot read the key / secret.

Then, in our RoboFile.php, we can add a new command to print out a list of tasks.

`./RoboFile.php`

```
