jastore
v0.1.0
Published
Jastore CLI ===========
Downloads
9
Readme
Jastore CLI
Usage
$ npm install -g jastore
$ jastore COMMAND
running command...
$ jastore (-v|--version|version)
jastore/0.1.0 linux-x64 node-v14.15.4
$ jastore --help [COMMAND]
USAGE
$ jastore COMMAND
...
Commands
jastore access
jastore access:create
jastore access:delete ACCESS
jastore access:list
jastore groups
jastore groups:add-user
jastore groups:create GROUP
jastore groups:list
jastore help [COMMAND]
jastore login [FILE]
jastore namespace
jastore namespace:clean
jastore namespace:create [FILE]
jastore namespace:current [NAMESPACE]
jastore namespace:endpoints [FILE]
jastore namespace:get [FILE]
jastore namespace:list
jastore namespace:set
jastore pages
jastore profile [FILE]
jastore reset [FILE]
jastore resource
jastore resource:create [RESOURCENAME]
jastore resource:get RESOURCE
jastore resource:list
jastore resource:set RESOURCE
jastore resource:sync [FOLDER]
jastore signup [FILE]
jastore status [FILE]
jastore user
jastore user:create EMAIL
jastore user:delete EMAIL
jastore user:get [USER]
jastore user:groups [USER]
jastore user:list
jastore access
Manage access control
USAGE
$ jastore access
See code: src/commands/access.ts
jastore access:create
Give a group of user access to a resource.
USAGE
$ jastore access:create
OPTIONS
-R, --restrictions=restrictions restriction to apply on the resource for that group (this options can be repeated -
restrictions are additive)
-a, --allow=allow (required) rights to give to this user group for that resource. Allowed values: a mix
of the letters C (create), R (read), U (updated), D (delete)
-g, --group=group (required) user group name
-n, --namespace=namespace namespace code, (default to current namespace)
-r, --resource=resource (required) resource name
DESCRIPTION
Before you using this command, you must have configured some user groups for this namespace.
To list available user groups and create new ones, try this command:
jastore groups:list
EXAMPLES
# Allow everybody to read access on the "books" resource:
jastore access:create -r books -g public -a C
# Allow everybody the group named "admin" all access (Create, Read, Update, Delete) to the resource named "books"
jastore access:create -g admin -r books -a CRUD
See code: src/commands/access/create.ts
jastore access:delete ACCESS
Delete an access control record
USAGE
$ jastore access:delete ACCESS
ARGUMENTS
ACCESS uuid of the access-control record to delete
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
See code: src/commands/access/delete.ts
jastore access:list
List the resources accessible for each user group
USAGE
$ jastore access:list
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
See code: src/commands/access/list.ts
jastore groups
Manage user groups
USAGE
$ jastore groups
ALIASES
$ jastore group
See code: src/commands/groups.ts
jastore groups:add-user
Add a user to a group
USAGE
$ jastore groups:add-user
OPTIONS
-g, --group=group name of the group
-n, --namespace=namespace namespace code, (default to current namespace)
-u, --user=user email of the user
See code: src/commands/groups/add-user.ts
jastore groups:create GROUP
Create an empty user group
USAGE
$ jastore groups:create GROUP
ARGUMENTS
GROUP name of the group you want to create
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
ALIASES
$ jastore group:create
EXAMPLE
jastore groups:create mygroup
See code: src/commands/groups/create.ts
jastore groups:list
List user groups for a particular namespace
USAGE
$ jastore groups:list
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
See code: src/commands/groups/list.ts
jastore help [COMMAND]
display help for jastore
USAGE
$ jastore help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
jastore login [FILE]
Log in to manage the namespaces and resources associated to your user.
USAGE
$ jastore login [FILE]
OPTIONS
-e, --email=email alias for --user
-h, --help show CLI help
-p, --password=password Password (if empty, we will prompt you for it)
-u, --user=user Username (email)
See code: src/commands/login.ts
jastore namespace
Manage namespaces
USAGE
$ jastore namespace
ALIASES
$ jastore namespaces
See code: src/commands/namespace.ts
jastore namespace:clean
Clean available namespace list
USAGE
$ jastore namespace:clean
OPTIONS
-f, --force Remove all unused namespaces, even the current one
-h, --help show CLI help
See code: src/commands/namespace/clean.ts
jastore namespace:create [FILE]
Create a new namespace
USAGE
$ jastore namespace:create [FILE]
ALIASES
$ jastore namespaces:create
See code: src/commands/namespace/create.ts
jastore namespace:current [NAMESPACE]
Set current namespace
USAGE
$ jastore namespace:current [NAMESPACE]
ALIASES
$ jastore namespaces:current
See code: src/commands/namespace/current.ts
jastore namespace:endpoints [FILE]
List endpoints for a namespace
USAGE
$ jastore namespace:endpoints [FILE]
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
ALIASES
$ jastore namespaces:endpoints
$ jastore endpoints
See code: src/commands/namespace/endpoints.ts
jastore namespace:get [FILE]
Display informations about a namespace
USAGE
$ jastore namespace:get [FILE]
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
See code: src/commands/namespace/get.ts
jastore namespace:list
List the namespaces you have access to.
USAGE
$ jastore namespace:list
ALIASES
$ jastore namespaces:list
$ jastore namespaces
See code: src/commands/namespace/list.ts
jastore namespace:set
Set options of a namespace
USAGE
$ jastore namespace:set
OPTIONS
-h, --help show CLI help
-n, --namespace=namespace namespace code, (default to current namespace)
-o, --option=option set an option for this namespace
-t, --name=name set namespace name (alias)
EXAMPLES
$ jastore namespace:set -o key:value
$ jastore namespace:set -n newname
$ jastore namespace:set -n newname -o key1:value1 -o key2:value2
See code: src/commands/namespace/set.ts
jastore pages
List available auto-generated pages for a namespace
USAGE
$ jastore pages
OPTIONS
-h, --help show CLI help
-n, --namespace=namespace namespace code, (default to current namespace)
ALIASES
$ jastore page
See code: src/commands/pages.ts
jastore profile [FILE]
Print your user profile
USAGE
$ jastore profile [FILE]
See code: src/commands/profile.ts
jastore reset [FILE]
Reset all local data
USAGE
$ jastore reset [FILE]
See code: src/commands/reset.ts
jastore resource
Manage resources
USAGE
$ jastore resource
ALIASES
$ jastore resources
See code: src/commands/resource.ts
jastore resource:create [RESOURCENAME]
create a resource in a namespace
USAGE
$ jastore resource:create [RESOURCENAME]
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
-s, --schema=schema path to json schema file
See code: src/commands/resource/create.ts
jastore resource:get RESOURCE
Display details about a resource
USAGE
$ jastore resource:get RESOURCE
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
ALIASES
$ jastore resources:get
See code: src/commands/resource/get.ts
jastore resource:list
list all resources in a namespace
USAGE
$ jastore resource:list
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
ALIASES
$ jastore resources:list
$ jastore resources
$ jastore resource
See code: src/commands/resource/list.ts
jastore resource:set RESOURCE
modify a resource
USAGE
$ jastore resource:set RESOURCE
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
-s, --schema=schema json chema or path of the json schema file to use as the json schema for that resource
See code: src/commands/resource/set.ts
jastore resource:sync [FOLDER]
Sync a folder containing resources and schemas
USAGE
$ jastore resource:sync [FOLDER]
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
--dry-run output the operation that are going to be performed, without actualy performing them
ALIASES
$ jastore resources:sync
$ jastore sync
See code: src/commands/resource/sync.ts
jastore signup [FILE]
Sign up to jastore to create permanent stores and link the resources you create to your user
USAGE
$ jastore signup [FILE]
OPTIONS
-f, --force
-h, --help show CLI help
-n, --name=name name to print
See code: src/commands/signup.ts
jastore status [FILE]
Print the current status of jastore
USAGE
$ jastore status [FILE]
See code: src/commands/status.ts
jastore user
Manage namespace users
USAGE
$ jastore user
See code: src/commands/user.ts
jastore user:create EMAIL
Create a new user in a namespace
USAGE
$ jastore user:create EMAIL
OPTIONS
-h, --help show CLI help
-n, --namespace=namespace namespace code, (default to current namespace)
-p, --password=password (required) password
ALIASES
$ jastore users:create
EXAMPLE
npx jastore user:create [email protected] --password userpassword
See code: src/commands/user/create.ts
jastore user:delete EMAIL
delete a new user from a namespace
USAGE
$ jastore user:delete EMAIL
OPTIONS
-h, --help show CLI help
-n, --namespace=namespace namespace code, (default to current namespace)
ALIASES
$ jastore users:create
EXAMPLE
npx jastore user:delete [email protected]
See code: src/commands/user/delete.ts
jastore user:get [USER]
Display informations about a user in a namespace
USAGE
$ jastore user:get [USER]
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
See code: src/commands/user/get.ts
jastore user:groups [USER]
List the groups a user is part of
USAGE
$ jastore user:groups [USER]
OPTIONS
-n, --namespace=namespace namespace code, (default to current namespace)
See code: src/commands/user/groups.ts
jastore user:list
list users in a namespace
USAGE
$ jastore user:list
OPTIONS
-h, --help show CLI help
-l, --limit=limit max number of resuts to return
-n, --namespace=namespace namespace code, (default to current namespace)
-n, --offset=offset results offset
-n, --sort=sort column to sort the results by
ALIASES
$ jastore users:list
EXAMPLES
npx jastore user:list
npx jastore user:list --limit 10 --offset 20
npx jastore user:list --limit 10 --offset 20 --sort email,desc
See code: src/commands/user/list.ts