{"id":22542142,"url":"https://github.com/commercelayer/commercelayer-cli-plugin-links","last_synced_at":"2025-09-16T12:53:20.244Z","repository":{"id":246511879,"uuid":"811465816","full_name":"commercelayer/commercelayer-cli-plugin-links","owner":"commercelayer","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-31T16:18:20.000Z","size":791,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-20T00:18:26.233Z","etag":null,"topics":["commercelayer"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commercelayer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-06T16:43:13.000Z","updated_at":"2025-01-31T16:18:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"4eb7dc58-3401-4bfc-97be-a1f3b16f889b","html_url":"https://github.com/commercelayer/commercelayer-cli-plugin-links","commit_stats":null,"previous_names":["commercelayer/commercelayer-cli-plugin-links"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercelayer%2Fcommercelayer-cli-plugin-links","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercelayer%2Fcommercelayer-cli-plugin-links/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercelayer%2Fcommercelayer-cli-plugin-links/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercelayer%2Fcommercelayer-cli-plugin-links/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commercelayer","download_url":"https://codeload.github.com/commercelayer/commercelayer-cli-plugin-links/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125037,"owners_count":21051758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["commercelayer"],"created_at":"2024-12-07T13:08:39.252Z","updated_at":"2025-09-16T12:53:20.238Z","avatar_url":"https://github.com/commercelayer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @commercelayer/cli-plugin-links\n\nCommerce Layer CLI Links plugin\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/@commercelayer/cli-plugin-links.svg)](https://npmjs.org/package/@commercelayer/cli-plugin-links)\n[![Downloads/week](https://img.shields.io/npm/dw/@commercelayer/cli-plugin-links.svg)](https://npmjs.org/package/@commercelayer/cli-plugin-links)\n[![License](https://img.shields.io/npm/l/@commercelayer/cli-plugin-links.svg)](https://github.com/@commercelayer/cli-plugin-links/blob/master/package.json)\n\n\u003c!-- toc --\u003e\n\n* [Usage](#usage)\n* [Commands](#commands)\n\u003c!-- tocstop --\u003e\n## Usage\n\u003c!-- usage --\u003e\n\n```sh-session\ncommercelayer COMMAND\n\ncommercelayer [COMMAND] (--help | -h) for detailed information about plugin commands.\n```\n\u003c!-- usagestop --\u003e\n## Commands\n\u003c!-- commands --\u003e\n\n* [`commercelayer links [ID]`](#commercelayer-links-id)\n* [`commercelayer links:create`](#commercelayer-linkscreate)\n* [`commercelayer links:delete ID`](#commercelayer-linksdelete-id)\n* [`commercelayer links:details ID`](#commercelayer-linksdetails-id)\n* [`commercelayer links:disable ID`](#commercelayer-linksdisable-id)\n* [`commercelayer links:enable ID`](#commercelayer-linksenable-id)\n* [`commercelayer links:list`](#commercelayer-linkslist)\n* [`commercelayer links:open ID`](#commercelayer-linksopen-id)\n* [`commercelayer links:resources`](#commercelayer-linksresources)\n* [`commercelayer links:update ID`](#commercelayer-linksupdate-id)\n\n### `commercelayer links [ID]`\n\nList all the links or the details of a single link.\n\n```sh-session\nUSAGE\n  $ commercelayer links [ID] [-A | -l \u003cvalue\u003e] [-n \u003cvalue\u003e] [-S \u003cvalue\u003e] [-s \u003cvalue\u003e...] [-e \u003cvalue\u003e...]\n    [--sort \u003cvalue\u003e...] [-L] [-H]\n\nARGUMENTS\n  ID  unique id of the link to get a single link\n\nFLAGS\n  -A, --all                 show all links instead of first 25 only\n  -H, --hide-empty          hide empty attributes\n  -L, --locale              show dates in locale time zone and format\n  -S, --link_scope=\u003cvalue\u003e  the scope of the link\n  -e, --expires=\u003cvalue\u003e...  the link's expiration date and time\n  -l, --limit=\u003cvalue\u003e       limit number of links in output\n  -n, --name=\u003cvalue\u003e        the name of the link\n  -s, --starts=\u003cvalue\u003e...   the link's start date and time\n      --sort=\u003cvalue\u003e...     a comma separated list of fields to sort by\n\nDESCRIPTION\n  list all the links or the details of a single link\n\nFLAG DESCRIPTIONS\n  -e, --expires=\u003cvalue\u003e...  the link's expiration date and time\n\n    Use the standard ISO format with operators [gt, gteq, eq, lt, lteq].\n    A maximum of 2 parameters can be used for date filters.\n    If the operator is omitted the default operator 'eq' will be used.\n\n    If only one parameter is defined without an operator, it is interpreted as a range of values\n    Examples:\n    -s 2024 will be translated into -s gteq=2024-01-01T00:00:00Z lt=2025-01-01T00:00:00Z\n    -s 2024-04-10 will be translated into -s gteq=2024-04-10T00:00:00Z lt=2024-04-11T00:00:00Z\n    -s 2024-04-10T13:15:00 will be translated into -s gteq 2024-04-10T13:15:00Z lt=2024-04-10T13:16:00Z\n\n  -s, --starts=\u003cvalue\u003e...  the link's start date and time\n\n    Look at the description of flag 'expires' for details\n```\n\n_See code: [src/commands/links/index.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/index.ts)_\n\n### `commercelayer links:create`\n\nCreate a new resource link.\n\n```sh-session\nUSAGE\n  $ commercelayer links:create [-t orders|skus|sku_lists] [-i \u003cvalue\u003e] [-I \u003cvalue\u003e] [-S \u003cvalue\u003e...] [-n \u003cvalue\u003e]\n    [-s \u003cvalue\u003e] [-e \u003cvalue\u003e] [-D \u003cvalue\u003e] [--open]\n\nFLAGS\n  -D, --link_domain=\u003cvalue\u003e    [default: c11r.link] the domain of the link\n  -I, --client_id=\u003cvalue\u003e      the client_id of the application of kind sales_channel to be used with the link\n  -S, --link_scope=\u003cvalue\u003e...  the scope of the link\n  -e, --expires=\u003cvalue\u003e        the link's expiration date and time\n  -i, --item_id=\u003cvalue\u003e        the id of the resource for which the link is created\n  -n, --name=\u003cvalue\u003e           the name associated to the the link\n  -s, --starts=\u003cvalue\u003e         the link's start date and time\n  -t, --item_type=\u003coption\u003e     the type of the resource for which the link is created\n                               \u003coptions: orders|skus|sku_lists\u003e\n      --open                   open link in default browser\n\nDESCRIPTION\n  create a new resource link\n\nALIASES\n  $ commercelayer link\n\nEXAMPLES\n  $ commercelayer links:create -t \u003citem-type\u003e -i \u003citem-id\u003e -S market:\u003cmarket-id\u003e -n \u003clink-name\u003e -e 2050-12-15 -I \u003csales_channel-client-id\u003e\n\nFLAG DESCRIPTIONS\n  -e, --expires=\u003cvalue\u003e  the link's expiration date and time\n\n    Use the standard ISO format:\n    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format\n\n  -s, --starts=\u003cvalue\u003e  the link's start date and time\n\n    Use the standard ISO format:\n    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format\n```\n\n_See code: [src/commands/links/create.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/create.ts)_\n\n### `commercelayer links:delete ID`\n\nDelete an existent resource link.\n\n```sh-session\nUSAGE\n  $ commercelayer links:delete ID\n\nARGUMENTS\n  ID  the id of the link\n\nDESCRIPTION\n  delete an existent resource link\n\nEXAMPLES\n  $ commercelayer links:delete \u003clink-id\u003e\n```\n\n_See code: [src/commands/links/delete.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/delete.ts)_\n\n### `commercelayer links:details ID`\n\nShow link details.\n\n```sh-session\nUSAGE\n  $ commercelayer links:details ID [-H] [-L]\n\nARGUMENTS\n  ID  the id of the link\n\nFLAGS\n  -H, --hide-empty  hide empty attributes\n  -L, --locale      show dates in locale time zone and format\n\nDESCRIPTION\n  show link details\n\nALIASES\n  $ commercelayer links:show\n  $ commercelayer links:get\n\nEXAMPLES\n  $ commercelayer links:details \u003clink-id\u003e\n\n  $ cl links:details \u003clink-id\u003e -H\n\n  $ cl links:show \u003clink-id\u003e\n```\n\n_See code: [src/commands/links/details.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/details.ts)_\n\n### `commercelayer links:disable ID`\n\nDisable an existent enabled link.\n\n```sh-session\nUSAGE\n  $ commercelayer links:disable ID\n\nARGUMENTS\n  ID  the id of the link\n\nDESCRIPTION\n  disable an existent enabled link\n\nEXAMPLES\n  $ commercelayer links:disable \u003clink-id\u003e\n```\n\n_See code: [src/commands/links/disable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/disable.ts)_\n\n### `commercelayer links:enable ID`\n\nEnable an existent disabled link.\n\n```sh-session\nUSAGE\n  $ commercelayer links:enable ID\n\nARGUMENTS\n  ID  the id of the link\n\nDESCRIPTION\n  enable an existent disabled link\n\nEXAMPLES\n  $ commercelayer links:enable \u003clink-id\u003e\n```\n\n_See code: [src/commands/links/enable.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/enable.ts)_\n\n### `commercelayer links:list`\n\nList all the created links.\n\n```sh-session\nUSAGE\n  $ commercelayer links:list [-A | -l \u003cvalue\u003e] [-n \u003cvalue\u003e] [-S \u003cvalue\u003e] [-s \u003cvalue\u003e...] [-e \u003cvalue\u003e...] [--sort\n    \u003cvalue\u003e...] [-L]\n\nFLAGS\n  -A, --all                 show all links instead of first 25 only\n  -L, --locale              show dates in locale time zone and format\n  -S, --link_scope=\u003cvalue\u003e  the scope of the link\n  -e, --expires=\u003cvalue\u003e...  the link's expiration date and time\n  -l, --limit=\u003cvalue\u003e       limit number of links in output\n  -n, --name=\u003cvalue\u003e        the name of the link\n  -s, --starts=\u003cvalue\u003e...   the link's start date and time\n      --sort=\u003cvalue\u003e...     a comma separated list of fields to sort by\n\nDESCRIPTION\n  list all the created links\n\nEXAMPLES\n  $ commercelayer links\n\n  $ cl links:list -A\n\n  $ cl links --status=pending\n\nFLAG DESCRIPTIONS\n  -e, --expires=\u003cvalue\u003e...  the link's expiration date and time\n\n    Use the standard ISO format with operators [gt, gteq, eq, lt, lteq].\n    A maximum of 2 parameters can be used for date filters.\n    If the operator is omitted the default operator 'eq' will be used.\n\n    If only one parameter is defined without an operator, it is interpreted as a range of values\n    Examples:\n    -s 2024 will be translated into -s gteq=2024-01-01T00:00:00Z lt=2025-01-01T00:00:00Z\n    -s 2024-04-10 will be translated into -s gteq=2024-04-10T00:00:00Z lt=2024-04-11T00:00:00Z\n    -s 2024-04-10T13:15:00 will be translated into -s gteq 2024-04-10T13:15:00Z lt=2024-04-10T13:16:00Z\n\n  -s, --starts=\u003cvalue\u003e...  the link's start date and time\n\n    Look at the description of flag 'expires' for details\n```\n\n_See code: [src/commands/links/list.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/list.ts)_\n\n### `commercelayer links:open ID`\n\nOpen an existent resource link.\n\n```sh-session\nUSAGE\n  $ commercelayer links:open ID\n\nARGUMENTS\n  ID  the id of the link\n\nDESCRIPTION\n  open an existent resource link\n\nEXAMPLES\n  $ commercelayer links:open \u003clink-id\u003e\n```\n\n_See code: [src/commands/links/open.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/open.ts)_\n\n### `commercelayer links:resources`\n\nShow linkable resources.\n\n```sh-session\nUSAGE\n  $ commercelayer links:resources [-O]\n\nFLAGS\n  -O, --open  open online documentation page\n\nDESCRIPTION\n  show linkable resources\n\nEXAMPLES\n  $ commercelayer links:resources\n```\n\n_See code: [src/commands/links/resources.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/resources.ts)_\n\n### `commercelayer links:update ID`\n\nCreate a new resource link.\n\n```sh-session\nUSAGE\n  $ commercelayer links:update ID [-t orders|skus|sku_lists] [-i \u003cvalue\u003e] [-I \u003cvalue\u003e] [-S \u003cvalue\u003e...] [-n\n    \u003cvalue\u003e] [-s \u003cvalue\u003e] [-e \u003cvalue\u003e] [-D \u003cvalue\u003e] [--open]\n\nARGUMENTS\n  ID  the id of the link\n\nFLAGS\n  -D, --link_domain=\u003cvalue\u003e    [default: c11r.link] the domain of the link\n  -I, --client_id=\u003cvalue\u003e      the client_id of the application of kind sales_channel to be used with the link\n  -S, --link_scope=\u003cvalue\u003e...  the scope of the link\n  -e, --expires=\u003cvalue\u003e        the link's expiration date and time\n  -i, --item_id=\u003cvalue\u003e        the id of the resource for which the link is created\n  -n, --name=\u003cvalue\u003e           the name associated to the the link\n  -s, --starts=\u003cvalue\u003e         the link's start date and time\n  -t, --item_type=\u003coption\u003e     the type of the resource for which the link is created\n                               \u003coptions: orders|skus|sku_lists\u003e\n      --open                   open link in default browser\n\nDESCRIPTION\n  create a new resource link\n\nEXAMPLES\n  $ commercelayer links:update -t \u003citem-type\u003e -i \u003citem-id\u003e -S market:\u003cmarket-id\u003e -n \u003clink-name\u003e -e 2050-12-15 -I \u003csales_channel-client-id\u003e\n\nFLAG DESCRIPTIONS\n  -e, --expires=\u003cvalue\u003e  the link's expiration date and time\n\n    Use the standard ISO format:\n    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format\n\n  -s, --starts=\u003cvalue\u003e  the link's start date and time\n\n    Use the standard ISO format:\n    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format\n```\n\n_See code: [src/commands/links/update.ts](https://github.com/commercelayer/commercelayer-cli-plugin-links/blob/main/src/commands/links/update.ts)_\n\u003c!-- commandsstop --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercelayer%2Fcommercelayer-cli-plugin-links","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommercelayer%2Fcommercelayer-cli-plugin-links","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercelayer%2Fcommercelayer-cli-plugin-links/lists"}