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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@commercelayer/cli-plugin-links

v1.0.13

Published

Commerce Layer CLI links plugin

Downloads

20

Readme

@commercelayer/cli-plugin-links

Commerce Layer CLI Links plugin

oclif Version Downloads/week License

Usage

commercelayer COMMAND

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

Commands

commercelayer links [ID]

List all the links or the details of a single link.

USAGE
  $ commercelayer links [ID] [-A | -l <value>] [-n <value>] [-S <value>] [-s <value>...] [-e <value>...]
    [--sort <value>...] [-L] [-H]

ARGUMENTS
  ID  unique id of the link to get a single link

FLAGS
  -A, --all                 show all links instead of first 25 only
  -H, --hide-empty          hide empty attributes
  -L, --locale              show dates in locale time zone and format
  -S, --link_scope=<value>  the scope of the link
  -e, --expires=<value>...  the link's expiration date and time
  -l, --limit=<value>       limit number of links in output
  -n, --name=<value>        the name of the link
  -s, --starts=<value>...   the link's start date and time
      --sort=<value>...     a comma separated list of fields to sort by

DESCRIPTION
  list all the links or the details of a single link

FLAG DESCRIPTIONS
  -e, --expires=<value>...  the link's expiration date and time

    Use the standard ISO format with operators [gt, gteq, eq, lt, lteq].
    A maximum of 2 parameters can be used for date filters.
    If the operator is omitted the default operator 'eq' will be used.

    If only one parameter is defined without an operator, it is interpreted as a range of values
    Examples:
    -s 2024 will be translated into -s gteq=2024-01-01T00:00:00Z lt=2025-01-01T00:00:00Z
    -s 2024-04-10 will be translated into -s gteq=2024-04-10T00:00:00Z lt=2024-04-11T00:00:00Z
    -s 2024-04-10T13:15:00 will be translated into -s gteq 2024-04-10T13:15:00Z lt=2024-04-10T13:16:00Z

  -s, --starts=<value>...  the link's start date and time

    Look at the description of flag 'expires' for details

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

commercelayer links:create

Create a new resource link.

USAGE
  $ commercelayer links:create [-t orders|skus|sku_lists] [-i <value>] [-I <value>] [-S <value>...] [-n <value>]
    [-s <value>] [-e <value>] [-D <value>] [--open]

FLAGS
  -D, --link_domain=<value>    [default: c11r.link] the domain of the link
  -I, --client_id=<value>      the client_id of the application of kind sales_channel to be used with the link
  -S, --link_scope=<value>...  the scope of the link
  -e, --expires=<value>        the link's expiration date and time
  -i, --item_id=<value>        the id of the resource for which the link is created
  -n, --name=<value>           the name associated to the the link
  -s, --starts=<value>         the link's start date and time
  -t, --item_type=<option>     the type of the resource for which the link is created
                               <options: orders|skus|sku_lists>
      --open                   open link in default browser

DESCRIPTION
  create a new resource link

ALIASES
  $ commercelayer link

EXAMPLES
  $ commercelayer links:create -t <item-type> -i <item-id> -S market:<market-id> -n <link-name> -e 2050-12-15 -I <sales_channel-client-id>

FLAG DESCRIPTIONS
  -e, --expires=<value>  the link's expiration date and time

    Use the standard ISO format:
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format

  -s, --starts=<value>  the link's start date and time

    Use the standard ISO format:
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format

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

commercelayer links:delete ID

Delete an existent resource link.

USAGE
  $ commercelayer links:delete ID

ARGUMENTS
  ID  the id of the link

DESCRIPTION
  delete an existent resource link

EXAMPLES
  $ commercelayer links:delete <link-id>

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

commercelayer links:details ID

Show link details.

USAGE
  $ commercelayer links:details ID [-H] [-L]

ARGUMENTS
  ID  the id of the link

FLAGS
  -H, --hide-empty  hide empty attributes
  -L, --locale      show dates in locale time zone and format

DESCRIPTION
  show link details

ALIASES
  $ commercelayer links:show
  $ commercelayer links:get

EXAMPLES
  $ commercelayer links:details <link-id>

  $ cl links:details <link-id> -H

  $ cl links:show <link-id>

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

commercelayer links:disable ID

Disable an existent enabled link.

USAGE
  $ commercelayer links:disable ID

ARGUMENTS
  ID  the id of the link

DESCRIPTION
  disable an existent enabled link

EXAMPLES
  $ commercelayer links:disable <link-id>

See code: src/commands/links/disable.ts

commercelayer links:enable ID

Enable an existent disabled link.

USAGE
  $ commercelayer links:enable ID

ARGUMENTS
  ID  the id of the link

DESCRIPTION
  enable an existent disabled link

EXAMPLES
  $ commercelayer links:enable <link-id>

See code: src/commands/links/enable.ts

commercelayer links:list

List all the created links.

USAGE
  $ commercelayer links:list [-A | -l <value>] [-n <value>] [-S <value>] [-s <value>...] [-e <value>...] [--sort
    <value>...] [-L]

FLAGS
  -A, --all                 show all links instead of first 25 only
  -L, --locale              show dates in locale time zone and format
  -S, --link_scope=<value>  the scope of the link
  -e, --expires=<value>...  the link's expiration date and time
  -l, --limit=<value>       limit number of links in output
  -n, --name=<value>        the name of the link
  -s, --starts=<value>...   the link's start date and time
      --sort=<value>...     a comma separated list of fields to sort by

DESCRIPTION
  list all the created links

EXAMPLES
  $ commercelayer links

  $ cl links:list -A

  $ cl links --status=pending

FLAG DESCRIPTIONS
  -e, --expires=<value>...  the link's expiration date and time

    Use the standard ISO format with operators [gt, gteq, eq, lt, lteq].
    A maximum of 2 parameters can be used for date filters.
    If the operator is omitted the default operator 'eq' will be used.

    If only one parameter is defined without an operator, it is interpreted as a range of values
    Examples:
    -s 2024 will be translated into -s gteq=2024-01-01T00:00:00Z lt=2025-01-01T00:00:00Z
    -s 2024-04-10 will be translated into -s gteq=2024-04-10T00:00:00Z lt=2024-04-11T00:00:00Z
    -s 2024-04-10T13:15:00 will be translated into -s gteq 2024-04-10T13:15:00Z lt=2024-04-10T13:16:00Z

  -s, --starts=<value>...  the link's start date and time

    Look at the description of flag 'expires' for details

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

commercelayer links:open ID

Open an existent resource link.

USAGE
  $ commercelayer links:open ID

ARGUMENTS
  ID  the id of the link

DESCRIPTION
  open an existent resource link

EXAMPLES
  $ commercelayer links:open <link-id>

See code: src/commands/links/open.ts

commercelayer links:resources

Show linkable resources.

USAGE
  $ commercelayer links:resources [-O]

FLAGS
  -O, --open  open online documentation page

DESCRIPTION
  show linkable resources

EXAMPLES
  $ commercelayer links:resources

See code: src/commands/links/resources.ts

commercelayer links:update ID

Create a new resource link.

USAGE
  $ commercelayer links:update ID [-t orders|skus|sku_lists] [-i <value>] [-I <value>] [-S <value>...] [-n
    <value>] [-s <value>] [-e <value>] [-D <value>] [--open]

ARGUMENTS
  ID  the id of the link

FLAGS
  -D, --link_domain=<value>    [default: c11r.link] the domain of the link
  -I, --client_id=<value>      the client_id of the application of kind sales_channel to be used with the link
  -S, --link_scope=<value>...  the scope of the link
  -e, --expires=<value>        the link's expiration date and time
  -i, --item_id=<value>        the id of the resource for which the link is created
  -n, --name=<value>           the name associated to the the link
  -s, --starts=<value>         the link's start date and time
  -t, --item_type=<option>     the type of the resource for which the link is created
                               <options: orders|skus|sku_lists>
      --open                   open link in default browser

DESCRIPTION
  create a new resource link

EXAMPLES
  $ commercelayer links:update -t <item-type> -i <item-id> -S market:<market-id> -n <link-name> -e 2050-12-15 -I <sales_channel-client-id>

FLAG DESCRIPTIONS
  -e, --expires=<value>  the link's expiration date and time

    Use the standard ISO format:
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format

  -s, --starts=<value>  the link's start date and time

    Use the standard ISO format:
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format

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