Skip to main content

Shell Tools (mobitty-cli)

Mobitty provides a set of shell tools available inside your terminal sessions. These commands let you interact with the browser directly from the command line.

mobitty-cli <command> <path>
CommandDescription
edit <path>Open a file in the browser editor
view <path>View an image in the browser
download <path>Download a file to the browser

edit

Opens a file in a full-screen browser editor. This is the same command that runs when programs like git commit or crontab -e need an editor — Mobitty sets $EDITOR and $VISUAL to mobitty-cli edit when the Remote Editor setting is enabled.

You can also invoke it directly:

mobitty-cli edit ~/.bashrc

When you open an image file, it automatically switches to the image viewer.

view

Opens an image file in a full-screen browser viewer with pinch-to-zoom support on mobile.

mobitty-cli view screenshot.png

Supported formats: .png, .jpg, .jpeg, .gif, .webp, .bmp, .svg

download

Download a file from the server to your browser.

mobitty-cli download backup.tar.gz

The file is streamed directly to your browser's download manager — you'll see the standard download prompt or progress indicator, just like downloading any file from a website. Both absolute and relative paths are supported.