Skip to content

Commit

Permalink
Merge pull request #312 from pjcdawkins/box-installer
Browse files Browse the repository at this point in the history
Box Project-based installer
  • Loading branch information
pjcdawkins committed Jul 2, 2015
2 parents e41c2e6 + 87a01b6 commit 56542cf
Show file tree
Hide file tree
Showing 8 changed files with 548 additions and 58 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor
platform.phar
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ Alternative README versions: [`master`](https://github.com/platformsh/platformsh

### Installation

#### Using the installer

Simply run this command:

curl -sS https://platform.sh/cli/installer | php

#### Using Composer

* [Install Composer globally](https://getcomposer.org/doc/00-intro.md#globally).

* Install the latest stable version of the CLI:
Expand Down Expand Up @@ -55,17 +63,17 @@ Start a new shell or type `source <filename>` to load the new configuration.

### Updating

New releases of the CLI are made regularly. You can update with this command:
New releases of the CLI are made regularly.

composer global update
If you installed the CLI using the installer (as a Phar archive), you can update
it using:

platform self-update

If you want to change the version that you are using - for example to upgrade
between major versions (such as `1.x.x` to `2.x.x`) - it may be more effective
to remove and re-install:
Or, if you installed the CLI with Composer globally, you can update with this
command:

composer global remove platformsh/cli
composer global update
composer global require platformsh/cli:@stable

### Usage

Expand Down Expand Up @@ -99,6 +107,7 @@ Available commands:
list Lists commands
login Log in to Platform.sh
logout Log out of Platform.sh
self-update (up) Update the CLI to the latest version
web Open the Platform.sh Web UI
activity
activity:list (activities) Get the most recent activities for an environment
Expand Down
26 changes: 26 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"chmod": "0755",
"directories": [
"resources",
"src"
],
"files": [
"platform",
"vendor/autoload.php",
"vendor/herrera-io/phar-update/res/schema.json"
],
"finder": [
{
"in": "vendor",
"name": "*.php",
"exclude": [
"phpunit",
"Tests",
"tests"
]
}
],
"main": "platform",
"output": "platform.phar",
"stub": true
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"symfony/filesystem": "~2.5",
"symfony/options-resolver": "~2.5",
"symfony/process": "~2.5",
"stecman/symfony-console-completion": "0.5.1"
"stecman/symfony-console-completion": "0.5.1",
"herrera-io/phar-update": "^2.0"
},
"suggest": {
"drush/drush": "For Drupal projects"
Expand Down
Loading

0 comments on commit 56542cf

Please sign in to comment.