Linux command
vscli 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open the current directory in VS Code
vscli open
Open a specific project directory
vscli open [path/to/project]
Open with Cursor editor instead of VS Code
vscli open --command cursor .
Force opening as a dev container
vscli open --behavior force-container
Browse recently opened projects interactively
vscli recent
Dry run to see what would be launched without opening
vscli open --dry-run
说明
vscli simplifies launching VS Code projects with a focus on dev containers. It auto-detects whether a project uses dev containers and launches accordingly. When a project contains multiple dev container configurations, vscli prompts you to select one. It supports multiple editors including VS Code, VS Code Insiders, and Cursor. Tracks recent projects for quick access via an interactive TUI list.
参数
- --command _EDITOR_
- Specify which editor command to use (e.g., code, code-insiders, cursor).
- --behavior _BEHAVIOR_
- Change launch behavior: force-container or force-classic.
- -s, --history-path _PATH_
- Override the default path to the history file.
- -d, --dry-run
- Show what would be launched without actually opening the editor.
- -v, --verbose
- Increase logging verbosity.
- -q, --quiet
- Decrease logging verbosity.
- -h, --help
- Display help information.
- -V, --version
- Display version information.
FAQ
What is the vscli command used for?
vscli simplifies launching VS Code projects with a focus on dev containers. It auto-detects whether a project uses dev containers and launches accordingly. When a project contains multiple dev container configurations, vscli prompts you to select one. It supports multiple editors including VS Code, VS Code Insiders, and Cursor. Tracks recent projects for quick access via an interactive TUI list.
How do I run a basic vscli example?
Run `vscli open` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --command _EDITOR_ do in vscli?
Specify which editor command to use (e.g., code, code-insiders, cursor).