@yume-chan/openvpn-connect-profile-batch-importer
v1.0.2
Published
A CLI tool to import multiple OpenVPN profiles into OpenVPN Connect app.
Downloads
4
Readme
OpenVPN Connect Profile Batch Importor
A CLI tool to import multiple OpenVPN profiles into OpenVPN Connect app.
Tested with OpenVPN Connect v3.1.3.(713) on Windows 10.
Usage
npm i -g @yume-chan/openvpn-connect-profile-batch-importer
openvpn-connect-profile-manager <command> [options]
Commands:
openvpn-connect-profile-manager import Import profiles
<username> [glob]
openvpn-connect-profile-manager remove Remove profiles
<regex>
openvpn-connect-profile-manager set Update profiles
<regex>
Command Options:
-c, --config Path to OpenVPN Connect config file [string]
Global Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Import
openvpn-connect-profile-manager import <username> [glob]
Import profiles
Positionals:
username Username will be saved in imported profile config as plain text
[string] [required]
glob Glob to match OpenVPN Profile files [string] [default: "*.ovpn"]
Command Options:
-c, --config Path to OpenVPN Connect config file [string]
-p, --password Password will be saved into Windows Credential Manager
encrypted [string]
Global Options:
-v, --version Show version number [boolean]
-h, --help Show help [boolean]
Example
openvpn-connect-profile-manager import [email protected] "C:\OpenVPN\*.ovpn" --password p@ssw0rd
remove
openvpn-connect-profile-manager remove <regex>
Remove profiles
Positionals:
regex Regex to match profiles to be removed [required]
Command Options:
-c, --config Path to OpenVPN Connect config file [string]
Global Options:
-v, --version Show version number [boolean]
-h, --help Show help [boolean]
update
openvpn-connect-profile-manager <command> [options]
Commands:
openvpn-connect-profile-manager import Import profiles
<username> [glob]
openvpn-connect-profile-manager remove Remove profiles
<regex>
openvpn-connect-profile-manager set Update profiles
<regex>
Command Options:
-c, --config Path to OpenVPN Connect config file [string]
Global Options:
-v, --version Show version number [boolean]
-h, --help Show help [boolean]
Development
This project uses pnpm to manage dependencies.
Install dependencies:
pnpm i
License
MIT