{"id":13338668,"url":"https://github.com/tuya/tuya-panel-cli","last_synced_at":"2025-05-02T02:30:50.352Z","repository":{"id":62925068,"uuid":"332709127","full_name":"tuya/tuya-panel-cli","owner":"tuya","description":"CLI for Tuya Panel Developer","archived":false,"fork":false,"pushed_at":"2024-01-30T09:13:20.000Z","size":72,"stargazers_count":5,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T21:14:25.630Z","etag":null,"topics":["cli","powershell","tuya"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/tuya.png","metadata":{"files":{"readme":"README-zh_CN.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-25T10:25:48.000Z","updated_at":"2022-11-06T17:05:25.000Z","dependencies_parsed_at":"2024-11-12T14:22:53.532Z","dependency_job_id":"b8a130aa-9058-4581-8450-a84fed2f106a","html_url":"https://github.com/tuya/tuya-panel-cli","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-panel-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-panel-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-panel-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuya%2Ftuya-panel-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuya","download_url":"https://codeload.github.com/tuya/tuya-panel-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972442,"owners_count":21673604,"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","powershell","tuya"],"created_at":"2024-07-29T19:17:03.190Z","updated_at":"2025-05-02T02:30:49.470Z","avatar_url":"https://github.com/tuya.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tuya-panel-cli\n\n涂鸦面板开发工具\n\n[English](./README.md) | 简体中文\n\n## 安装\n\n### 安装最新版\n\n**Shell下安装:**\n\n```sh\ncurl -fsSL https://cdn.jsdelivr.net/gh/tuya/tuya-panel-cli/install.sh | sh\n```\n\n**PowerShell下安装:**\n\n```sh\niwr https://cdn.jsdelivr.net/gh/tuya/tuya-panel-cli/install.ps1 -useb | iex\n```\n\n### 安装指定版本\n\n\n**Shell下安装:**\n\n```sh\ncurl -fsSL https://cdn.jsdelivr.net/gh/tuya/tuya-panel-cli/install.sh | sh -s v0.0.1\n```\n\n**PowerShell下安装:**\n\n```powershell\n$v=\"1.0.0\"; iwr https://cdn.jsdelivr.net/gh/tuya/tuya-panel-cli/install.ps1 -useb | iex\n```\n\n## 升级\n\n```sh\ntuya-panel-cli upgrade\n```\n\n## Mac/Linux 手动安装\n\n1、 在 [Release 页面](\u003chttps://github.com/tuya/tuya-panel-cli/releases/latest\u003e) 下载最新的安装包，解压到任意位置\n\n2、将下面的配置手动写入 `.zshrc`，注意将 TPC_INSTALL 换成脚本的安装位置。\n\n```sh\nexport TPC_INSTALL=\"/Users/luozhu/.tuya-panel-cli\"\nexport PATH=\"$TPC_INSTALL/bin:$PATH\"\n```\n\n3、修改后记得执行 `source ~/.zshrc`\n\n\u003e 注意：使用 bash 的话配置文件是 `.bash_profile`\n\n## 已知问题\n\n### `unzip is required`\n\nThe program [`unzip`](https://linux.die.net/man/1/unzip) is a requirement for the Shell installer.\n\n```sh\n$ curl -fsSL https://raw.githubusercontent.com/tuya/tuya-panel-cli/main/install.sh | sh\nError: unzip is required to install Tpc (see: https://github.com/tuya/tuya-panel-cli#unzip-is-required).\n```\n\n**什么时候发生这个问题?**\n\nDuring the `install.sh` process, `unzip` is used to extract the zip archive.\n\n**如何修复这个问题?**\n\nYou can install unzip via `brew install unzip` on MacOS or `apt-get install unzip -y` on Linux.\n\n### iwr 无法被识别（Windows）\n\n#### 确认操作系统环境\n\n我们推荐使用 Windows 10 操作系统，更老的 Windows 也许可以，但会增加不必要的麻烦。有两个办法可以解决。\n\n#### 升级 PowerShell 版本（推荐）\n\nPowerShell 是 Windows 下的增强命令行环境，也是我们以后要用的主要命令行界面。以下操作继续在上面打开的命令行界面进行：\n\n- 在 Powershell 命令行输入 `$PSVersionTable.PSVersion.Major` 检查版本\n\n上面的命令返回为 5 或者以上就没问题，否则需要下载并安装：\n\n- [.NET Framework 4.5 or later](https://www.microsoft.com/net/download)\n- [Windows Management Framework 5.x](https://aka.ms/wmf5download)\n\n#### 手动安装配置（简单）\n\n\u003e 注意：手动安装后 `tuya-panel-cli upgrade` 命令是无法使用的，所以还是推荐第一种办法。\n\n1、在 [tuya-panel-cli/releases/latest](https://github.com/tuya/tuya-panel-cli/releases/latest) 界面安装最新的可执行文件压缩包 `tuya-panel-cli-x86_64-pc-windows-msvc.zip`\n\n2、解压到任意位置，比如 `C:\\tuya-panel-cli` 目录下\n\n![](https://images.tuyacn.com/fe-static/docs/img/56b1bd45-ea79-4bca-8e64-0f6fbae645fa.png)\n\n3、设置环境变量\n\n把可执行文件的安装目录，比如我们刚设置的 `C:\\tuya-panel-cli` 添加到用户环境变量 `Path` 中：\n\n![](https://cdn.jsdelivr.net/gh/youngjuning/images/20210730145322.png)\n\n4、重新打开 Powershell 命令行输入 `tuya-panel-cli --version` 验证\n\n## 技术支持\n\n- 开发者中心：https://developer.tuya.com/cn/\n- 帮助中心：https://support.tuya.com/cn/help\n- 技术支持工单中心：https://iot.tuya.com/council/\n- 详细文档：https://panel-docs.tuyacn.com/\n\n## License\n\n[MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuya%2Ftuya-panel-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuya%2Ftuya-panel-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuya%2Ftuya-panel-cli/lists"}