Does the "cmf" command take a long time for you?

I’ve noticed that the “cmf” command seems to have about 20 seconds of overhead before it starts doing anything. Below, I simply timed “cmd --help”. I’d expect this to execute instantaneously, but even this takes 20 seconds?

Why is this? Is there a way to avoid this overhead? When we do a complete build, we call “cmf build” and “cmf pack” on each of our 15 customization packages. That’s 30 calls with 20 seconds of overhead on each for a total of 600 seconds or 10 minutes! Given that a complete build of all packages takes about 18 minutes, this overhead is accounting for more than half of the build time.

time cmf --help
Description:
Critical Manufacturing CLI

Usage:
cmf [command] [options]

Options:
-l, --loglevel <Debug|Error|Information|Verbose|Warning> Log Verbosity [default: Verbose]
-v, --version Show version information
-?, -h, --help Show help and usage information

Commands:
assemble Assemble all unreleased packages as release candidates. Also generate a dependency file with all needed released packages. [default: .]
build [default: .]
bump [default: .]
init Initialize the content of a new repository for your project [rootPackageName: Cmf.Custom.Package, workingDir: .]
ls [default: .]
login <CIFS|Docker|NPM|NuGet|Portal> Login into one or more package respositories
new
pack [default: .]
plugins Search for plugins for the CLI
upgrade Project upgrade utilities
restore [default: .]
portal
dev

real 0m21.508s
user 0m2.898s
sys 0m0.236s

Hi Ben,

can’t help that much with the problem, but I can confirm that in my envrionment, I have a similar deplay when executing the command after not having done that for a while (a day or so). Subseqeuent executions do work faster.

My suspision is that it is related to the fact that the cli is checking online if a newer version is available which, depending on the system, could explain the overhead.

As I said, not hepling much, but at least you are not alone

Best regards,
Maximilian