Updating magento with cli can be handled as following:
# set the correct package
composer require magento/product-community-edition 2.2.3 –no-update
composer update
# Manually clear var subdirectories:
rm -rf var/cache/*
rm -rf var/page_cache/*
rm -rf var/generation/*
#correct rights magento
chmod 770 bin/magento
# Update the database schema and data:
./bin/magento setup:upgrade
# Put your storefront online
./bin/magento maintenance:disable
# Set rights
chown -R www-data:www-data .
chown -R www-data:www-data *.*
chown -R www-data:www-data .*
find . -type d -exec chmod 775 {} \;
find . -type f -exec chmod 664 {} \;
Problem after updating is that the products won’t show. This is caused by the template.. so just check if the correct version of the template is there …