{"id":13907265,"url":"https://github.com/glitch-tools/sync-glitch-cli","last_synced_at":"2025-06-25T18:10:43.012Z","repository":{"id":26903045,"uuid":"111863873","full_name":"glitch-tools/sync-glitch-cli","owner":"glitch-tools","description":" :flags: Sync changes in your GitHub repository to glitch.com","archived":false,"fork":false,"pushed_at":"2024-09-06T09:50:03.000Z","size":2067,"stargazers_count":83,"open_issues_count":31,"forks_count":14,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-23T06:58:19.899Z","etag":null,"topics":["cli","github","glitch","sync","sync-changes"],"latest_commit_sha":null,"homepage":"https://npm.im/sync-glitch-cli","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glitch-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-11-24T01:32:36.000Z","updated_at":"2025-04-04T09:00:50.000Z","dependencies_parsed_at":"2024-06-18T21:27:08.957Z","dependency_job_id":"ea20e73d-35e1-4b6c-9529-5d21660bd3a5","html_url":"https://github.com/glitch-tools/sync-glitch-cli","commit_stats":{"total_commits":196,"total_committers":8,"mean_commits":24.5,"dds":0.6224489795918368,"last_synced_commit":"09ca10b4005c7f4e0a125701ef07d36deb291f68"},"previous_names":["sotayamashita/glitch-deploy-cli","sotayamashita/sync-glitch-cli"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/glitch-tools/sync-glitch-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitch-tools%2Fsync-glitch-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitch-tools%2Fsync-glitch-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitch-tools%2Fsync-glitch-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitch-tools%2Fsync-glitch-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glitch-tools","download_url":"https://codeload.github.com/glitch-tools/sync-glitch-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glitch-tools%2Fsync-glitch-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261927623,"owners_count":23231380,"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","github","glitch","sync","sync-changes"],"created_at":"2024-08-06T23:01:51.677Z","updated_at":"2025-06-25T18:10:42.986Z","avatar_url":"https://github.com/glitch-tools.png","language":"JavaScript","readme":"[build badge]: https://github.com/glitch-tools/sync-glitch-cli/workflows/E2E/badge.svg\n[build url]:   https://github.com/glitch-tools/sync-glitch-cli/actions\n\n[vulnerabilities badge]: https://snyk.io//test/github/glitch-tools/sync-glitch-cli/badge.svg?targetFile=package.json\n[vulnerabilities url]:   https://snyk.io//test/github/glitch-tools/sync-glitch-cli?targetFile=package.json\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/1587053/34863913-2c2a214c-f7b5-11e7-950f-efca77278393.png\" width=\"300\"/\u003e\n\u003cp/\u003e\n\u003cbr\u003e\n\n# sync-glitch-cli [![build status][build badge]][build url] [![Known Vulnerabilities][vulnerabilities badge]][vulnerabilities url]\n\n\u003e Sync changes in your GitHub repository to glitch.com\n\nIt pushes changes from a GitHub repository to glitch.com. It does **NOT** pull changes from glitch.com to GitHub.\n\n**Heads-up!**  It uses undocumented API so it can be changed without any notice. However, I am making efforts to know whether it works or not with [test-sync-glitch-cli](https://github.com/sotayamashita/test-sync-glitch-cli). It executes test every day with TravisCI. It helps my recognise as soon as possible if it could be wrong. I am looking forward to official API. :unicorn:\n\n## Install\n\n```bash\nnpm install sync-glitch-cli --save-dev\n```\n\n## Usage\n\n### How to get required environment variables\n\n1. Open your project on Glitch\n1. Open devtool and click the Network tab\n1. Select Project name \u003e Advanced Options \u003e Import from GitHub\n1. You can find a request URL which starts from `https://api.glitch.com/projects/githubImport ~`:\n\n   ![network](https://raw.githubusercontent.com/glitch-tools/sync-glitch-cli/master/public/assets/capture.png)\n\n1. It has three params. These params are what you need.\n\n### How to set environment variables\n\nYou have to set the following environment variables:\n\n- `GLITCH_PROJECT_ID` _(the Glitch project id.)_\n- `GLITCH_TOKEN` _(the Glitch authorization)_\n- `GH_REPO` _(the GitHub repo. e.g `sotayamashita/sync-glitch-cli`)_\n\n```console\nGLITCH_PROJECT_ID='' GLITCH_TOKEN='' GH_REPO='' ./node_modules/.bin/sync-glitch\n```\n\nEnable debug logs:\n\n```console\nGLITCH_PROJECT_ID='' GLITCH_TOKEN='' GH_REPO='' DEBUG=sync-glitch* ./node_modules/.bin/sync-glitch\n```\n\n## License\n\nsync-glitch-cli © [Sam Yamashita](https://twitter.com/sota0805). Released under the [Apache 2.0](LICENSE)\u003cbr/\u003e\nAuthored and maintained by [Sam Yamashita](https://twitter.com/sota0805) with help from [contributors](https://github.com/glitch-tools/sync-glitch-cli/contributors).\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fglitch-tools%2Fsync-glitch-cli.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fglitch-tools%2Fsync-glitch-cli?ref=badge_large)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglitch-tools%2Fsync-glitch-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglitch-tools%2Fsync-glitch-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglitch-tools%2Fsync-glitch-cli/lists"}