{"id":22957452,"url":"https://github.com/lixinyang123/jsdelivrcli","last_synced_at":"2025-08-13T03:33:13.451Z","repository":{"id":76892321,"uuid":"391007131","full_name":"lixinyang123/JsDelivrCLI","owner":"lixinyang123","description":"JsDelivr command line Interface 😎 Install and consume 3rd-party client-side libraries from JsDelivr","archived":false,"fork":false,"pushed_at":"2024-01-08T02:04:01.000Z","size":73,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-01-08T03:23:08.405Z","etag":null,"topics":["cli","jsdelivr","libary-management","nativeaot"],"latest_commit_sha":null,"homepage":"","language":"C#","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/lixinyang123.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2021-07-30T09:26:11.000Z","updated_at":"2023-03-24T08:50:22.000Z","dependencies_parsed_at":"2023-11-15T05:20:56.928Z","dependency_job_id":"30070535-39ac-4350-a602-2fd3793ea433","html_url":"https://github.com/lixinyang123/JsDelivrCLI","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixinyang123%2FJsDelivrCLI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixinyang123%2FJsDelivrCLI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixinyang123%2FJsDelivrCLI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lixinyang123%2FJsDelivrCLI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lixinyang123","download_url":"https://codeload.github.com/lixinyang123/JsDelivrCLI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229730768,"owners_count":18115421,"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":["cli","jsdelivr","libary-management","nativeaot"],"created_at":"2024-12-14T17:16:53.101Z","updated_at":"2024-12-14T17:16:53.813Z","avatar_url":"https://github.com/lixinyang123.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JsDelivr command line Interface\n\nInstall and consume 3rd-party client-side libraries from jsdelivr.\n\n### Install\n\nDownload from Release page.\n\n### Usage\n\n```pwsh\ndelivr\n  JsDelivr CLI\n\nUsage:\n  delivr [options] [command]\n\nOptions:\n  --version       Show version information\n  -?, -h, --help  Show help and usage information\n\nCommands:\n  init               Initialize a package configuration file\n  install \u003clibrary\u003e  install a package from jsdelivr\n  remove \u003clibrary\u003e   remove a package from local\n  search \u003clibrary\u003e   search package from npm\n  info \u003clibrary\u003e     get library version info\n  restore            restore client side package\n```\n\nInstall a library\n\n```pwsh\ninstall\n  install a package from jsdelivr\n\nUsage:\n  delivr [options] install \u003clibrary\u003e\n\nArguments:\n  \u003clibrary\u003e  library name and version\n\nOptions:\n  --version \u003cversion\u003e  library version\n  --dir \u003cdir\u003e          library install directory\n  -?, -h, --help       Show help and usage information\n```\n\nExample:\n\n```pwsh\n# install jquery\ndelivr install jquery\n\n# install jquery v3.6.0\ndelivr install jquery --version 3.6.0\n\n# install jquery v3.6.0 in directory lib\ndelivr install jquery --version 3.6.0 --dir lib\n```\n\nConfig library configuration file\n\n```json\n{\n  \"Libraries\": [\n    {\n      \"Name\": \"jquery\",\n      \"Version\": \"3.6.0\",\n      \"Destination\": \"lib\"\n    },\n    {\n      \"Name\": \"bootstrap\",\n      \"Version\": \"5.0.2\",\n      \"Destination\": \"lib\"\n    }\n  ]\n}\n```\n\nRestore dependences\n\n```pwsh\ndelivr restore\n```\n\n\n### How to Contribute?\n\nInstall pre-requisites\n\n- Windows\n  - Visual Studio 2022, including `.NET workload` and `Desktop development with C++ workload`.\n\n- Linux\n  - .NET 8 SDK\n  - libicu-dev\n  - cmake\n\n##### On Windows\n\n- Visit [official website](https://visualstudio.microsoft.com/) to download Visual Studio 2022.\n\n##### On Linux\n\n- Install .NET SDK\n    - Ubuntu\n    ```bash\n    apt install dotnet-sdk-8.0 -y\n    apt install libicu-dev cmake -y\n    ```\n\n    - CentOS\n    ```bash\n    dnf install dotnet-sdk-8.0 -y\n    dnf install libicu-dev cmake -y\n    ```\n\n### Restore dependencies\n\n```bash\ndotnet restore\n```\n\n### Build \u0026 Run \u0026 Publish\n\n```bash\ndotnet build\ndotnet run\n```\n\n### Publish with NativeAOT\n\n```bash\ndotnet publish -r win-x64 -c Release\ndotnet publish -r linux-x64 -c Release\ndotnet publish -r osx-x64 -c Release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flixinyang123%2Fjsdelivrcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flixinyang123%2Fjsdelivrcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flixinyang123%2Fjsdelivrcli/lists"}