{"id":20622597,"url":"https://github.com/myterminal/myterminal-cli","last_synced_at":"2026-04-16T21:35:07.967Z","repository":{"id":52679566,"uuid":"82365964","full_name":"myTerminal/myterminal-cli","owner":"myTerminal","description":"An all-day command-line companion","archived":false,"fork":false,"pushed_at":"2022-08-19T05:21:07.000Z","size":2218,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T22:05:50.125Z","etag":null,"topics":["command-line"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myTerminal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-18T06:11:37.000Z","updated_at":"2022-08-03T23:49:18.000Z","dependencies_parsed_at":"2022-09-07T16:03:10.109Z","dependency_job_id":null,"html_url":"https://github.com/myTerminal/myterminal-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fmyterminal-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fmyterminal-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fmyterminal-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myTerminal%2Fmyterminal-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myTerminal","download_url":"https://codeload.github.com/myTerminal/myterminal-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242300867,"owners_count":20105310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line"],"created_at":"2024-11-16T12:23:53.689Z","updated_at":"2026-04-16T21:35:07.931Z","avatar_url":"https://github.com/myTerminal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# myterminal-cli\n\n[![npm version](https://badge.fury.io/js/myterminal-cli.svg)](https://badge.fury.io/js/myterminal-cli)\n[![npm downloads](https://img.shields.io/npm/dt/myterminal-cli.svg)](https://www.npmjs.com/package/myterminal-cli)\n[![License](https://img.shields.io/github/license/myTerminal/myterminal-cli.svg)](https://opensource.org/licenses/MIT)  \n[![Build Status](https://travis-ci.org/myTerminal/myterminal-cli.svg?branch=master)](https://travis-ci.org/myTerminal/myterminal-cli)\n[![Code Climate](https://codeclimate.com/github/myTerminal/myterminal-cli.png)](https://codeclimate.com/github/myTerminal/myterminal-cli)\n[![js-myterminal-style](https://img.shields.io/badge/code%20style-myterminal-blue.svg)](https://www.npmjs.com/package/eslint-config/myterminal)\n[![Coverage Status](https://img.shields.io/coveralls/myTerminal/myterminal-cli.svg)](https://coveralls.io/r/myTerminal/myterminal-cli?branch=master)  \n[![NPM](https://nodei.co/npm/myterminal-cli.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/myterminal-cli/)\n\nAn all-day command-line companion\n\n![Demo](images/demo.gif)\n\n## What is it?\n\n*myterminal-cli* is a command-line application created to help you perform repetitive tasks that you might be performing all day long with the press of a single programmable key. It tends to be an interactive command-line interface that you can keep running in a terminal window on your workstation to perform a set of programmed tasks and present via a menu-driven interface.\n\n## Features\n\n* Configure long commands to be invoked with a single key-stroke\n* Nest similar or related commands in a menu-based hierarchy\n* Specify parameters for commands\n* Configure working directories for commands or a group of commands\n* Re-perform the last action with a *(\\\\)*\n* Re-run the last command with a *(.)*\n* Run a custom command, which can later also become the 'last' command\n\n## Installation\n\n*myterminal-cli* is available on *Npm*. You can install it globally with a simple command.\n\n    npm install -g myterminal-cli\n\n## How to Use\n\nRun `myterminal-cli` or simply `myterminal` from the command line passing it a path to a JSON configuration file as shown in the [examples](examples). For example, if the configuration file is stored at your home directory, you can run it as\n\n    myterminal-cli --config=~/configs.json\n\n*myterminal-cli* will start and the rest should all be simple.\n\nYou can also start *myterminal-cli* without supplying the configuration file path, in which case it will start with a configuration file named *myterminal-cli-configs.json* placed at your home (~/) directory. If the file does not exist, it will be created when the application is started for the first time.\n\n### Legacy Mode\n\nSince version 2, *myterminal-cli* uses an entirely new interface which does not work well on Windows. Hence *myterminal-cli* starts in the legacy mode in Windows, which means almost the same functionality, with the old interface.\n\nTo force the modern mode in Windows, start *myterminal-cli* as\n\n    myterminal-cli --modern\n\nand to force legacy mode on a *better* computer, start it as\n\n    myterminal-cli --legacy\n\n**Note:** *Legacy mode is no longer available starting version 2.2.* If you need legacy mode, consider using older versions. One way of doing that is specifying the version during installation.\n\n    npm install -g myterminal-cli@1.2\n\n## Configuration\n\nThe configuration file should contain a valid JSON. It consists of nodes having a *title* and a subtree called *commands*. Each of these nodes holds a group of commands. The tree contains a single character with which the group can be selected while the application is running. When a node has a property *task* instead of *commands*, it is treated as a command to be executed, rather than a group of commands.\n\nEach command has a *title*, a *task* and optionally an array of *params*. These params are prompted to be entered by the user while executing the *task* and are appended to the task separated by spaces, in sequence as they appear in the *params* array to form the final command to be executed.\n\nEach of the items, be it a command or a group of commands, can have a defined *directory*, within which the command or the group of commands are executed. Note that when a *directory* is specified for a specific *task* and it also has a *directory* specified for the entire group containing the *task*, the *directory* for the *task* takes precedence.\n\n## To-do\n\n* Repeating tasks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Fmyterminal-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyterminal%2Fmyterminal-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyterminal%2Fmyterminal-cli/lists"}