Code Monkey home page Code Monkey logo

greenkeeper's Introduction

Getting Started with Greenkeeper

To install Greenkeeper, type:

npm install -g greenkeeper

Then log in:

greenkeeper login

Your browser will open a new window or tab and redirect you to GitHub’s Application Authentication screen. There is a big green button [Authorize application] at the bottom. When you click it, Greenkeeper gets the access to GitHub it needs to do its job, but no more. When all goes well, your browser will say “Check your Terminal”, and when you switch back here, the login will be done and Greenkeeper will have started to sync your GitHub repository information.

Congratulations, you made it past the most complicated step!

Next, you enable a repository of yours. To do this, navigate to a local copy of your repository (e.g. cd ~/code/myrepo). Then:

greenkeeper enable

And that’s it already! :)

From here on out, Greenkeeper will do its job automatically. If your dependencies are already outdated the first thing you are going to notice is a Pull Request where we update all your dependencies in your repository’s package.json to their respective latest versions. Then, whenever one of your dependencies is updated on npm, you will receive a Pull Request to update your repository accordingly.

If you’d like to talk to a human or want to report an issue, type:

greenkeeper support

Usage

Have a question? Check the FAQ at https://greenkeeper.io/faq.html, or talk to a human: Run greenkeeper support :)

Usage: greenkeeper [--slug=user/repository] <command>

command
start learn how to get started
login opens GitHub Authentication
logout
enable enable a repository
disable disable a repository
list a list of all enabled repositories
upgrade upgrade to a different plan
whoami show who you are logged in as and what organizations you can access
info show the state of your repository
support opens support in your browser
sync sync all your GitHub repositories
npm-access grant access to your private npm packages
npm-verify check access to private npm packages
postpublish add the postpublish hook to your scoped module
faq open FAQ website
config get, set and delete config
--help this screen
--version current version of the CLI

enable, disable and info take an optional parameter --slug=user/repository where user is the username or organization on GitHub and repository is the repository name. If you omit the slug, greenkeeper will use the current directory’s git remote "origin"

sync happens automatically when you log in. Also enable performs a sync automatically in case the repository you try to enable is not found.

Type greenkeeper start to learn how to get started.

protip: you can type gk instead of greenkeeper and abbreviate every command, as long as it’s unambiguous

Enabling a repository

Most of the time enabling a repository is straight forward – just execute greenkeeper enable. In some cases, especially when there are private repositories or permissions involved, it can fail. Fear not. This guide will walk you through all the required steps. If you can’t get your repository enabled after these steps please contact us. greenkeeper support

  1. If you want to enable a private repository for the first time make sure to grant Greenkeeper the necessary rights by running greenkeeper login --force --private.
  2. With GitHub’s new permission model you need to grant Greenkeeper access per organization. You can do this with greenkeeper access.
  3. Keep in mind that you need admin access to a repository to enable it. If you don’t have access please ask someone on your team for help.

The CLI

Build Status Dependency Status devDependency Status js-standard-style semantic-release

NPM

🌴

greenkeeper's People

Contributors

atomantic avatar boennemann avatar christophwitzko avatar eliias avatar espy avatar finnp avatar ginpei avatar greenkeeperio-bot avatar iiegor avatar janl avatar juanitofatas avatar leo avatar lewiscowper avatar stefanbuck avatar steveklabnik avatar thibmaek avatar

Watchers

 avatar

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.