From 05af0352193f40448e3b3ce7610cb00affc57ce4 Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Fri, 27 Dec 2013 05:26:01 -0500 Subject: [PATCH 1/2] add documentation entry for archive command on 03-cli.md --- doc/03-cli.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/03-cli.md b/doc/03-cli.md index 38db3f925..8f914e583 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -395,6 +395,20 @@ problems. $ php composer.phar diagnose +## archive + +This command is used to generate a zip/tar archive for a given package in a +given version. It can also be used to archive your entire project without +excluded/ignored files. + + $ php composer.phar archive vendor/package --format=zip + +### Options + +* **--format (-f):** Format of the resulting archive: tar or zip (default: + "tar") +* **--dir:** Write the archive to this directory (default: ".") + ## help To get more information about a certain command, just use `help`. From 32eba1f142e86cec6570ec15a2176a8a78cc267b Mon Sep 17 00:00:00 2001 From: Luis Cordova Date: Fri, 27 Dec 2013 05:34:52 -0500 Subject: [PATCH 2/2] plug version example to the command call --- doc/03-cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index 8f914e583..2e56a00ee 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -401,7 +401,7 @@ This command is used to generate a zip/tar archive for a given package in a given version. It can also be used to archive your entire project without excluded/ignored files. - $ php composer.phar archive vendor/package --format=zip + $ php composer.phar archive vendor/package 2.0.21 --format=zip ### Options