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

@moccu/moccu-cli

v1.1.4

Published

The Moccu-CLI to release, deploy and do other fancy stuff with Docker Context

Downloads

3

Readme

moccu-cli

CLI to run commands for docker

Installation and Usage

You can install the moccu-cli using npm:

$ npm install -g moccu-cli

You should then set up a configuration file:

{
	"deployment": {
		"common": {
			"client": "clientname",
			"project": "projectname",
			"service": "server",
			"compose": {
				"nodeCommand": "\"node server.js\""
			}
		},
		"instances": {
			"localhost": {
				"host": "localhost",
				"stage": "testing",
				"compose": {
					"envFile": "localhost.env"
				}
			},
			"testing": {
				"server": "testing",
				"host": "testing.moccu.net",
				"stage": "testing",
				"compose": {
					"envFile": "testing.env"
				}
			},
			"live": {
				"server": "live",
				"host": "live.moccu.net",
				"stage": "live",
				"compose": {
					"envFile": "live.env"
				}
			}
		}
	}
}

All key-value-pairs inside compose would be converted to uppcased snakecase-string and will be used as environment variable for docker-compose. Example:

  • nodeCommand => COMPOSE_NODE_COMMAND
  • envFile => COMPOSE_ENV_FILE

Alias

moccu

Help Output

$ moccu-cli ---help
Usage: moccu-cli <command> [options]

Commands:
  moccu-cli deploy <instance>      Deploy tag to instance
  moccu-cli downloaddb <instance>  Download Database from given instance
  moccu-cli dumpdb <instance>      Dump Database for given instance
  moccu-cli migrate <instance>     Migrate Database for given instance
  moccu-cli release                Add and push a new tag to remote branch
  moccu-cli restoredb <instance>   Restore Database for given instance
  moccu-cli shell <instance>       Start shell on given instance
  moccu-cli shutdown <instance>    Shutdown container on given instance

Options:
  --version  Show version number                                       [boolean]

Examples:
  moccu-cli release  Add and push a new tag to remote branch

Example Commands

Deploy latest tag to instance:

moccu-cli deploy live

Deploy specific tag to instance:

moccu-cli deploy live --tag 0.0.1

Create and push new tag to github:

moccu-cli release

License

LICENSE