now-secrets
**now-secrets** is a command to automatically update [ZEIT Now](https://zeit.co) secrets based on .env.
Last updated 2 months ago by dotplants-bot .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install now-secrets 
SYNC missed versions from official npm registry.

now-secrets

GitHub Workflow Status GitHub code style: Prettier dependabot enabled

English | 日本語

What's this?

now-secrets is a command to automatically update ZEIT Now 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
ZEIT_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 now.json > name in package.json
  • scope: scope in now.json > personal account

CLI Usage

Update all secrets

now-secrets

Add only

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

now-secrets --no-remove

Remove only (clean)

now-secrets --clean

Do not update now.json

now-secrets --no-update-now-json

License

Current Tags

  • 1.0.3                                ...           latest (2 months ago)

5 Versions

  • 1.0.3                                ...           2 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
  • 0.1.0                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |