{"id":19281506,"url":"https://github.com/coding/coding-cli","last_synced_at":"2025-04-22T01:31:02.803Z","repository":{"id":37588385,"uuid":"155307614","full_name":"coding/coding-cli","owner":"coding","description":"CODING 命令行工具，提供事项导入导出等功能","archived":false,"fork":false,"pushed_at":"2023-04-19T19:49:34.000Z","size":892,"stargazers_count":3,"open_issues_count":8,"forks_count":6,"subscribers_count":11,"default_branch":"php","last_synced_at":"2025-04-01T17:53:34.242Z","etag":null,"topics":["cli","docker","laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/coding.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-30T01:48:19.000Z","updated_at":"2024-12-15T10:24:45.000Z","dependencies_parsed_at":"2024-06-20T09:24:59.064Z","dependency_job_id":"97cc9b35-11d1-44f7-a599-829c24cce7b9","html_url":"https://github.com/coding/coding-cli","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding%2Fcoding-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding%2Fcoding-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding%2Fcoding-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding%2Fcoding-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coding","download_url":"https://codeload.github.com/coding/coding-cli/tar.gz/refs/heads/php","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250161957,"owners_count":21385014,"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","docker","laravel"],"created_at":"2024-11-09T21:23:05.080Z","updated_at":"2025-04-22T01:31:02.369Z","avatar_url":"https://github.com/coding.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CODING cli\n\n[![CI](https://github.com/Coding/coding-cli/actions/workflows/ci.yml/badge.svg?branch=php)](https://github.com/Coding/coding-cli/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/Coding/coding-cli/branch/php/graph/badge.svg?token=Su2WCy3Yfg)](https://codecov.io/gh/Coding/coding-cli)\n[![docker hub](https://img.shields.io/docker/automated/ecoding/coding-cli)](https://hub.docker.com/r/ecoding/coding-cli)\n\nCODING cli 基于 [Laravel Zero](https://laravel-zero.com/)。\n\n## run in Docker\n\n```shell\ndocker pull ecoding/coding-cli\ndocker run -it ecoding/coding-cli\ndocker run -it ecoding/coding-cli wiki:import --help\ndocker run -it -v $(pwd):/root --env CODING_TOKEN=foo --env CONFLUENCE_USERNAME=admin ecoding/coding-cli wiki:import\ndocker run -it -v $(pwd):/root --env-file .env ecoding/coding-cli wiki:import\n```\n\n![docker run coding cli](https://user-images.githubusercontent.com/4971414/124946851-f0a87500-e041-11eb-9840-1c66e4773af1.png)\n\n## run without Docker\n\n要求：PHP 8.0 或更高版本\n\n访问「[CODING 公共制品库](https://coding-public.coding.net/public-artifacts/public/downloads/coding.phar/version/6352163/list)」，下载后在命令行中执行。\n\n在 Linux/macOS 中，建议重命名，并放到系统目录：\n\n```shell\nchmod +x coding.phar\nsudo mv coding.phar /usr/local/bin/coding\ncoding list\n```\n\n## Confluence to CODING Wiki\n\n1. 浏览器访问 Confluence 空间，导出 HTML，获得一个 zip 压缩包。\n\n![image](https://user-images.githubusercontent.com/4971414/127876158-8ab62714-e43f-4e20-8865-f8817f9264e1.png)\n\n2. 浏览器访问 CODING，创建个人令牌\n\n![image](https://user-images.githubusercontent.com/4971414/127877027-68a3f58e-c253-4ba9-b4f9-68b6673582a3.png)\n\n3. 打开命令行，进入 zip 文件所在的目录，执行命令导入：\n\n```shell\ncd ~/Downloads/\ndocker run -it -v $(pwd):/root --env CODING_IMPORT_PROVIDER=Confluence \\\n  --env CODING_IMPORT_DATA_TYPE=HTML \\\n  --env CODING_IMPORT_DATA_PATH=./Confluence-space-export-231543-81.html.zip \\\n  --env CODING_TOKEN=foo \\\n  ecoding/coding-cli wiki:import\n```\n\n![image](https://user-images.githubusercontent.com/4971414/127878108-f778bfd6-fe7f-49f3-9590-9efd68404df5.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding%2Fcoding-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoding%2Fcoding-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding%2Fcoding-cli/lists"}