Currently trying to upgrade to the newest magento 2.3 using a script. https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html Whenever I type:

php -f pre_composer_update_2.3.php -- --root='<path/to/magento/install/dir>' --repo=https://repo.magento.com/ <options>

I get: bash: syntax error near unexpected token `newline'

After root I would type '/home/something/public_html/' --repo blabla.

Could anyone point me in the right direction?


1 Answer 1


The characters '<', and '>', are to indicate a place-holder, you should remove them to read

  • It didn't work. Still getting same syntax error. im replacing <path/to/magento/install/dir> with /home/something/public_html/
    – Daniel
    May 3, 2019 at 8:37
  • also remove in <options> like this => '<' ,'>' May 3, 2019 at 8:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.