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

admin-cli

v0.0.33

Published

Simple command line tool to help with the installation and running of Adhara components

Downloads

30

Readme

admin-cli

Simple command line tool to help with the installation and running of Adhara components

oclif Version

Appveyor CI Codecov Downloads/week License

Usage

After cloning/installing the tool, running any command (for ex. ./bin/run --help or adhara --help) once will create a configuration template in ~/.config/adhara/config.json if it does not yet exist. You will probably need to edit this (update the installation dir values) to get any of the commands to work. You can point to any other configuration file by setting the ADHARA_CONFIG environment variable.

$ npm install -g admin-cli
$ adhara COMMAND
running command...
$ adhara (-v|--version|version)
admin-cli/0.0.33 linux-x64 node-v10.15.3
$ adhara --help [COMMAND]
USAGE
  $ adhara COMMAND
...

Commands

adhara cmd COMPONENT CMD

Run a custom command against one or more components.

USAGE
  $ adhara cmd COMPONENT CMD

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against
  CMD        custom command name (if defined) or string to execute

OPTIONS
  -c, --config=individual|local  [default: local] configuration to use
  -d, --dependencies

DESCRIPTION
  First checks if a specified string is a named command in the configuration, if not, tries to run it in the 
  installation directory of the component.
  ...
  Extra documentation goes here

See code: src/commands/cmd.js

adhara dockerize COMPONENT

Create and publish a docker image of a specific component.

USAGE
  $ adhara dockerize COMPONENT

ARGUMENTS
  COMPONENT  component to dockerize

OPTIONS
  -l, --latest  Make this the docker image have the `latest` tag
  -p, --push    Push the created images to hub.docker.com

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/dockerize.js

adhara git-clone [COMPONENT]

Clone one or more git repositories specified in the config file. This is equivalent to 'git clone '.

USAGE
  $ adhara git-clone [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against

OPTIONS
  -d, --dependencies

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/git-clone.js

adhara git-log [COMPONENT]

Report on the repository commit log of one or more components. This is equivalent to 'git log -n 1'.

USAGE
  $ adhara git-log [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against

OPTIONS
  -d, --dependencies

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/git-log.js

adhara git-log-diff [COMPONENT]

Report on the difference between remote and local repositories for one or more components. This is equivalent to 'git fetch upstream' followed by 'git log master..upstream/master'.

USAGE
  $ adhara git-log-diff [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against

OPTIONS
  -d, --dependencies

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/git-log-diff.js

adhara git-status [COMPONENT]

Report on the repository status of one or more components. This is equivalent to 'git status'.

USAGE
  $ adhara git-status [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against

OPTIONS
  -d, --dependencies

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/git-status.js

adhara help [COMMAND]

display help for adhara

USAGE
  $ adhara help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

adhara kill [COMPONENT]

Stop and delete/remove one or more processes running in pm2 and/or docker. This is equivalent to 'pm2 delete ' and/or 'docker-compose down'.

USAGE
  $ adhara kill [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against

OPTIONS
  -c, --config=individual|local  [default: local] configuration to use
  -d, --dependencies

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/kill.js

adhara list

List all the processes running in pm2 and docker. This is equivalent to 'pm2 list' and 'docker ps -a'.

USAGE
  $ adhara list

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/list.js

adhara npm-install [COMPONENT]

Update npm dependencies for one or more components. This is equivalent to npm install.

USAGE
  $ adhara npm-install [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against

OPTIONS
  -d, --dependencies

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/npm-install.js

adhara restart [COMPONENT]

Restart one or more processes running in pm2 and/or docker.

USAGE
  $ adhara restart [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against

OPTIONS
  -c, --config=individual|local  [default: local] configuration to use
  -d, --dependencies
  -r, --restart

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/restart.js

adhara set-root DIRECTORY

Update the adhara root specified in your config file.

USAGE
  $ adhara set-root DIRECTORY

ARGUMENTS
  DIRECTORY  The root directory containing your adhara components.

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/set-root.js

adhara start [COMPONENT]

Start one or more processes using pm2 and/or docker-compose.

USAGE
  $ adhara start [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component(s) to run command against

OPTIONS
  -c, --config=individual|local  [default: local] configuration to use
  -d, --dependencies
  -r, --restart

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/start.js

adhara stop [COMPONENT]

Stop one or more processes running in pm2 and/or docker.

USAGE
  $ adhara stop [COMPONENT]

ARGUMENTS
  COMPONENT  [default: *] component to run command against

OPTIONS
  -c, --config=individual|local  [default: local] configuration to use
  -d, --dependencies

DESCRIPTION
  ...
  (extra doc)

See code: src/commands/stop.js