How to change the Magento 2 order status programmatically
You can use “setState” to change the status of an order.
$orderId = 1; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('\Magento\Sales\Model\Order') ->load($orderId); $order->setState("processing")->setStatus("processing"); $order->save();
In the last you need to save order.
$order->save();
Thanks