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
Post a Comment