@yume-chan/openvpn-connect-profile-batch-importer
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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 test@example.com "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

Readme

Keywords

none

Package Sidebar

Install

npm i @yume-chan/openvpn-connect-profile-batch-importer

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

46 kB

Total Files

9

Last publish

Collaborators

  • yume-chan