.env file, then upload that file to Enkryptify with ek import.
Prerequisites
- The Enkryptify CLI installed and signed in with
ek login - A Vercel account with access to the target project
- Node.js so you can install the Vercel CLI
Link the directory to your Vercel project
Run this from your project directory then pick the scope and project at the prompts:This writes a
.vercel/ folder so the next command knows which project to read.Pull the environment into a .env file
Pull the environment you want into a file named
.env:Pass the filename and the environment explicitly. A bare
vercel env pull writes to .env.local and pulls the development environment. Use --environment=preview --git-branch=<branch> for a preview branch, or pass a custom environment name such as --environment=staging.Notes
- The pulled file holds real secret values, including Vercel’s sensitive variables. Keep it out of git and delete it after importing.
vercel env pullwrites standardKEY="value"lines thatek importreads as is, so no extra conversion step is needed.