All Projects → acquia → cli

acquia / cli

Licence: GPL-2.0 license
Acquia CLI

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to cli

acquia-cloud-vm
VirtualBox/Vagrant-based VM to closely match Acquia Cloud environment.
Stars: ✭ 20 (-33.33%)
Mutual labels:  drupal, acquia
webapp-wordlists
This repository contains wordlists for each versions of common web applications and content management systems (CMS). Each version contains a wordlist of all the files directories for this version.
Stars: ✭ 306 (+920%)
Mutual labels:  drupal
ansible-role-drupal
Ansible Role - Drupal
Stars: ✭ 80 (+166.67%)
Mutual labels:  drupal
drupal8-composer-template
Project template for Drupal 8 projects with composer | Quick installation via "composer create-project woprrr/drupal8-composer-template:8.3.0"
Stars: ✭ 27 (-10%)
Mutual labels:  drupal
awesome-drupal
A curated list of amazingly awesome Drupal open source, resources and shiny things.
Stars: ✭ 106 (+253.33%)
Mutual labels:  drupal
drupal-dev-docker
An opinionated Drupal development environment based on Docker.
Stars: ✭ 22 (-26.67%)
Mutual labels:  drupal
drupal-elm-starter
DEPRECATED - See https://github.com/Gizra/drupal-starter
Stars: ✭ 33 (+10%)
Mutual labels:  drupal
migrate source example
Example module for Drupal 8 that provides migrations of users, terms, files and nodes from database, JSON resources, CSV and XML files. #migrate
Stars: ✭ 39 (+30%)
Mutual labels:  drupal
drupal-php
PHP docker container image for Drupal
Stars: ✭ 56 (+86.67%)
Mutual labels:  drupal
buzzyblog
React + WordPress REST API, a new endeavor to provide a better experience to content creators, web masters and digital marketers, etc
Stars: ✭ 50 (+66.67%)
Mutual labels:  drupal
ansible-role-php-versions
Ansible Role - PHP Versions
Stars: ✭ 78 (+160%)
Mutual labels:  drupal
ding2
Ding install profile
Stars: ✭ 17 (-43.33%)
Mutual labels:  drupal
drupal
Vanilla Drupal docker container image
Stars: ✭ 19 (-36.67%)
Mutual labels:  drupal
thunder-distribution
A Drupal-based platform for professional publishers
Stars: ✭ 31 (+3.33%)
Mutual labels:  drupal
jDrupal
A JavaScript Library and API for Drupal Applications
Stars: ✭ 77 (+156.67%)
Mutual labels:  drupal
expresso-php
Fast and simple Docker setup for all your PHP development. Quick but not dirty.
Stars: ✭ 31 (+3.33%)
Mutual labels:  drupal
boilerplate-drupal8
[ARCHIVED] Drupal 8 boilerplate project powered by Docksal
Stars: ✭ 66 (+120%)
Mutual labels:  drupal
drupal-typed-data-by-example
Drupal's Typed Data API by example
Stars: ✭ 27 (-10%)
Mutual labels:  drupal
drupal-pi
Drupal on Docker on a Raspberry Pi. Pi Dramble's little brother.
Stars: ✭ 92 (+206.67%)
Mutual labels:  drupal
shila-drupal-theme
Atomic design and Pattern Lab friendly, component-based, fairly unopinionated starting point for new Drupal themes
Stars: ✭ 81 (+170%)
Mutual labels:  drupal

Build status Coverage Status Mutation testing badge Violinist enabled

Acquia CLI

The official command-line tool for interacting with the Drupal Cloud Platform and services. Acquia CLI helps you run Drush commands and tail logs from your Acquia-hosted applications, manage Acquia Cloud IDEs, create and manage teams and applications via the Cloud Platform API, and much more!

Acquia CLI does not provide or manage local development environments. If you are looking for a packaged development environment, consider Acquia Cloud IDE or third-party tools such as Lando.

Installation

Install instructions and official documentation are available at https://docs.acquia.com/dev-studio/acquia-cli/install/

Example Usage

Interact with Cloud API

Trying Using jq to highlight and parse JSON output from acli api commands.

// Get a list of all Acquia Cloud Platform applications that you have access to.
$ acli api:applications:list
// Do the same, but highlight the JSON output.
$ acli api:applications:list | jq
// Output only the "name" field for every object in the JSON output.
$ acli api:applications:list | jq '.[] | .name'
// Output only the first object in the JSON output.
$ acli api:applications:list | jq '.[0]'

Manage SSH keys

// Create a new SSH key locally and upload it to Acquia Cloud Platform.
$ ssh-key:create-upload
// List all local and remote SSH keys.
$ acli ssh-key:list

Manage IDEs

// Create a new Acquia Cloud IDE
$ acli ide:create
// List existing IDEs.
$ acli ide:list
// Open an IDE in your web browser.
$ acli ide:open

Interact with Acquia Cloud Platform Environments

// List aliases for all environments.
$ acli remote:aliases:list
// SSH into an environment.
$ acli ssh myapp.dev
// Run a drush command in an environment.
$ acli drush myapp.dev cache-rebuild

Hook into ACLI commands

You may define scripts that will automatically run before and/or after any ACLI command. To do so, add a script to your root composer.json file following the naming pattern (pre|post)-acli-(command name with dashes). E.g., pre-acli-push-db or post-acli-pull-files. The script must be named correctly in order to be executed. See examples below:

"scripts": {
        "pre-acli-pull-db": [
            "echo \"I'm pulling the database now!\""
        ],
        "post-acli-pull-db": [
            "echo \"I'm done pulling the database!\""
        ],
    }

Authentication

The preferred way to authenticate with Acquia Cloud Platform API is to run acli auth:login. However, ACLI supports other methods of authentication. In priority order, ACLI will accept the following:

  1. An access token stored in the ACLI_ACCESS_TOKEN environment variable with its corresponding ACLI_ACCESS_TOKEN_EXPIRY value.
  2. An ACLI_KEY environment variable and its corresponding ACLI_SECRET.
  3. Values defined in ~/.acquia/cloud_api.conf as generated by the acli auth:login command.

Similar tools

Several tools compliment or duplicate Acquia CLI functionality. Acquia CLI can safely be used with any of these tools, although some functionality may be duplicated.

  • Acquia BLT: Provides an automation framework for setting up and managing Drupal applications. Acquia BLT is installed in a Drupal application and provides support for just that application, while Acquia CLI should be installed globally and allows you to interact with any Acquia service. Acquia CLI is not an automation framework like Acquia BLT.
  • Pipelines CLI: Provides an interface for managing Acquia Pipelines jobs. Acquia CLI does not allow you to manage Pipelines jobs, although this functionality is in the roadmap.
  • Typhonius Acquia CLI: Provides just an interface for Cloud API. Acquia CLI (acquia/cli) is a superset of this functionality, with access to the Cloud API as well as Acquia services not part of Cloud API.
  • ACSF tools: Provides Drush commands for interacting with ACSF. Duplicates some functionality of Acquia CLI, but in the form of Drush commands rather than a standalone CLI.

Development / contribution

Contributions to Acquia CLI are welcome subject to the contributions policy, which also has more detailed information on how to develop Acquia CLI.

Support

Please refer to our Support Users Guide for more information on products and services we officially support.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].