ns proxy set <proxy url> [username] [password]

Sets the proxy settings of the NativeScript CLI


proxy urlFull url of the proxy. For example, If you do not provide the url when running the command, the NativeScript CLI will prompt you to provide it
usernameCredentials for the proxy
passwordCredentials for the proxy


--insecureAllows insecure SSL connections and transfers to be performed. In case your proxy doesn't have a CA certificate or has an invalid one you need to use this flag