# gitmk

> Manage remote repos from the terminal.

Latest version **0.1.0** (published 2022-01-23) · MIT license · 0 weekly downloads

## Install

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

Provides the command `gitmk`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-01-23 |
| First published | 2022-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Mozetsu |
| Maintainers | mozetsu |
| Keywords | terminal, cli, nodejs, git |

## Links

- npm: https://www.npmjs.com/package/gitmk
- Repository: https://github.com/Mozetsu/gitmk
- Homepage: https://github.com/Mozetsu/gitmk#readme
- Issues: https://github.com/Mozetsu/gitmk/issues
- npm.io page: https://npm.io/package/gitmk

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [yargs](https://npm.io/package/yargs.md) ^17.3.1
- [dotenv](https://npm.io/package/dotenv.md) ^14.2.0
- [octokit](https://npm.io/package/octokit.md) ^1.7.1
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.0

## 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

- 0.1.0 (latest) — 2022-01-23
- 0.0.1 — 2022-01-20

## README

# gitmk (pronounced git make)

Create and delete repos directly in the terminal, easily.

## Setup

To use github's API, an access token with the right permissions has to be generated. Go to `settings > Developer settings > Personal access tokens`. Generate a new token with the following scopes:

- repo
- read:user
- delete_repo

This gives the token all the necessary permissions to create and delete repos.

Install the package globally.

```bash
npm i -g gitmk
```

Create a text file with your github access token.

```bash
ghp_3XtpPf...
```

This file will be used to setup environment variables, and is also a way of not having the access token sitting around in the terminal's command history.

Run the configuration command to setup the environment variables.

```bash
gitmk config
```

Provide the **absolute path** to the text file containing the access token.

```bash
? Config file path: path/to/file.txt

Adding environment variables...

GitHub Account: [user]

Configuration complete.
```

Feel free to delete the text file now that the configuration is done.

## Usage

### Creating remote repos

Create a remote repo with the following command.

```bash
gitmk add -n "repo-name"
```

This adds a remote repo to your github account with a readme file. By default all repos will be public, set the `private` flag to `true` to change that.

### Create flags

| Name          | Alias |  Type   | Default | Description       |
| :------------ | :---: | :-----: | :-----: | ----------------- |
| --name        |  -n   | string  |   n/a   | Name.             |
| --description |  -d   | string  |   n/a   | Description.      |
| --private     |  -p   | boolean |  false  | Visibility.       |
| --license     |  -l   | string  |  "MIT"  | License template. |

### Deleting remote repos

You can delete a remote repo with the following command.

```bash
gitmk rm -n "repo-name"
```

### Delete flags

| Name   | Alias |  Type  | Default | Description |
| ------ | :---: | :----: | :-----: | ----------- |
| --name |  -n   | string |   n/a   | Name.       |

<hr/>

###### Feel free to contribute to this project.

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