Bullk adding of domain using flarectl

Hello,
I have seen no exact solution for my problem, so I hope that anybody can help me.
I am on Windows 10 running flarectl package for Windows.
I was able to set the necessary keys and env.
Now I want to add more domains in bulk from a txt file.
The solution provided here is containing only the linux commands.

unable to execute or convert into windows.

for domain in $(cat domains.txt); do flarectl zone create --zone=$domain --jumpstart=false; done

Can anybody tell me the changes needed for Windows?
Kind regards and many thanks

Using PowerShell something like

foreach($domain in Get-Content .\domains.txt) {
   flarectl zone create --zone=$domain --jumpstart=false
}

might work

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.