GithubHelp home page GithubHelp logo

matiastucci / now-purge Goto Github PK

View Code? Open in Web Editor NEW
42.0 4.0 3.0 187 KB

Remove now deployments without an alias

Home Page: https://www.npmjs.com/package/now-purge

License: MIT License

JavaScript 100.00%
now now-prune now-purge prune purge

now-purge's Introduction

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

now-purge's People

Contributors

evenchange4 avatar jimthedev avatar matiastucci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

now-purge's Issues

Add label for prune / now-prune

I knew this existed but for the life of me could not find it because I was searching for pruning. It might be worth adding something to the readme or the github tags to mention prune pruning now-prune etc. Thanks for making this. Super handy.

This is supported by Now CLI

The feature of this module is now supported directly by Now CLI in a single command:

now rm <app> --safe

It will remove all the deployments of the given app without an assigned alias.

However, some users still recommend it, maybe is a good idea to mention it in the README?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.