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

@commercelayer/cli-plugin-tags

v2.1.1

Published

Commerce Layer CLI Tags plugin

Downloads

66

Readme

@commercelayer/cli-plugin-tags

Commerce Layer CLI Tags plugin

oclif Version Downloads/week License

Usage

commercelayer COMMAND

commercelayer [COMMAND] (--help | -h) for detailed information about plugin commands.

Commands

commercelayer tags [ID]

List all the created tags or show details of a single tag.

USAGE
  $ commercelayer tags [ID] [-A | -l <value>]

ARGUMENTS
  ID  unique id of the tag to be retrieved

FLAGS
  -A, --all            show all tags instead of first 25 only
  -l, --limit=<value>  limit number of tags in output

DESCRIPTION
  list all the created tags or show details of a single tag

See code: src/commands/tags/index.ts

commercelayer tags:add

Add one or more tags to a set of resources.

USAGE
  $ commercelayer tags:add -n <value>... -t <value> -i <value>... [-C <value>] [-v]

FLAGS
  -C, --create=<value>   create tags if don't exist
  -i, --id=<value>...    (required) the IDs of the resources to tag
  -n, --name=<value>...  (required) the tag name
  -t, --type=<value>     (required) the type of the resource to tag
  -v, --verbose          show details of the tag process

DESCRIPTION
  add one or more tags to a set of resources

ALIASES
  $ commercelayer tag

EXAMPLES
  $ commercelayer tags:add -t <resource-type> -n <tag-names> -i <resources-id>

  $ cl tag -t customers -i aBcDeFghIL mnOPqRstUV -n groupA

See code: src/commands/tags/add.ts

commercelayer tags:count ID_NAME

Count resources tagged with a specific tag.

USAGE
  $ commercelayer tags:count ID_NAME [-t <value> | -z]

ARGUMENTS
  ID_NAME  unique id or name of the tag

FLAGS
  -t, --type=<value>  the type of the tagged resources
  -z, --zero          show also resources without tags

DESCRIPTION
  count resources tagged with a specific tag

EXAMPLES
  $ commercelayer tags:count

  $ cl tags:count -t <resource-type>

See code: src/commands/tags/count.ts

commercelayer tags:create

Create one or more new tags.

USAGE
  $ commercelayer tags:create -n <value>...

FLAGS
  -n, --name=<value>...  (required) the tag name

DESCRIPTION
  create one or more new tags

EXAMPLES
  $ commercelayer tags:create -n <tag-names>

  $ cl tags:create -n flag1 flag2 flag3

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

commercelayer tags:delete

Delete one or more existing tags.

USAGE
  $ commercelayer tags:delete -n <value>...

FLAGS
  -n, --name=<value>...  (required) the tag name

DESCRIPTION
  delete one or more existing tags

EXAMPLES
  $ commercelayer tags:delete -n <tag-names>

  $ cl tags:delete -n flag1 flag2 flag3

See code: src/commands/tags/delete.ts

commercelayer tags:details ID_NAME

Show the details of an existing tag.

USAGE
  $ commercelayer tags:details ID_NAME

ARGUMENTS
  ID_NAME  unique id or name of the tag

DESCRIPTION
  show the details of an existing tag

EXAMPLES
  $ commercelayer tags:details <tag-id/tag-name>

See code: src/commands/tags/details.ts

commercelayer tags:list

List all the created tags.

USAGE
  $ commercelayer tags:list [-A | -l <value>]

FLAGS
  -A, --all            show all tags instead of first 25 only
  -l, --limit=<value>  limit number of tags in output

DESCRIPTION
  list all the created tags

EXAMPLES
  $ commercelayer tags

  $ cl tags:list -A

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

commercelayer tags:remove

Remove one or more tags to a set of resources.

USAGE
  $ commercelayer tags:remove -n <value>... -t <value> -i <value>... [-v]

FLAGS
  -i, --id=<value>...    (required) the IDs of th eresources to tag
  -n, --name=<value>...  (required) the tag name
  -t, --type=<value>     (required) the type of the resource to tag
  -v, --verbose          show details of the tag process

DESCRIPTION
  remove one or more tags to a set of resources

EXAMPLES
  $ commercelayer tags:remove -t <resource-type> -n <tag-names> -i <resources-id>

  $ cl tags:rm -t customers -i aBcDeFghIL mnOPqRstUV -n groupA

See code: src/commands/tags/remove.ts

commercelayer tags:types

Show online documentation for supported resources.

USAGE
  $ commercelayer tags:types [-O]

FLAGS
  -O, --open  open online documentation page

DESCRIPTION
  show online documentation for supported resources

EXAMPLES
  $ commercelayer tags:types

See code: src/commands/tags/types.ts

commercelayer tags:update ID_NAME

Update an existing tag.

USAGE
  $ commercelayer tags:update ID_NAME -n <value>

ARGUMENTS
  ID_NAME  unique id or name of the tag

FLAGS
  -n, --name=<value>  (required) the new tag name

DESCRIPTION
  update an existing tag

EXAMPLES
  $ commercelayer tags:update <tag-id> -n <tag-name>

See code: src/commands/tags/update.ts

commercelayer tags:which ID_NAME

Show all the resources with this tag.

USAGE
  $ commercelayer tags:which ID_NAME -t <value> [-A | -l <value>]

ARGUMENTS
  ID_NAME  unique id or name of the tag

FLAGS
  -A, --all            show all resources instead of first 25 only
  -l, --limit=<value>  limit number of resources in output
  -t, --type=<value>   (required) the type of the tagged resources

DESCRIPTION
  show all the resources with this tag

EXAMPLES
  $ commercelayer tags:which <tag-id-or-name> -t <resource-type>

  $ cl tags:which groupA -t customers -A

See code: src/commands/tags/which.ts