$npx -y skills add Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill cursorControl Cursor AI code editor via CLI. Open files, folders, diffs, and manage extensions.
| 1 | # Cursor Skill |
| 2 | |
| 3 | Use the `cursor` CLI to control the Cursor AI-powered code editor (VS Code fork). |
| 4 | |
| 5 | ## CLI Location |
| 6 | |
| 7 | ```bash |
| 8 | /usr/local/bin/cursor |
| 9 | ``` |
| 10 | |
| 11 | ## Opening Files and Folders |
| 12 | |
| 13 | Open current directory: |
| 14 | ```bash |
| 15 | cursor . |
| 16 | ``` |
| 17 | |
| 18 | Open specific file: |
| 19 | ```bash |
| 20 | cursor /path/to/file.ts |
| 21 | ``` |
| 22 | |
| 23 | Open file at specific line: |
| 24 | ```bash |
| 25 | cursor /path/to/file.ts:42 |
| 26 | ``` |
| 27 | |
| 28 | Open file at line and column: |
| 29 | ```bash |
| 30 | cursor /path/to/file.ts:42:10 |
| 31 | ``` |
| 32 | |
| 33 | Open folder: |
| 34 | ```bash |
| 35 | cursor /path/to/project |
| 36 | ``` |
| 37 | |
| 38 | Open multiple files: |
| 39 | ```bash |
| 40 | cursor file1.ts file2.ts file3.ts |
| 41 | ``` |
| 42 | |
| 43 | ## Window Options |
| 44 | |
| 45 | Open in new window: |
| 46 | ```bash |
| 47 | cursor -n /path/to/project |
| 48 | ``` |
| 49 | |
| 50 | Open in new window (alias): |
| 51 | ```bash |
| 52 | cursor --new-window /path/to/project |
| 53 | ``` |
| 54 | |
| 55 | Reuse existing window: |
| 56 | ```bash |
| 57 | cursor -r /path/to/file |
| 58 | ``` |
| 59 | |
| 60 | Reuse existing window (alias): |
| 61 | ```bash |
| 62 | cursor --reuse-window /path/to/file |
| 63 | ``` |
| 64 | |
| 65 | ## Diff Mode |
| 66 | |
| 67 | Compare two files: |
| 68 | ```bash |
| 69 | cursor -d file1.ts file2.ts |
| 70 | ``` |
| 71 | |
| 72 | Diff (alias): |
| 73 | ```bash |
| 74 | cursor --diff file1.ts file2.ts |
| 75 | ``` |
| 76 | |
| 77 | ## Wait Mode |
| 78 | |
| 79 | Wait for file to close (useful in scripts): |
| 80 | ```bash |
| 81 | cursor --wait /path/to/file |
| 82 | ``` |
| 83 | |
| 84 | Short form: |
| 85 | ```bash |
| 86 | cursor -w /path/to/file |
| 87 | ``` |
| 88 | |
| 89 | Use as git editor: |
| 90 | ```bash |
| 91 | git config --global core.editor "cursor --wait" |
| 92 | ``` |
| 93 | |
| 94 | ## Adding to Workspace |
| 95 | |
| 96 | Add folder to current workspace: |
| 97 | ```bash |
| 98 | cursor --add /path/to/folder |
| 99 | ``` |
| 100 | |
| 101 | ## Extensions |
| 102 | |
| 103 | List installed extensions: |
| 104 | ```bash |
| 105 | cursor --list-extensions |
| 106 | ``` |
| 107 | |
| 108 | Install extension: |
| 109 | ```bash |
| 110 | cursor --install-extension <extension-id> |
| 111 | ``` |
| 112 | |
| 113 | Uninstall extension: |
| 114 | ```bash |
| 115 | cursor --uninstall-extension <extension-id> |
| 116 | ``` |
| 117 | |
| 118 | Disable all extensions: |
| 119 | ```bash |
| 120 | cursor --disable-extensions |
| 121 | ``` |
| 122 | |
| 123 | ## Verbose and Debugging |
| 124 | |
| 125 | Show version: |
| 126 | ```bash |
| 127 | cursor --version |
| 128 | ``` |
| 129 | |
| 130 | Show help: |
| 131 | ```bash |
| 132 | cursor --help |
| 133 | ``` |
| 134 | |
| 135 | Verbose output: |
| 136 | ```bash |
| 137 | cursor --verbose /path/to/file |
| 138 | ``` |
| 139 | |
| 140 | Open developer tools: |
| 141 | ```bash |
| 142 | cursor --inspect-extensions |
| 143 | ``` |
| 144 | |
| 145 | ## Settings |
| 146 | |
| 147 | User settings location: |
| 148 | ``` |
| 149 | ~/Library/Application Support/Cursor/User/settings.json |
| 150 | ``` |
| 151 | |
| 152 | Keybindings location: |
| 153 | ``` |
| 154 | ~/Library/Application Support/Cursor/User/keybindings.json |
| 155 | ``` |
| 156 | |
| 157 | ## Portable Mode / Profiles |
| 158 | |
| 159 | Specify user data directory: |
| 160 | ```bash |
| 161 | cursor --user-data-dir /path/to/data |
| 162 | ``` |
| 163 | |
| 164 | Specify extensions directory: |
| 165 | ```bash |
| 166 | cursor --extensions-dir /path/to/extensions |
| 167 | ``` |
| 168 | |
| 169 | ## Piping Input |
| 170 | |
| 171 | Read from stdin: |
| 172 | ```bash |
| 173 | echo "console.log('hello')" | cursor - |
| 174 | ``` |
| 175 | |
| 176 | ## Remote Development |
| 177 | |
| 178 | Cursor supports remote development similar to VS Code. SSH remotes are configured in: |
| 179 | ``` |
| 180 | ~/.ssh/config |
| 181 | ``` |
| 182 | |
| 183 | Then use command palette or remote explorer in the GUI. |