commands
Documentation on individual commands can be see with
dataset -help COMMAND_NAME
where “COMMAND_NAME” is replaced with one of
the commands below –
- init - initialize a new collection if none exists, requires a
path to collection
- create - creates a new JSON document or replace an existing
one in collection
- read - displays a JSON document to stdout
- update - updates a JSON document in collection
- delete - removes a JSON document from collection
- join - brings the functionality of jsonjoin to the dataset
command.
- filter - takes a filter and returns an unordered list of keys
that match filter expression
- dotpath - reach into an object to return a value(s)
- keys - returns the keys to stdout, one key per line
- haskey - returns true is key is in collection, false otherwise
- count - returns a count of keys in a collection
- path - given a document name return the full path to document
- attach - attaches a non-JSON content to a JSON record
- attachments - lists any attached content for JSON document
- detach - returns attachments for a JSON document
- prune - remove attachments to a JSON document
- import-csv - import a CSV file’s rows as JSON documents
- import-gsheet - import a Google Sheets sheet rows
as JSON documents
- export-csv - export a CSV file based on filtered results of
collection records rendering dotpaths associated with column names
- export-gsheet - export a Collection of JSON
documents to Google Sheets sheet rows
- extract - will return a unique list of unique values based on
the associated dot path described in the JSON docs
- dotpath - reach into an object to return a value(s)
NOTE: The options create, update can read JSON documents piped from standard in
if you use the ‘-i -’ or ‘-include -’ option. Likewise keys can be read from
standard input with the ‘-i -’ or ‘-include -’ options for read, list,
keys and count.