{"id":13702800,"url":"https://github.com/twingate-labs/tg-cli","last_synced_at":"2026-01-16T10:37:30.471Z","repository":{"id":40481735,"uuid":"446534424","full_name":"Twingate-Labs/tg-cli","owner":"Twingate-Labs","description":"Command Line Interface for Administering Twingate","archived":false,"fork":false,"pushed_at":"2024-02-13T11:50:48.000Z","size":442,"stargazers_count":24,"open_issues_count":4,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-11-13T10:37:45.003Z","etag":null,"topics":["cloud","deno","javascript","twingate"],"latest_commit_sha":null,"homepage":"","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/Twingate-Labs.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-10T18:16:36.000Z","updated_at":"2024-08-30T06:01:59.000Z","dependencies_parsed_at":"2023-02-04T08:16:43.637Z","dependency_job_id":"e7549847-a42d-4b0a-aad1-3391baac8c53","html_url":"https://github.com/Twingate-Labs/tg-cli","commit_stats":null,"previous_names":[],"tags_count":73,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twingate-Labs%2Ftg-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twingate-Labs%2Ftg-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twingate-Labs%2Ftg-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twingate-Labs%2Ftg-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Twingate-Labs","download_url":"https://codeload.github.com/Twingate-Labs/tg-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252451952,"owners_count":21750011,"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":["cloud","deno","javascript","twingate"],"created_at":"2024-08-02T21:00:42.915Z","updated_at":"2026-01-16T10:37:30.453Z","avatar_url":"https://github.com/Twingate-Labs.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":["Rust"],"readme":"Twingate CLI Tool\n===========================\nThis is a command line application demonstrating various usages of the Twingate API.\n\n\nSetup\n===========================\n* Download the lastest [release](https://github.com/Twingate-Labs/tg-cli/releases/latest) cli-{version}-{os}-{cpu architecture}.zip \n* Unzip the downloaded zip file\n\n\nWindows\n===========================\n* Open Command Prompt\n* Test\n  * ```\\path\\to\\tg.exe --help``` e.g. ```G:\\tg.exe --help``` or \n  * ```cd \\path\\to\\tg.exe``` followed by ```tg.exe --help```\n\n\nLinux\n===========================\n* Open Linux Terminal\n* Test\n  *  ```/path/to/tg --help``` e.g. ```/apps/tg --help``` or \n  *  ```cd \\path\\to\\tg``` followed by ```./tg --help```\n\n\nMac\n===========================\n* Open Mac Terminal\n* Execute ```xattr -d com.apple.quarantine /path/to/tg``` to remove the quarantine bit.\n* Execute ```chmod +x /path/to/tg``` to make the app executable.\n* Test\n  *  ```/path/to/tg --help``` e.g. ```/apps/tg --help``` or \n  *  ```cd \\path\\to\\tg``` followed by ```./tg --help```\n\nCompiling from source\n===========================\n* Ensure [deno](https://deno.land/#installation) is installed  \n* Execute the commands below\n```\ndeno bundle --unstable --import-map ./import_map.json ./tg.js ./tg.bundle.js\ndeno compile --allow-all --unstable --target x86_64-unknown-linux-gnu --output ./tg ./tg.bundle.js \u0026\n```\n\nExample Commands\n===========================\n**Show command usage**\n\n``./tg --help``\n\n``./tg group --help``\n\n``./tg export --help``\n\n**Export Excel file**\n\n``./tg export``\n\n**Export PNG image**\n\n``./tg export --format png``\n\n*Note: Requires the [GraphViz](https://graphviz.gitlab.io) package to be [installed](https://graphviz.gitlab.io/download/#executable-packages) and available on your path.*\n\n**List resources**\n\n``./tg resource list``\n\n\n**Import Groups, Remote Networks and resources into a new account**\n\n``./tg import -a [new account name] -nrg -f [path to file to import from (format must be as outputted by the export command)]``\n\nNeed Help?\n===========================\nIf you are experiencing any issues, create a new issue [here](https://github.com/Twingate-Labs/tg-cli/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwingate-labs%2Ftg-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwingate-labs%2Ftg-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwingate-labs%2Ftg-cli/lists"}