Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/namoscato/snap-cli

Command-line utilities for Snap!
https://github.com/namoscato/snap-cli

cli command-line provisioning snap utility

Last synced: 2 months ago
JSON representation

Command-line utilities for Snap!

Awesome Lists containing this project

README

        

[![npm version](https://badge.fury.io/js/snap-cli.svg)](https://www.npmjs.com/package/snap-cli)

# snap-cli

Command-line utilities for [Snap!](https://snap.berkeley.edu/)

## Installation

```
npm i -g snap-cli
```

## Usage

```
snap
```

## Commands

### `user:provision [options] `

Provision users for the accounts in the specified CSV.

#### Options

| option | required | description |
| --- | --- | --- |
| `-u --username ` | yes | username column index |
| `-e, --email ` | yes | email column index |
| `-o, --output ` | yes | output file |
| `-p, --password ` | no | password column index |
| `--no-header` | no | denotes a header row does not exist |

#### Example

Given `input.csv`:

| username | email |
| --- | --- |
| jsmith | [email protected] |
| jdoe | [email protected] |

```
$ snap user:provision input.csv -u 0 -e 1 -o output.csv
[1:jsmith] Creating user
[2:jdoe] Creating user
Writing output CSV
```

`output.csv`:

| username | email | |
| --- | --- | --- |
| jsmith | [email protected] | abc123 |
| jdoe | [email protected] | def456 |