# okgit

> CLI for interacting with git services

Latest version **1.1.0** (published 2020-05-18) · MIT license · 0 weekly downloads

## Install

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

Provides the command `okgit`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-05-18 |
| First published | 2020-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 18 |
| Unpacked size | 157.5 KB |
| Known vulnerabilities | 0 (+28 in 3 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | Sripathi Pai |
| Maintainers | sri85 |
| Keywords | node-cli, cli, github, bitbucket, gitlab, productivity, developer-tools |

## Links

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

## Dependencies (18)

- [axios](https://npm.io/package/axios.md) ^0.19.2
- [dotenv](https://npm.io/package/dotenv.md) 8.2.0
- [moment](https://npm.io/package/moment.md) ^2.24.0
- [remark](https://npm.io/package/remark.md) ^12.0.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.3
- [inquirer](https://npm.io/package/inquirer.md) ^7.0.4
- [@hapi/joi](https://npm.io/package/@hapi/joi.md) ^17.1.0
- [babel-cli](https://npm.io/package/babel-cli.md) ^6.26.0
- [cli-color](https://npm.io/package/cli-color.md) ^2.0.0
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [commander](https://npm.io/package/commander.md) 4.1.0
- [babel-core](https://npm.io/package/babel-core.md) ^6.26.3
- [remark-html](https://npm.io/package/remark-html.md) ^11.0.1
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^10.0.3
- [remark-github](https://npm.io/package/remark-github.md) ^9.0.0
- [babel-register](https://npm.io/package/babel-register.md) ^6.26.0
- [babel-preset-latest](https://npm.io/package/babel-preset-latest.md) ^6.24.1
- [babel-plugin-transform-runtime](https://npm.io/package/babel-plugin-transform-runtime.md) ^6.23.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

- 1.1.0 (latest) — 2020-05-18
- 1.0.7 — 2020-04-15
- 1.0.6 — 2020-04-13
- 1.0.5 — 2020-04-11
- 1.0.4 — 2020-04-11
- 1.0.3 — 2020-04-11
- 1.0.1 — 2020-04-11
- 1.0.0 — 2020-04-11

## README

# okgit

![Build](https://github.com/sri85/okgit/workflows/Node.js%20CI/badge.svg?branch=master) [![Node version](https://img.shields.io/node/v/okgit.svg?style=flat)](http://nodejs.org/download/) [![NPM Version](https://badge.fury.io/js/esta.svg?style=flat)](https://npmjs.org/package/okgit)

A cli tool for interacting with Github(Gitlab,Bitbucket coming soon). The cli tool aims to speed up the dev productivity by allowing devs to interact with Github/Bitbucket/Gitlab without having to leave their favorite commandline. The name is heavily inspired by voice assistant "Ok,Git".

# Mission 
Aim of `okgit` is to make developers comfortable by reducing the times that developer needs to reach the mouse to interact with Github/Gitlab/Bitbucket.(atleast that's the hope )

## Motivation
Why `okgit`?
Whilst there are tools out there to interact with **Github/Gitlab/Bitbucket**, `okgit` aims to be a single tool to interact with any of these services, without having to download or configure different tools .

## Security
`okgit` does not use /store the tokens , all the tokens that are used to continue to reside on the filesystem of your machine where `okgit` is installed.

## Installation
```
npm install okgit -g
```
The above command installs `okgit`, globally . Couple more steps, hang in there .

## Configuration
I know, you are excited to get your hands dirty with `okgit`, we will now proceed to configure the tool.
okgit can be configured with one of the major cloud git providers
1. Github
2. Gitlab(Coming Soon)
3. Bitbucket(Coming Soon)

Run `okgit config`, this will ask series of questions for you to get started.


### Github
In order to configure `okgit` with [Github](https://github.com/) , first step would be to create a token in Github.
Open Github in web browser(for one last time 😜) , Go to **Settings -> Developer Settings -> Personal Access Token** and click on
**Generate new token** Copy the token to a safe place(Please do not share the token with anyone else)

 Now run `okgit config`
 [![okgit-config](https://asciinema.org/a/8rsGr8p3LCGN7RlOVfMdroKOd.svg)](https://asciinema.org/a/8rsGr8p3LCGN7RlOVfMdroKOd)

## Features
[![asciicast](https://asciinema.org/a/StSI8hmTuKP20rR57aWPDchb4.svg)](https://asciinema.org/a/StSI8hmTuKP20rR57aWPDchb4) 
[![okgit create-pullrequest](https://asciinema.org/a/DTmeNPgxM75m7CriSxNhqPaxl.svg)](https://asciinema.org/a/DTmeNPgxM75m7CriSxNhqPaxl)


## Features
`okgit` allows us to interact with the cloud git providers(Github) features for now , without having to leave your terminal.
### Help
To view what ``okgit`` can do with pull requests just type 

````commandline
okgit --help
 
````
![Command Usage](./assets/okgit-help.png)
### PullRequest

````commandline
okgit pr <id> --help
 
````
![PR](./assets/okgit-pr.png)

### Issue

````commandline
okgit issue --help
 
````
![ISSUE](./assets/okgit-issue.png)

### Repo

````commandline
okgit repo --help
 
````
![Repo](./assets/okgit-repo.png)


## Status
Currently `okgit` is in **Beta** Status which means there are edges that still need to be polished and do not hesitate to raise [issue](https://github.com/sri85/okgit/issues/new) when you encounter them. And also if you have any cool features that you would like to see in `okgit` , feel free to raise a [feature-request](https://github.com/sri85/okgit/issues/new)

### Running and building it locally
1. Clone the repository.
2. Install the dependencies using `npm install`.
3. Build the app using `npm build`.
4. Install the app locally using `npm install ./ -g`

### Releasing the new version

`okgit` uses `release-it` plugin to release. Use `npm run release` to make a release

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