xjchen/alauda

alauda php deploy tool

dev-master 2015-05-27 15:33 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:17:42 UTC


README

Introduction

This is a package for managing alauda services in command-line.

Requirement

  • PHP >= 5.4.0
  • ext-curl

Install

As a Phar

curl -O http://7xjbct.com2.z0.glb.qiniucdn.com/v1.0/alauda.phar
chmod +x alauda.phar
mv alauda.phar /usr/local/bin/alauda

As a Global Composer Install

You must install composer first. Head to Install Composer for details.

composer global require xjchen/alauda:\*@dev

After above command, add compose bin to your path.

export PATH=~/.composer/vendor/bin:$PATH

Usage

Login

alauda login

Logout

alauda logout

List all commands

alauda

Show doc of some command

alauda help command

Comand list

  • login Log in to alauda registry server
  • logout Log out from alauda registry server
  • up Deploy a php web server in alauda
  • auth:profile Get the profile of a user
  • db:create Create a database if not exist
  • db:create-user Create a database user if not exist
  • instance:describe Get the details of an instance
  • instance:list List all instances belong to the application
  • repository:create Create a new Repository
  • repository:destroy Delete a repository, all tags will be removed
  • repository:list List all repositories
  • repository:tags List all tags of a repository
  • service:create Create a alauda service from your docker-compose.yml file
  • service:describe Get the details of an application
  • service:destroy Destroy an service, all instances and related resources will be removed
  • service:list List all services in a namespace
  • service:logs Get service log