Back to guide/General Productivity

Terminal Command Execution

Sequential execution with error handling prevents Cline from blindly running a chain of commands where a failure in step 1 makes step 2 destructive. The pause instruction gives you control.

cline-tipsgoalcommand_1command_2
Edit View
Prompt
Run the following commands to {{goal}}:\n\n1. {{command_1}}\n2. {{command_2}}\n3. {{command_3}}\n\nFor each command:\n- Show me the command before running it\n- If the command fails, show the error output and suggest a fix before retrying\n- Do NOT run the next command until the previous one succeeds\n\nIf any command requires user input or confirmation, pause and ask me.\n\nEnvironment notes:\n- Working directory: {{working_directory}}\n- OS: {{operating_system}}\n- Required tools already installed: {{installed_tools}}

Variables to customize

{{goal}}{{command_1}}{{command_2}}{{command_3}}{{working_directory}}{{operating_system}}{{installed_tools}}

Why this prompt works

Sequential execution with error handling prevents Cline from blindly running a chain of commands where a failure in step 1 makes step 2 destructive. The pause instruction gives you control.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.