Simple cli wrapper for vite-plugin-mkcert to use outside vite context
npm install mkcert-cliNode cli wrapper for [mkcert][mkcert] based entirely on the fantastic work done in [vite-plugin-mkcert][vite-plugin-mkcert].
Create locally trusted development certificates in default folder $HOME/.mkcert-cli/certs
``sh
> npx -y mkcert-cli
Options
$3
Explicitly define output directory for files
`sh> npx -y mkcert-cli --outDir .
=> Created "dev.cert" and "dev.key" in ./
`$3
Set file names, default to
dev.cert and dev.key`sh> npx -y mkcert-cli --outDir . --cert localhost.pem --key localhost.key
=> Created "localhost.pem" and "localhost.key" in ./
`$3
Custom hosts, default value is
localhost + local ip addrs.To pass multiple values, just pass several named args.
`sh> npx -y mkcert-cli --host localhost --host my-site.local
=> Created "dev.cert" and "dev.key" for ["localhost", "my-site.local"]
`$3
####
--help / -h: Display help text`sh
npx -y mkcert-cli -h
`####
-f / --force: ForceForce regenerate certificate files
`sh
npx -y mkcert-cli -f
`####
-u / --upgrade: Auto upgrade mkcert bin Install latest version of mkcert that's available before generating certificates.
`sh
npx -y mkcert-cli -u
``- [vite-plugin-mkcert][vite-plugin-mkcert]
- [mkcert][mkcert]
[vite-plugin-mkcert]:https://github.com/liuweiGL/vite-plugin-mkcert
[mkcert]:https://github.com/FiloSottile/mkcert