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

@vtex/toolbelt-config-cli

v0.1.0

Published

CLI for interacting with toolbelt-config-server

Downloads

15

Readme

toolbelt-config-cli

oclif Version

This CLI is a utility for interacting with toolbelt-config-server, responsible for serving configs for VTEX's toolbelt.

Install

$ yarn global add @vtex/toolbelt-config-cli

Usage

$ toolbelt-conf COMMAND
running command...

$ toolbelt-conf (-v|--version|version)
@vtex/toolbelt-config-cli/0.0.0 linux-x64 node-v12.16.1

$ toolbelt-conf --help [COMMAND]
USAGE
  $ toolbelt-conf COMMAND
...

Messages Editing

When editing a message for changing it on toolbelt-config-server ideally you should preview it first and only the commit it.

For previewing you use:

$ toolbelt-conf message:preview --file fileWithMessage.json

In fileWithMessage.json you'll have to add a JSON following the format:

{
  "messageName": {
    ... here goes message data ...
  }
}

For example:

{
  "messageName": {
    "type": "box",
    "boxOptions": {
      "padding": 2
    },
    "content": "{blue Hello} world {{emoji.thumbsUp}}"
  }
}

The message data follows the API from toolbelt-message-template.

After creating the desired message you can commit it to toolbelt-config-server:

$ toolbelt-data message:set --file ./fileWithMessage.json

If the message name doesn't exists yet you have to use the create flag:

$ toolbelt-data message:set -f ./fileWithMessage.json --create

Commands

toolbelt-conf config:get

Get all or a specific remote config

USAGE
  $ toolbelt-conf config:get

OPTIONS
  -h, --help       show CLI help
  -n, --name=name  Get a specific config name

EXAMPLES
  toolbelt-data config:get
  toolbelt-data config:get -n minimumToolbeltVersion
  toolbelt-data config:get --name minimumToolbeltVersion

toolbelt-conf config:set

Set a specific remote config

USAGE
  $ toolbelt-conf config:set

OPTIONS
  -h, --help         show CLI help
  -n, --name=name    (required) Config name to set
  -v, --value=value  (required) Value to set on config field

EXAMPLE
  toolbelt-data config set -f minimumToolbeltVersion -v 2.92.0

toolbelt-conf help [COMMAND]

display help for toolbelt-conf

USAGE
  $ toolbelt-conf help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

toolbelt-conf message:get

Get all or a specific remote message

USAGE
  $ toolbelt-conf message:get

OPTIONS
  -h, --help       show CLI help
  -n, --name=name  Get a specific message by name
  -r, --render     Render message

EXAMPLES
  toolbelt-data message:get
  toolbelt-data message:get -n releaseNotes
  toolbelt-data message:get --name releaseNotes

toolbelt-conf message:preview

Show preview of a message renderization

USAGE
  $ toolbelt-conf message:preview

OPTIONS
  -f, --file=file  (required) File containing the message to preview
  -h, --help       show CLI help

EXAMPLES
  toolbelt-data message:preview -f ./fileWithMessage.json
  toolbelt-data message:preview --file ./fileWithMessage.json

toolbelt-conf message:set

Update or create a specific remote message

USAGE
  $ toolbelt-conf message:set

OPTIONS
  -c, --create     Create new message
  -f, --file=file  (required) File to read message data and name
  -h, --help       show CLI help
  -r, --render     Render message

DESCRIPTION
  It will require a file with the message content, which have to be a JSON with the format:
  {
     "aMessageName": {
       "content": "This is an string"
     }
  }

EXAMPLES
  toolbelt-data message:set -f ./fileWithMessage.json
  toolbelt-data message:set --file ./fileWithMessage.json
  toolbelt-data message:set -f ./fileWithMessage.json -r
  toolbelt-data message:set -f ./fileWithMessage.json --render
  toolbelt-data message:set -f ./fileWithMessage.json -c
  toolbelt-data message:set -f ./fileWithMessage.json --create