php - Can you install unstable packages just with command-line? -


to install latest development version of given package , on conflict requirements or minimum-stability error understand have create composer.json file , set minimum-stability dev.

is possible grant appropriate permissions right command-line reasonably simple command or command set?


apparently, command has --stability argument composer init forces through , endless interrogation gets on way when you're write code not packagist:

c:\tmp\foo>composer init --stability dev     welcome composer config generator    command guide through creating composer.json config.  package name (<vendor>/<name>) [alvaro.gonzalez/foo]: description []: author [, n skip]: n minimum stability [dev]: package type (e.g. library, project, metapackage, composer-plugin) []: license []:  define dependencies.  define dependencies (require) interactively [yes]? no define dev dependencies (require-dev) interactively [yes]? no  {     "name": "alvaro.gonzalez/foo",     "minimum-stability": "dev",     "require": {} }  confirm generation [yes]?  c:\tmp\foo> 

you can use composer config minimum-stability dev

the full oneliner composer init --name=alvaro.gonzalez/foo --no-interaction; composer config minimum-stability dev


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -