浏览代码

Update create projects docs

Jordi Boggiano 13 年之前
父节点
当前提交
53ab5011f0
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      doc/articles/create-projects.md

+ 5 - 4
doc/articles/create-projects.md

@@ -7,11 +7,13 @@ There are several applications for this:
 2. You can check out any package and start developing on patches for example.
 2. You can check out any package and start developing on patches for example.
 3. Projects with multiple developers can use this feature to bootstrap the initial application for development.
 3. Projects with multiple developers can use this feature to bootstrap the initial application for development.
 
 
-To create a new project using composer you can use the "create-project",
-pass it a package name + version and a directory to create the project in.
+To create a new project using composer you can use the "create-project" command.
+Pass it a package name, and the directory to create the project in. You can also
+provide a version as third argument, otherwise the latest version is used.
+
 The directory is not allowed to exist, it will be created during installation.
 The directory is not allowed to exist, it will be created during installation.
 
 
-    php composer.phar create-project doctrine/orm 2.2.0 /path/to/new-project
+    php composer.phar create-project doctrine/orm path 2.2.0
 
 
 By default the command checks for the packages on packagist.org. To change this behavior
 By default the command checks for the packages on packagist.org. To change this behavior
 you can use the --repository-url parameter and either point it to an HTTP url
 you can use the --repository-url parameter and either point it to an HTTP url
@@ -19,4 +21,3 @@ for your own packagist repository or to a packages.json file.
 
 
 If you want to get a development version of the code directly checked out
 If you want to get a development version of the code directly checked out
 from version control you have to add the --prefer-source parameter.
 from version control you have to add the --prefer-source parameter.
-