Skip to content

Commit f484434

Browse files
committed
Phar building
1 parent 4341656 commit f484434

5 files changed

Lines changed: 116 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/composer.lock
2+
/magedownload.phar
23
/vendor/

README.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
MageDownload CLI
2+
===
3+
4+
A PHP tool to automated Magento release and patch downloads
5+
6+
# Installation
7+
8+
### .phar
9+
10+
You can download the latest `.phar` from the [releases](https://github.com/steverobbins/magedownload-cli/releases) section.
11+
12+
### Source
13+
14+
* Clone this repository
15+
* Install with composer
16+
17+
```
18+
git clone https://github.com/steverobbins/magedownload-cli
19+
cd magedownload-cli
20+
curl -sS https://getcomposer.org/installer | php
21+
php composer.phar install
22+
```
23+
24+
# Usage
25+
26+
$ magedownload.phar help
27+
28+
## Configuration
29+
30+
The configuration file is in `yaml` format an located at `~/.magedownload-cli.yaml`.
31+
32+
Example:
33+
34+
```
35+
user:
36+
id: MAG000000000
37+
token: abcdef1234567890abcdef1234567890abcdef12
38+
```
39+
40+
To generate an access token, login to your account on magento.com and generate it in **Account Settings** -> **Downloads Access Token**.
41+
42+
43+
## Commands
44+
45+
#### Options
46+
47+
All commands have the following options
48+
49+
##### `--id=ID`
50+
51+
Your Magento account ID.
52+
53+
##### `--token=TOKEN`
54+
55+
Your Magento access token.
56+
57+
### `download`
58+
59+
$ magedownload.phar download <file>
60+
61+
Downloads the specified file.
62+
63+
Files are download to the directory the command is executed from.
64+
65+
### `info`
66+
67+
$ magedownload.phar info <action>
68+
69+
Gets information about what releases and patches can be downloaded.
70+
71+
Available actions:
72+
73+
* files
74+
* versions
75+
76+
# Support
77+
78+
Please [create an issue](https://github.com/steverobbins/magedownload-cli/issues/new) for all bugs and feature requests.
79+
80+
# Contributing
81+
82+
Fork this repository and send a pull request to the `dev` branch.
83+
84+
# License
85+
86+
[Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/)

box.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"main": "bin/magedownload",
3+
"output": "magedownload.phar",
4+
"chmod": "0755",
5+
"compression": "GZ",
6+
"extract": false,
7+
"files": [
8+
"vendor/autoload.php"
9+
],
10+
"directories": [
11+
"src"
12+
],
13+
"finder": [
14+
{
15+
"name": "*.php",
16+
"exclude": ["test", "Test", "Tests", "tests"],
17+
"in": [
18+
"vendor/composer",
19+
"vendor/guzzlehttp",
20+
"vendor/psr",
21+
"vendor/steverobbins",
22+
"vendor/symfony"
23+
]
24+
}
25+
],
26+
"stub": true
27+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"symfony/console": "^2.7",
66
"guzzlehttp/guzzle": "~6.0",
77
"symfony/yaml": "2.6.*",
8-
"steverobbins/magedownload": "dev-master"
8+
"steverobbins/magedownload": "^1.0"
99
},
1010
"require-dev": {
1111
"squizlabs/php_codesniffer": "^2.3"

src/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use MageDownload\Command\InfoCommand;
1919
use Symfony\Component\Console\Application;
2020

21-
$app = new Application('Magedownload CLI');
21+
$app = new Application('Magedownload CLI', '1.0.0');
2222

2323
$app->add(new DownloadCommand);
2424
$app->add(new InfoCommand);

0 commit comments

Comments
 (0)