Magento update from 2.3.0 to 2.3.1 problem

Looks like you’re taking the Documentation too literally. “{}” and “” refer to placeholder examples. Therefore, you don’t actually use it in the command. Like “My name is {name}. I live in [city]”.

Also, bin/magento commands need to be ran as the “magento” user. So, you never prefix the command with sudo. Also, you shouldn’t need to prefix your command with ‘php’ either, unless you have an old PHP setup.

If you read a little further down the Documentation, you’ll see the command would actually be:

bin/magento deploy:mode:set developer

And if you want to switch to developer mode and skip compilation then you’d use:

bin/magento deploy:mode:set developer -s

Hopefully, that helps explain the way the Documentation is written.

Change to developer mode

When you change from production to developer mode, you should clear generated classes and Object Manager entities like proxies to prevent unexpected errors. After doing so, you can change modes. Use the following steps:

  1. If you’re changing from production mode to developer mode, delete the contents of the generated/code and generated/metadata directories:
rm -rf <magento_root>/generated/metadata/* <magento_root>/generated/code/*
  1. Set the mode:
bin/magento deploy:mode:set developer

The following message displays:

Enabled developer mode.