How do you save Duke in Metro Exodus?

Quick answer: Don’t kill the cultists in the Volga. Knock them out or sneak past, and stay hidden at the cultists’ base. Then Silantius stops the attack and Duke survives.
Show walkthrough (story spoilers)
Spare the cultists
Throughout the Volga, knock cultists out or avoid them. Killing them turns Silantius, the cult’s leader, against you. Guides disagree on how many kills it takes, so the safe rule is to kill none.
Stay hidden at the base
At the cultists’ base at the end of the chapter, choose the stealthy approach. Knock out only the enemies you must and do not raise the alarm.
Silantius decides
In the final room, if you spared his people, Silantius lets you go and tells his men not to shoot as the train passes. If you killed many of them, he orders them to fight.
The result
If you spared them, Duke gets on the train and goes on with the crew. If not, Duke is shot and dies. See The Volga walkthrough.
