snap-cli
v0.1.2
Published
Command-line utilities for Snap!
Downloads
7
Readme
snap-cli
Command-line utilities for Snap!
Installation
npm i -g snap-cli
Usage
snap <command>
Commands
user:provision [options] <csv>
Provision users for the accounts in the specified CSV.
Options
| option | required | description |
| --- | --- | --- |
| -u --username <column>
| yes | username column index |
| -e, --email <column>
| yes | email column index |
| -o, --output <csv>
| yes | output file |
| -p, --password <column>
| 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 |