# wintt

> A cli for Windows Terminal

Latest version **1.0.0** (published 2022-05-02) · GNU GPL v3 license · 0 weekly downloads

## Install

```sh
npm install wintt
pnpm add wintt
yarn add wintt
bun add wintt
```

Provides the command `wintt`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-05-02 |
| First published | 2022-05-02 |
| Weekly downloads | 0 |
| License | GNU GPL v3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | RainWashed |
| Maintainers | rainwashed |
| Keywords | cli, windows, windows_terminal |

## Links

- npm: https://www.npmjs.com/package/wintt
- npm.io page: https://npm.io/package/wintt

## Dependencies (4)

- [jsonc](https://npm.io/package/jsonc.md) ^2.0.0
- [colors](https://npm.io/package/colors.md) ^1.4.0
- [octonode](https://npm.io/package/octonode.md) ^0.10.2
- [readline-sync](https://npm.io/package/readline-sync.md) ^1.4.10

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-05-02

## README

<p align="center">
    <img src="./view/assets/wtt_banner.png" alt="wtt_banner.png">
</p>
<h1 align="center"><b>wtt</b></h1>
<h3 align="center">A cli for Windows Terminal</h3>

<h5>Notice ‼ This CLI isn't fully completed yet and some features are missing. The project is functional for the main purpose (installing themes)</h5>

## Abstract
wtt is a command line interface written in Node.js to add more utility to the Windows Terminal application such as *theme installing*, *configuration file backups*, and more to come in the future.

---

## Setup Process
There are two methods, from the NPM package manager or locally as a standalone folder.

### NPM
> ``npm install wintt``

Run wtt with ``npx wintt``

### Locally
Clone the repository
> ``git clone https://github.com/rainwashed/wtt.git`` 

Install the dependencies
> ``npm install wintt``

Run wtt with ``node index.js``

### Binary
Download the binary from [here](https://github.com/rainwashed/wtt/releases/tag/build)

Run wtt with ``.\wintt.exe``

---

## Common Issues

### **Windows Script Host**
If during ``npx wintt``, you encounter an issue like this:

![](./assets/2022-04-23-22-55-11.png)

there is no need to worry. Just head to ``C:\Users\[system username]\AppData\Roaming\npm\node_modules\wintt``, find the ``index.js`` file, right click it, and press **Open With -> Choose another app -> More -> Look for another item on this PC** and locate the Node.js runtime (typically located at ``C:\Program Files\nodejs\node.exe``)

### **themeData returned invalid.**
If you encounter an issue that says **themeData returned invalid**:

![](./assets/2022-04-29-19-49-54.png)

just use the corresponding theme index number instead of the theme name (ex 3024 Day -> 0)

---

## Documentation
wtt has 6 core commands, and those are as follows.
- list
- install
- backup
- upload
- download
- clean

The syntax for wtt is \
```wtt <main_command> --flags -params=value [...arguments]```

The ``main_command`` must be either ``["list", "install", "backup", "upload", "download", "clean", "about", "credits", "help"]`` \
``--flags`` are to be assumed as options that go from false ❌ to true ✅ unless otherwise stated

``Flags`` and ``params`` can be in any order (ie before the main_command or after), but ``arguments`` must follow the ``main_command``

#### **List**
List theme schemes or details about a specific theme
    
> Arguments: Theme name or index number \
> Valid Parameters: None \
> Valid Flags: None

#### **Install**
Install a theme schema

> Arguments: Theme name or index number \
> Valid Parameters: None \
> Valid Flags: None

> For theme names that contain a space, replace the space with a + \
> (ex: 3024 Day -> 3024+Day)

> or optionally use the theme index number \
> (ex: 3024 Day -> 0)

#### **Backup**
Backup the Windows Terminal configuration file to a local location (default: C:/Users/systemUsername/Documents/wtt)

> Arguments: None \
> Valid Parameters: None \
> Valid Flags: None

#### **Upload**
Upload the Windows Terminal configuration file to a GitHub repository

> Arguments: None \
> Valid Parameters: None \
> Valid Flags: None

#### **Download**
Download the Windows Terminal configuration file from the GitHub repository

> Arguments: None \
> Valid Parameters: None \
> Valid Flags: None

#### **Clean**
Reset the Windows Terminal configuration file to the original (the default backup when first running wtt backup)

> Arguments: None \
> Valid Parameters: None \
> Valid Flags: None

### Minor Commands

#### **About**
List system information and wtt information such as version, configuration file, valid backups, etc.

> Arguments: None \
> Valid Parameters: None \
> Valid Flags: None

#### **Credits**
List authors, contributors, dependencies, and other information regarding the project

> Arguments: None \
> Valid Parameters: None \
> Valid Flags: None

#### **help**
Show documentation on a specific command or show this screen

> Arguments: command \
> Valid Parameters: None \
> Valid Flags: None

---

## License
This project is under the **GNU General Public License v3** and can be viewed in the [LICENSE](./LICENSE) file.

---
_Source: https://npm.io/package/wintt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
