### Compile Twingate CLI from Source with Deno Source: https://github.com/twingate-labs/tg-cli/blob/main/README.md Commands to bundle and compile the Twingate CLI application from its source code using Deno, targeting a Linux executable. Requires Deno to be installed. ```Deno deno bundle --unstable --import-map ./import_map.json ./tg.js ./tg.bundle.js deno compile --allow-all --unstable --target x86_64-unknown-linux-gnu --output ./tg ./tg.bundle.js ``` -------------------------------- ### Export Twingate Data to Excel or PNG Source: https://github.com/twingate-labs/tg-cli/blob/main/README.md Commands to export Twingate data. The default format is Excel. Using the `--format png` option allows exporting as a PNG image, which requires the GraphViz package to be installed and available on the system path. ```Shell ./tg export ``` ```Shell ./tg export --format png ``` -------------------------------- ### Import Twingate Configuration to New Account Source: https://github.com/twingate-labs/tg-cli/blob/main/README.md Command to import groups, remote networks, and resources into a new Twingate account. The `-a` flag specifies the new account name, and `-f` points to the file containing the configuration, which must be in the format outputted by the export command. ```Shell ./tg import -a [new account name] -nrg -f [path to file to import from (format must be as outputted by the export command)] ``` -------------------------------- ### Prepare and Test Twingate CLI on Mac Source: https://github.com/twingate-labs/tg-cli/blob/main/README.md Instructions to prepare the Twingate CLI executable on macOS by removing the quarantine bit and making it executable, followed by testing its functionality. Testing can be done via direct execution or by navigating to the executable's directory. ```Shell xattr -d com.apple.quarantine /path/to/tg chmod +x /path/to/tg /path/to/tg --help ``` ```Shell xattr -d com.apple.quarantine /path/to/tg chmod +x /path/to/tg cd \path\to\tg ./tg --help ``` -------------------------------- ### Display Twingate CLI Help Information Source: https://github.com/twingate-labs/tg-cli/blob/main/README.md Commands to show the general help message for the Twingate CLI and specific help for 'group' and 'export' subcommands, providing usage details for each. ```Shell ./tg --help ``` ```Shell ./tg group --help ``` ```Shell ./tg export --help ``` -------------------------------- ### List Twingate Resources Source: https://github.com/twingate-labs/tg-cli/blob/main/README.md Command to list available resources managed by the Twingate CLI. ```Shell ./tg resource list ``` -------------------------------- ### Test Twingate CLI on Windows Source: https://github.com/twingate-labs/tg-cli/blob/main/README.md Instructions to test the Twingate CLI executable on Windows. This includes direct execution using the full path or navigating to the executable's directory and running it. ```Shell \path\to\tg.exe --help ``` ```Shell cd \path\to\tg.exe tg.exe --help ``` -------------------------------- ### Test Twingate CLI on Linux Source: https://github.com/twingate-labs/tg-cli/blob/main/README.md Instructions to test the Twingate CLI executable on Linux. This includes direct execution using the full path or navigating to the executable's directory and running it. ```Shell /path/to/tg --help ``` ```Shell cd \path\to\tg ./tg --help ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.