Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/namoscato/snap-cli
- Owner: namoscato
- License: mit
- Created: 2018-08-20T03:38:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T02:15:28.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T19:12:35.350Z (8 months ago)
- Topics: cli, command-line, provisioning, snap, utility
- Language: JavaScript
- Homepage:
- Size: 53.7 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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 |