Advanced

dotenvx.config(no1Password: true)

Leave op:// values unresolved and avoid calling the 1Password CLI.

By default, config() resolves op:// values through the installed 1Password CLI.

# .env
API_KEY=op://Personal/my_api_key/password

Set no1Password to leave the reference unresolved:

// index.js
require('@dotenvx/dotenvx').config({no1Password: true})

console.log(process.env.API_KEY)