CLI to interact with Heroku's Dev Center
$ gem install devcenter
$ devcenter open error-pages
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.
$ 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.
$ 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
.
Get available commands
$ devcenter help
Get help about a specific command
$ devcenter help pull
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
).
See LICENSE.txt file.
The preview
command uses the Font Awesome vector icons, which have their own License.