I don't have a 2.2 instance available to test, but I have tested that the command is working as expected in 2.6.
First, if you are copying and pasting the command, it may be introducing issues - the error message suggests there is a newline character present (i.e. an invisible line break character). Try typing out the command yourself instead if you were trying to copy and paste it before.
Second, I should clarify that with a real command, there are no < > angled brackets around the user name, so it should probably be written like so:
- php symfony tools:add-superuser --email="em...@example.com" --password="MYSUPERPASSWORD" username
Let's say we want to create the following user:
The command would be entered as follows:
- php symfony tools:add-superuser --email="ad...@example.com" --password="IAMTHEBOSS!" admin
Finally, if the options are causing the problem, you can just enter the command. AtoM will prompt you to enter the details:
Finally, if that still doesn't work, maybe you can try using the --demo option instead, just so you can log in and use the user interface to create the account you want. When you run the following:
- php symfony tools:add-superuser --demo
It will create a new administrator account with the same credentials we use in our public demo site:
You can then log in and either modify this account, or create a new one, then log out and use the new admin account to delete the demo account.
I hope this helps!