Currently a browser-based frontend for browsing my personal website via CLI, written as a single-page javascript app. Eventually may become a slightly-to-moderately-fledged browser-based CLI web browser. See it live at michaelkupietz.com/cli.html.
This README is much less frequently updated than the code and is probably slightly out-of-date. Please see the code or run "help" in the browser CLI for more up-to-date information.
If you host this on your server, code runs an update check when it starts and lets you know if this repo has been updated.
Options in [brackets] are optional.
Use help [commandname] to see more detailed info on a command:
- display [url] : Display the currently loaded page, or load and display the page at url
- images [[-a, --ascii-art] imagenumber] : Show a numbered list of all images in the currently loaded page, or include number to show a single image by its imagenumber. Optional -a flag displays output in ASCII-art mode.
- where : Display the URL of the currently loaded page
- source : Display the source HTML code of the currently loaded page
- links [linknumber] : Show a numbered list of all links in the currently loaded page, or include a number to load a linked page by its linknumber
- back : Go back to the previously loaded page
- forward : Go forward to the next page
- reload : Reload the currently loaded page
- help [commandname] : Show this help message, or detailed help on commandname
- exit : End terminal session. Returns this browser window to GUI browsing mode
- info [news|versions|bugs|todo] : Display the latest news, version history/changelog, known bugs, and the developer's to-do list.
- clear : Clear the terminal output
- reboot : Reboot the terminal with its original startup options
- hint : A mysterious command, I don't know what it does
- beep : Plays the system bell (ctrl-G)
- cmd [command] : Opens a child CLI process and optionally runs a command. This CLI page can also accept a ?cmd=command1,command2,command3,... URL parameter to run a sequence of commands immediately upon load.
- options [option [value]] : Show the current value of all or one option, or manually set an option from the command line. Some available options are listed below. Type help options for details.
- commandname | more : Use after pipe (|) to paginate output of previous command. [space] to continue. Esc, ctrl-c, or q to quit
- commandname | grep filterexpression : Use after pipe (|) to filter output of previous command by regular expression. Case-insensitive, no delimiters
- commandname > filename.html : Output commandname's output to a file download, rather than onscreen
These can be set with the options command, or passed as URL parameters to this page. Starred value is the default value if none is specified.
- options language [cli-html*|unix|basic|pig-latin] : Change commands to match various platforms. This way you unix geeks don't have to fight your natural urge to type ls
- options prompt [unix|pet*|apple] : Change style of command prompt to match various advanced platforms
- options crt [bw*|green|amber] : Choose between popular CRT colors. There may be some others available
- options allcaps [false*|true] : Force all uppercase text for that vintage 1980 personal computer experience
- options nobeep [false*|true] : [sigh] Yes... you can disable the error beep if you absolutely have to. You're no fun.