Hello and welcome to Blynk.
Having often struggled to get Blynk working on RPi, I am not really the most knowledgeable on the topic, but here i go
Using @vshymanskyy excellent instructions >here<, I installed the Node based Client, however, I was unable to run Blynk using the Global install method… so I went with the alternative method, wherein I use this command, to connect to my Local Server via TCP, within each actual script that I would create: var blynk = new Blynk.Blynk(AUTH, options = { connector : new Blynk.TcpClient( options = { addr:"xxx.xxx.xxx.xxx", port:8442 } ) });
An example of this is here: (SOLVED - but still open for suggestions) Java + Blynk questions regarding my test script on RPi (Node.js) - Includes real buttons and LEDs
The other method you asked about, in which you would enter the start command in the CLI: blynk-client AUTH
I believe requires changes to the blynk-node.js
script, wherever that resides in the Global install method.
For example, in the file there are at least two places that look like this (at least one for TCP and one for SSL):
exports.TcpClient = function(options) {
var self = this;
events.EventEmitter.call(this);
var options = options || {};
self.addr = options.addr || "blynk-cloud.com";
self.port = options.port || 8442;
I “think” this is where you would replace blynk-cloud.com
with your server IP.
I suspect there is a way of adding options to the CLI command… something like blynk-client --IP --port
etc. but someone else will have to confirm this and show proper syntax, if it is even possible.