How it works
Using a combination of a CLI and Desktop app, your secrets are securely encrypted. They are never stored on disk and secured via your fingerprint.
# Install as standalone CLIbrew install varlockcd my-projectvarlock init
# OR init and install as a dependency in a js projectnpx varlock init# This file uses env-spec - see https://github.com/varlock/env-spec for more info# @envFlag=APP_ENV# @defaultSensitive=false @defaultRequired=false# ---
# Env flag# @type=enum(development, staging, production, test)APP_ENV=development
# this will be overridden in .env.productionSOME_VAR=default-value
# @type=number(precision=0)NUMBER_ITEM=123.45
# @type=email(normalize=true)EMAIL_ITEM=HEllO@example.com #output: hello@example.com
# @type=urlURL_ITEM=https://example.com
# @type=portPORT="5678"
INFER_NUM=123INFER_BOOL=trueINFER_STR=asdf
NOT_SENSITIVE_ITEM="not-sensitive"
# @sensitiveSENSITIVE_ITEM=secret-valueHow it works
Using a combination of a CLI and Desktop app, your secrets are securely encrypted. They are never stored on disk and secured via your fingerprint.
Benefits
Workflow