Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

now-secrets

GitHub Workflow Status GitHub code style: Prettier dependabot enabled

English | ζ—₯本θͺž

What's this?

now-secrets is a command to automatically update Vercel secrets based on .env.

⚠ This is an unofficial project.

Getting Started

  • Install this package to global.
npx add-pkg -g now-secrets # add-pkg: https://add-pkg.dotplants.net
  • Move to your project and edit .env.
cd /path/to/your-project
vi .env
VERCEL_TOKEN=foobar
OTHER_ENV=hogefuga
  • Run now-secrets.
now-secrets
  • If successful, @{prefix}_{env_key} has been added.

Config

In package.json:

{
  ...
  "now_secrets": {
    "prefix": "",
    "env_file_name": "" // default: .env
  }
}
  • prefix: now_secrets.prefix in package.json > name in vercel.json > name in package.json
  • scope: scope in now.json > personal account

CLI Usage

now-secrets v1.2.0

Usage: now-secrets [options]
Update all secrets

Options:
  --clean, --no-add, -c: Remove only (clean)
  --no-remove: Add only
  --no-update-vercel-json, --no-update-now-json: Do not update vercel.json

Usage: now-secrets [command] [options]

Commands:
  - update: Update all secrets
  - remove: Delete secrets
  - help: Show the help of cli

Run "now-secrets help [command]" for detailed usage of the command.

Add only

Vercel specifications: Secrets that have already been added return an error.

License

About

πŸ” automatically update Vercel secrets in one command

Resources

License

Packages

No packages published