twingate-labs / tg-cli Goto Github PK
View Code? Open in Web Editor NEWCommand Line Interface for Administering Twingate
License: Apache License 2.0
Command Line Interface for Administering Twingate
License: Apache License 2.0
That's it really... tgcli --help
works (I installed the .deb package if that matters)
I'm running the suggested command after using deploy do
and am receiving the following error:
➜ ~ ./tg resource create "Digital Ocean (sfo3)" "Connector host tg-primitive-mayfly" "10.124.0.3" Everyone
[INFO] Using Twingate account: 'tenant'
[ERROR] Exception: Error: Could not find group: 'E'
at Command.fn (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:10357:39)
at async Command.execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2470:13)
at async main2 (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80076:12)
at async file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80079:5
I also tried enclosing "Everyone"
in quotes, and the CLI returns with the same error message.
It seems that binaries no longer work from v0.0.54.
It output "TypeError: Deno.setRaw is not a function”.
v0.0.53 zip.
$ tg --version
tg CLI Version: 0.0.53 | TwingateApiClient Version: 0.1.0
$ tg connector list
? Enter Twingate account: ›
❯ For example, 'acme' for 'acme.twingate.com'
v0.0.54 zip.
Each command cannot be executed.
$ tg --version
tg CLI Version: 0.0.54 | TwingateApiClient Version: 0.1.0
$ tg connector list
? Enter Twingate account: › [ERROR] Exception: TypeError: Deno.setRaw is not a function
at Input.#readChar (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6179:18)
at Input.#readKey (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6172:42)
at Input.read (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6121:47)
at Input.#execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6072:25)
at async Input.prompt (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:6058:20)
at async PromptList.runPrompt (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7380:45)
at async file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7312:17
at async PromptList.runBeforeHook (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7368:9)
at async PromptList.next (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7310:13)
at async PromptList.run (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:7305:9)
$
Getting the following error while deploying to OCI.
Reference - How to remotely access Oracle Cloud OCI without a VPN
[INFO] Creating VM, please wait.
[ERROR] Exception: ReferenceError: encode is not defined
at OracleVmDeployer.createVm (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:78998:24)
at OracleVmDeployer.deploy (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:79034:37)
at eventLoopTick (ext:core/01_core.js:182:7)
at async Command.fn (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:79065:28)
at async Command.execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2536:13)
at async main1 (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80721:12)
at async file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80724:5
Trying to build tg on Ubuntu 20.04 using latest version of deno. Build completed but I get this error when trying to use command:
ascii@thinkpad-x1:~/git-repo/tg-cli$ ./tg --help
error: Uncaught SyntaxError: The requested module 'https://deno.land/std/io/mod.ts' does not provide an export named 'readerFromStreamReader'
import { readerFromStreamReader } from "https://deno.land/std/io/mod.ts";
^
at <anonymous> (file:///home/ascii/git-repo/tg-cli/utils/smallUtilFuncs.mjs:294:10)
Hi I run the command tg deploy oci vm
and I get the error below:
tg deploy oci vm
[INFO] Using Twingate account: 'xxxx'
[ERROR] Exception: NotFound: No such file or directory (os error 2)
at opRun (deno:runtime/js/40_process.js:29:16)
at Object.run (deno:runtime/js/40_process.js:112:17)
at execCmd (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:10304:20)
at OracleVmDeployer.checkAvailable (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:76069:34)
at OracleVmDeployer.deploy (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:80891:20)
at async OracleVmDeployer.deploy (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:81124:9)
at async Command.fn (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:81172:28)
at async Command.execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2493:13)
at async Command.parse (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2313:20)
at async main2 (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:82074:12)
Currently it is possible to create service account keys but not possible to revoke and remove. It would be nice to have this ability in order to programmatically rotate service account keys.
When attempting to do a deployment:
➜ ~ ./tg deploy do vm -a tenant --size s-1vcpu-512mb-10gb
[INFO] Using Twingate account: 'tenant'
[ERROR] 'doctl' CLI not detected on path. Please check that it is installed.
[ERROR] Exception: Error: 'doctl' CLI not detected on path. Please check that it is installed.
at DigitalOceanDeployer.checkAvailable (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:72682:19)
at async DigitalOceanDeployer.checkAvailable (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:77143:9)
at async DigitalOceanDeployer.deploy (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:77394:9)
at async Command.fn (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:77455:28)
at async Command.execute (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:2470:13)
at async main2 (file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:78840:12)
at async file:///home/runner/work/tg-cli/tg-cli/tg.bundle.js:78843:5
The Digital Ocean CLI is installed, see below:
➜ ~ which doctl
/opt/homebrew/bin/doctl
➜ ~
doctl
was installed with brew install doctl
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.