luyadev / luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.
https://luya.io
MIT License
811 stars 206 forks source link

Luya script arguments #906

Closed frimdo closed 8 years ago

frimdo commented 8 years ago

For sake of automatization, it would be great to have an possibility to pass arguments to luya script. For example:

./vendor/bin/luya migrate --yes

to skip asking "Apply the above migration?" question.

./vendor/bin/luya setup --email=foo@bar.com --pass=secret --yes

to skip all questions and pass login arguments.

nadar commented 8 years ago

@frimdo you can now install the dev-master of luya-core which allows you to "silent" execute the setup process:

./vendor/bin/luya setup --email=foo@bar.com --password=test --firstname=John --lastname=Doe --interactive=0
frimdo commented 8 years ago

Do I have to use different argument for composer? I tryed:

composer create-project luyadev/luya-kickstarter:1.0.0-beta7

and it ends with

Error: Unknown option: --email
nadar commented 8 years ago

https://luya.io/en/guide/install#dev-master

nadar commented 8 years ago

Try to use:

composer create-project luyadev/luya-kickstarter:^1.0@dev

and remove the composer require sections before the create-project command, now the kickstarter will resolve the dev-master packages.

frimdo commented 8 years ago

Thank you verry much. I appreciate it.