Code Monkey home page Code Monkey logo

devcenter-cli's Introduction

Dev Center CLI

CLI to interact with Heroku's Dev Center

Installation

$ gem install devcenter

Usage

Open a published article

$ devcenter open error-pages

Save a local copy of an article

You can pull an article from its slug

$ devcenter pull article-slug

or from its URL:

$ devcenter pull https://devcenter.heroku.com/articles/article-slug

This will save an article-slug.md text file in your local directory. The file includes some metadata (article title and id) followed by the article content in markdown format. You can edit both the title and the content, but never overwrite the article id.

Preview a local copy of an article

$ devcenter preview dynos

This will open a preview in your default browser and get it refreshed when you save the file. You can specify --port and --host options to customize the preview web server.

Update an article in Dev Center from a local file

$ devcenter push dynos

This will save the title and content from your local article in Dev Center, using your Heroku credentials from ~/.netrc, which you can set by doing heroku auth:login.

Help

Get available commands

$ devcenter help

Get help about a specific command

$ devcenter help pull

Development

If you have a Dev Center instance, you can point your CLI to it by setting the DEVCENTER_BASE_URL env. var (e.g: export DEVCENTER_BASE_URL=http://localhost:3000).

License

See LICENSE.txt file.

The preview command uses the Font Awesome vector icons, which have their own License.

devcenter-cli's People

Contributors

brandur avatar catsby avatar eablack avatar hannesfostie avatar jheikes515 avatar raul avatar svc-scm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.