DotenvxDotenvx
  • ▦ Documentation
  • ❯ CLI Reference
  • ƒ SDK Reference
DotenvxDotenvx
Log InGet Started
  • CLI Reference

    • Introduction
  • Commands

    • run
    • get
    • set
    • encrypt
    • decrypt
    • rotate
    • keypair
  • More

    • ls
    • ext
  • Sign in
CLI Reference›Keypair

Keypair

Print public/private keys for .env file.

$ dotenvx keypair
{"DOTENV_PUBLIC_KEY":"<publicKey>","DOTENV_PRIVATE_KEY":"<privateKey>"}

Advanced

  • keypair -f
  • keypair -fk
  • keypair DOTENV_PRIVATE_KEY
  • keypair --format shell

Was this page helpful?

© Copyright 2026. All rights reserved.

llms.txtllms-full.txtFollow us on XFollow us on GitHubFollow us on YouTubeInstall VSCode extension