0.1.2 • Published 7 years ago

snap-cli v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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

optionrequireddescription
-u --username <column>yesusername column index
-e, --email <column>yesemail column index
-o, --output <csv>yesoutput file
-p, --password <column>nopassword column index
--no-headernodenotes a header row does not exist

Example

Given input.csv:

usernameemail
jsmithjsmith@example.com
jdoejdoe@example.com
$ 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:

usernameemail
jsmithjsmith@example.comabc123
jdoejdoe@example.comdef456