npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@jastore/cli

v0.1.1

Published

Jastore CLI ===========

Downloads

3

Readme

Jastore CLI

oclif Version Downloads/week License

Usage

$ npm install -g @jastore/cli
$ jastore COMMAND
running command...
$ jastore (-v|--version|version)
@jastore/cli/0.1.0 linux-x64 node-v14.15.4
$ jastore --help [COMMAND]
USAGE
  $ jastore COMMAND
...

Commands

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: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

Log in to manage the namespaces and resources associated to your user.

USAGE
  $ jastore login

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: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

ALIASES
  $ jastore namespaces:clean
  $ jastore clean

See code: src/commands/namespace/clean.ts

jastore namespace:create [ALIAS]

Create a new namespace

USAGE
  $ jastore namespace:create [ALIAS]

OPTIONS
  -h, --help  show CLI help

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
  $ jastore namespace:current
  $ jastore current
  $ jastore use
  $ jastore namespace:use
  $ jastore namespace
  $ jastore ns
  $ jastore ns:current
  $ jastore ns:use

See code: src/commands/namespace/current.ts

jastore namespace:endpoints

List endpoints for a namespace

USAGE
  $ jastore namespace:endpoints

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 [NAMESPACE]

Display details about a namespace

USAGE
  $ jastore namespace:get [NAMESPACE]

OPTIONS
  -n, --namespace=namespace  namespace code, (default to current namespace)

ALIASES
  $ jastore namespaces:get
  $ jastore ns:get

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

Print your user profile

USAGE
  $ jastore profile

See code: src/commands/profile.ts

jastore reset

Reset all local data

USAGE
  $ jastore reset

OPTIONS
  -h, --help  show CLI help

See code: src/commands/reset.ts

jastore resource:create [RESOURCENAME]

Create a resource in a namespace

USAGE
  $ jastore resource:create [RESOURCENAME]

OPTIONS
  -h, --help                 show CLI help
  -n, --namespace=namespace  namespace code, (default to current namespace)
  -s, --schema=schema        inline json or path to json schema file
  -y, --yes                  do not prompt for confirmation before creating the resource

ALIASES
  $ jastore resources:create
  $ jastore rs:create

See code: src/commands/resource/create.ts

jastore resource:get RESOURCE

Display details about a resource

USAGE
  $ jastore resource:get RESOURCE

OPTIONS
  -h, --help                 show CLI help
  -n, --namespace=namespace  namespace code, (default to current namespace)

ALIASES
  $ jastore resources:get
  $ jastore rs:get

See code: src/commands/resource/get.ts

jastore resource:list [RESOURCE]

List all resources in a namespace

USAGE
  $ jastore resource:list [RESOURCE]

ARGUMENTS
  RESOURCE  (optional) resource name (if present, this command will print the details about this resource instead of the
            list of all resources)

OPTIONS
  -h, --help                 show CLI help
  -n, --namespace=namespace  namespace code, (default to current namespace)

ALIASES
  $ jastore resources:list
  $ jastore rs
  $ jastore rs:list

EXAMPLES
  # List all resources in current namespace:
  npx jastore resource:list
  # Alias:
  npx jastore resources:list
  npx jastore rs:list
  npx jastore rs

  # Print details about a resource (alias for the resource:get command):
  npx jastore rs [resource_name]

See code: src/commands/resource/list.ts

jastore resource:set RESOURCE

Modify a resource's schema

USAGE
  $ jastore resource:set RESOURCE

OPTIONS
  -h, --help                 show CLI help
  -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

ALIASES
  $ jastore resources:set
  $ jastore rs:set

EXAMPLES
  # Update a resource's schema (with an inline schema):
  npx jastore resource:set [resource_name] --schema '{ "properties": { "title" : { "type" : "string" } }}'

  # Update a resource's schema (from a json file):
  npx jastore resource:set [resource_name] --schema ./schemas/my.schema.json

  # Update a resource in another namespace
  npx jastore resource:set [resource_name] --namespace [namespace_code] --schema ./schemas/my.schema.json

  # Short command:
  npx jastore rs:set [resource_name] -n [namespace_code] -s ./schemas/my.schema.json

See code: src/commands/resource/set.ts

jastore resource:sync [FOLDER]

Sync a folder containing resources and schemas

USAGE
  $ jastore resource:sync [FOLDER]

OPTIONS
  -h, --help                 show CLI help
  -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
  $ jastore rs:sync

See code: src/commands/resource/sync.ts

jastore signup

Sign up to jastore to create permanent stores and link the resources you create to your user

USAGE
  $ jastore signup

OPTIONS
  -h, --help  show CLI help

See code: src/commands/signup.ts

jastore status

Print the current status of jastore

USAGE
  $ jastore status

OPTIONS
  -h, --help  show CLI help

See code: src/commands/status.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 [EMAIL]

Display informations about a particular user in a namespace

USAGE
  $ jastore user:get [EMAIL]

OPTIONS
  -n, --namespace=namespace  namespace code, (default to current namespace)

See code: src/commands/user/get.ts

jastore user:groups [EMAIL]

List the groups a user is part of

USAGE
  $ jastore user:groups [EMAIL]

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