Fix syntax errors and deploy command selection.