Terminal

The vektor command

Install the vektor shell command and open folders and files in Vektor Commander from any terminal.

The vektor command opens folders in Vektor Commander from a terminal, the way code . opens a folder in a code editor. It works in any terminal app, including the terminals inside Vektor Commander, and whether Vektor Commander is running or not.

➜  orbit-agent git:(main) vektor .

Install the command

Nothing is installed until you ask for it.

Open the Shell Command settings

Choose Vektor ▸ Settings… (⌘,) and select General. The Shell Command section is at the bottom of the page. Its Status row says Not installed.

Choose where to install it

In Install in, choose one of:

  • /usr/local/bin (asks for your password): the usual place for commands. macOS asks for an administrator password; the prompt says that Vektor wants to install its shell command there.
  • ~/.local/bin (no password): a folder in your home folder. You may need to add it to your PATH (see below).

Click Install

The status changes to Installed at, followed by the command's location. Open a new terminal window and type vektor --help to check it.

What gets installed is a link to the command inside Vektor Commander. When you update the app, the command keeps working.

Add the folder to your PATH

If you installed in a folder your shell does not search, the section shows Not in your PATH with the exact line to add, for example:

export PATH="$HOME/.local/bin:$PATH"

Click Copy, paste the line into ~/.zprofile, and open a new terminal window. Vektor Commander never edits your startup files for you.

The short alias v

Turn on Short alias “v” to also install a command named v, so v . does the same as vektor .. It is off by default because v is often already in use. If a file named v that Vektor Commander did not create is already in the folder, it is left as it is and the section says so.

A v alias or function defined in your shell's startup files takes precedence over the installed v command. In that case, use vektor.

Open folders and files

You typeVektor Commander
vektor .Shows the folder you are in, in the active pane.
vektor ~/Projects/websiteShows that folder in the active pane.
vektor src docsShows src in the left pane and docs in the right pane.
vektor README.mdShows the file's folder with README.md selected.
vektorComes to the front without moving anything.
➜  orbit-agent git:(main) vektor src docs
➜  orbit-agent git:(main) vektor orbit-v2-design.md

Relative paths are relative to the folder you are in. Names with spaces, quotes or other unusual characters arrive exactly as your shell passes them. A link to a folder opens the folder it points to.

Vektor Commander comes to the front. If it was not running, it starts, restores your last session, and then shows the folders.

If a pane is showing something other than its files (its terminal, a preview, Disk Space or Git Review), it switches to its files. A maximized terminal is restored so you can see the panes.

The command only opens local folders and files. It cannot open S3, SFTP or other remote places, and it never runs or opens anything named on its command line.

Names that start with a dash

A word that starts with - is read as an option. To open a folder whose name starts with a dash, put -- before it:

➜  orbit-agent git:(main) vektor -- -drafts

Options

OptionWhat it does
-h, --helpShows how to use the command.
--versionShows the version and build of Vektor Commander.
--Treats everything after it as a path.

vektor mcp is not a folder: it is the command an AI assistant runs to connect to Vektor Commander (see Connect an assistant). To open a folder named mcp, type vektor ./mcp.

When the command cannot open something

The command checks every path before it opens anything. If one path is wrong, nothing is opened, and the terminal tells you why:

MessageMeaning
vektor: “notes” does not exist.There is no such file or folder. Check the name and the folder you are in.
vektor: “Archive” cannot be read. Vektor may need access to it.macOS does not let Vektor Commander read that place. See Installation for Full Disk Access.
vektor: 3 paths given; Vektor has two panes, so give one or two.Give one or two paths.
vektor: unknown option “-x”. …A word that starts with - that is not an option. Put -- before a path that starts with a dash.
vektor: Vektor could not be opened.The app did not start. Open it from Applications and try again.

If Vektor Commander is busy with a dialog, a rename, or the Diff Tool, it does not move anything; it shows a short message instead. Finish what you are doing and run the command again.

Update, move or uninstall

The Status row always shows what is installed now:

  • Installed at …, but points to a different Vektor.app: the command belongs to another copy of the app, for example after you moved Vektor Commander. Click Reinstall to point it at this copy.
  • … is already a file that Vektor did not create (or a folder, or a link): something else already uses the name. Vektor Commander never replaces or removes anything it did not create.

To remove the command, click Uninstall. This also removes the v alias if Vektor Commander installed it. If you cancel the password prompt, nothing changes, and the section says Cancelled.

© 2026 Vektor Commander