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

genesys-cli

v2.3.2

Published

Commandline generator and configurator for Genesys CMS

Downloads

4

Readme

genesys-cli

The genesys-cli is a cross-platform starting point for creating and configuring Genesys 2 projects, providing a simple boilerplate generator and wrapping other useful functions into an easy to use command line tool.

First, install genesys-cli as a global NPM module:

npm install -g genesys-cli

To view the available commands in a given context, execute the newly-installed command with no arguments:

genesys

Create a project

To create a new project with the tool:

genesys create-project <shortname-without-spaces>

This will create a local copy of our standard Genesys Boilerplate.

If you run the create-project command with the --setup flag, the command will also npm install the dependencies for the project and run genesys-users:add to create an admin user for the CMS, resulting in a fully bootstrapped project. This command will prompt you for a password for the admin user being created.

Create a widget

To bootstrap the necessary files and basic configuration for a new Genesys widget, run the following command from within your Genesys project's root directory:

# "-widgets" will automatically be appended to the end of your module name
genesys create-widget fancy-button

Create a piece

To bootstrap the necessary files and basic configuration for a new Genesys piece type, run the following command from within your Genesys project's root directory:

# be sure to use the SINGULAR version of the name of your content type
genesys create-piece vegetable

If you run the create-piece command with the --pages flag, the command will also set up a corresponding pieces-pages module with your new piece type. Similarly, you can run the create-piece command with the --widgets flag, which will also set up a corresponding pieces-widgets module along with your new piece type. These flags can be used together or separately.

genesys create-piece vegetable --pages --widgets

Create an empty Genesys module

To bootstrap the necessary files and basic configuration for a brand-new Genesys module that doesn't extend one of the usual suspects like pieces or widgets:

genesys create-module <module name>

Run other Genesys-flavored command-line tasks

To run an Genesys command-line task with the genesys-cli, which are conventionally run like this: node app.js <namespace>:<task name>, you may instead execute the following from any location within a project's directory:

genesys <namespace>:<task name>

The genesys-cli assumes the genesys namespace when executing tasks. This means that if a task is in the genesys namespace (such as the genesys:reset task), you can simply execute:

genesys <task name>

For more information on command-line tasks in Genesys, visit the Command line tasks documentation for Genesys.


For more documentation on Genesys, visit the Genesys documentation site.