Magento 2 – Command Line Install (Too Many Arguments)

command lineinstall-scriptinstallationmagento2

so I am trying to make a bash script in Magento, and I am learning from the bottom up.
So I have the basic arguments ready to be used in the script I am making, but when I execute

sudo php magento setup:install --admin-user="user"

or a variation with [--admin-user="user"]

I get

[RuntimeException]
Too many arguments.

enter image description here

What am I doing wrong? I would like to put that line in my script, so I can install Magento with user defined variables

I am using Magento 2.0.2 with Sample Data on Ubuntu 15.02

Best Answer

I think you have forgot about the -- in front of the command. (So it seems in your screenshot).

Related Topic