def switch_to_v5(upgrade=False): "Switch frappe and erpnext to v4 branch" from bench.app import switch_to_v5 switch_to_v5(upgrade=upgrade) print print 'Switched to v5' print 'Please run `bench update --patch` to be safe from any differences in database schema'