# stoplight-cli

> Command line utilities for Stoplight.io.

Latest version **0.1.3** (published 2014-06-10) · 0 weekly downloads

## Install

```sh
npm install stoplight-cli
pnpm add stoplight-cli
yarn add stoplight-cli
bun add stoplight-cli
```

Provides the commands `sl`, `stoplight`.

## 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.3 |
| Published | 2014-06-10 |
| First published | 2014-05-29 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 10 |
| Known vulnerabilities | 0 (+5 in 3 direct dependencies) |
| Install scripts | no |
| Author | Marc MacLeod |
| Maintainers | marbemac |

## Links

- npm: https://www.npmjs.com/package/stoplight-cli
- Repository: https://github.com/marbemac/stoplight-cli
- Issues: https://github.com/marbemac/stoplight-cli/issues
- npm.io page: https://npm.io/package/stoplight-cli

## Dependencies (10)

- [grunt](https://npm.io/package/grunt.md) ~0.4.5
- [nconf](https://npm.io/package/nconf.md) ^0.6.9
- [colors](https://npm.io/package/colors.md) ^0.6.2
- [prompt](https://npm.io/package/prompt.md) ^0.2.12
- [request](https://npm.io/package/request.md) ^2.34.0
- [commander](https://npm.io/package/commander.md) ^2.2.0
- [pusher-client](https://npm.io/package/pusher-client.md) ^0.2.1
- [grunt-contrib-watch](https://npm.io/package/grunt-contrib-watch.md) ~0.5.3
- [grunt-contrib-jshint](https://npm.io/package/grunt-contrib-jshint.md) ~0.6.4
- [grunt-contrib-nodeunit](https://npm.io/package/grunt-contrib-nodeunit.md) ~0.2.0

## Recent versions

- 0.1.3 (latest) — 2014-06-10
- 0.1.2 — 2014-05-29
- 0.1.1 — 2014-05-29
- 0.1.0 — 2014-05-29

## README

# stoplight-cli

Command line utilities for Stoplight.io.


## Setup

#### Install Node

Node is an open source platform for building websites in Javascript. There are many ways to install Node, the easiest is by [visiting their site](http://www.nodejs.org/) and running the installer. Alternatively, Mac users can run brew install node if they have [Homebrew](http://brew.sh/) installed.

#### Install the StopLight CLI

Once Node is installed, open your terminal and run the following command.

    # If you're using linux, you might need to sudo
    npm install -g stoplight-cli
    
This will install the StopLight command line tools. To verify the tool installed correctly, run the following command in your terminal:

    stoplight -h
    
If all went well, it should output a list of the available StopLight commands.

## Login

Once you have the CLI tool installed, change into your app's directory on your local machine, and then login:

    cd /path/to/my/app
    stoplight login
    
It will ask you for your authToken. You can find this token by signing in at https://dash.stoplight.com, clicking on your username in the top right, and copying the authToken presented on the screen.

After logging in it will ask you which StopLight app you would like to associate with your current directory. If you have not created an app yet, please head over to https://dash.stoplight.com, sign in, and create one. Then run the following:

    stoplight app
    
## Connect

Once you've logged in and setup your app/environment, it's time to connect! Simply change into the root directory of your app, and run:

    stoplight connect
    
This will start a connection to the StopLight servers. As you make requests via the dashboard at https://dash.stoplight.com, you will see logs of the activity here in your terminal. You're all set running requests and tests on your local environment!

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