Q:

upgrade magento 2.1.13 to 2.3.0

I want to upgrade my magento 2.1.13 to magento 2.3.0. But i don't know how to do it. I try to run "composer require magento/product-community-edition 2.3 --no-update" in command but it show a bug.
http://prntscr.com/ls86ud

A:

composer require magento/product-community-edition 2.3.0 --no-update;
composer update;
rm -rf var/di var/generation;
php bin/magento cache:flush;
php bin/magento setup:upgrade;
php bin/magento setup:di:compile;
php bin/magento indexer:reindex;

After upgrade, check your Magento version with the following command:
php bin/magento --version

