作曲家-指定`composer.json`路径 [英] Composer - specify `composer.json` path
本文介绍了作曲家-指定`composer.json`路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用cli命令指定 composer.json
文件的路径?甚至更好的是,是否可以使用其他名称的文件?
Is it possible to specify the path to the composer.json
file using the cli commands? Even better, is it possible to user a file with a different name?
推荐答案
我建议您看一下:
https://getcomposer.org/doc/03-cli.md #environment-variables
COMPOSER
通过设置 COMPOSER
env变量,可以将 composer.json
的文件名设置为其他名称。
By setting the COMPOSER
env variable it is possible to set the filename of composer.json
to something else.
例如:
COMPOSER = composer-other.json php composer.phar安装
生成的锁定文件将使用相同的名称: composer-other.lock
在此示例中。
The generated lock file will use the same name: composer-other.lock
in this example.
这篇关于作曲家-指定`composer.json`路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文