Skip to content
Remove now deployments without an alias
Branch: master
Clone or download
matiastucci Merge pull request #4 from jimthedev/patch-1
docs: add one-time run via npx
Latest commit 228a5ca Dec 20, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc.js
.gitignore Initial commit Apr 11, 2017
CHANGELOG.md
LICENSE
README.md docs: add one-time run via npx Dec 20, 2017
example.png
index.js
package.json 0.0.15 Aug 9, 2017

README.md

now-purge Version

Remove now deployments without an alias

example

CLI

One time run (using NPM 5 / npx)

npx now-purge

Installation

npm install -g now-purge

Usage

now-purge <command> [options]

Commands:
  t  now token
  n  name in package.json or now.json to filter your deployments

Options:
  --team, -m     team id
  -h, --help     Show help                                             [boolean]
  -v, --version  Show version number                                   [boolean]

As a package

Installation

npm install now-purge --save

Usage

const nowPurge = require('now-purge')

// optional config parameters
const config = {
  token: 'YOUR_NOW_TOKEN',
  deploymentName: 'test',
  team: 'OPTION_TEAM_ID',
}

nowPurge(config)

From your CI

You can remove your oldest deployments without an alias

npm install -g now-purge
now-purge -t YOUR_NOW_TOKEN -n YOUR_NOW_OR_PACKAGE_NAME --team OPTION_TEAM_ID
You can’t perform that action at this time.