resume/cli

This package is abandoned and no longer maintained. No replacement package was suggested.

Generate a beautiful HTML résumé based on a JSON file.

dev-master 2019-05-06 18:27 UTC

This package is auto-updated.

Last update: 2020-02-06 20:24:26 UTC


README

resume-cli

Resume CLI

Latest Version on Packagist Total Downloads Software License Build Status StyleCI

Generate a beautiful HTML résumé based on a JSON file. You can use [the pre-built templates], download one of the readily available ones, or [write your own] with HTML and CSS.

Resume CLI was inspired by (and loosely based on) JSON Resume, and built using Laravel Zero.

Index

Installation

You'll have to follow a couple of simple steps to install this package.

Downloading

Via composer:

$ composer global require resume/cli

Or add the package to your dependencies in composer.json and run composer global update on the command line to download the package:

{
    "require": {
        "resume/cli": "^1.0"
    }
}

Ensure Composer's global bin directory is included in your path. This directory is located at ~/.composer/vendor/bin on macOS / Linux, and at %APPDATA%/Composer/vendor/bin on Windows.

Usage

To make a résumé, create a file named resume.json with the following contents:

{
    "name": "John Doe",
    "email": "john@example.com"
}

Running resume make will create a new folder (resume/ by default) with the HTML and CSS required to publish and distribute your CV online.

Note: if the folder resume already exists, the command will exit without changing or overwriting anything.

Customization

Of course, you may want to customize the way your résumé is generated. You can do so by passing the following options to resume make:

Source file name

To change what file is used for generating your résumé, pass the name of the file to the make command:

$ resume make source.json

Output directory

To specify the name of the output directory for your generated résumé, use the --output option:

$ resume make source.json --output="public"

This will create a public folder and put the generated HTML and CSS in there.

Forcefully generating

You may use the --force flag to overwrite any files or folders already in the output directory:

$ resume make --output="public" --force

Theme

You can select a different theme using the --theme option:

# Generate your CV using the "flat" theme.
$ resume make source.json --theme="flat"

More info about adding and writing your own themes can be found here.

Previewing your CV

Of course, you'll want to preview your CV before publishing it online. You can do so by using the serve subcommand:

# Serve your CV from the default directory ('resume')
$ resume serve

# Serve your CV from a custom directory ('public', in this case)
$ resume serve public

This will start PHP's built-in webserver on its default port (8000). To change the port it's served on, use the --port option:

# Serve the CV on port 1337 instead of 8000
$ resume serve --port=1337

Contributing

All contributions (pull requests, issues and feature requests) are welcome. Make sure to read through the CONTRIBUTING.md first, though. See the contributors page for all contributors.

License

resume/cli is licensed under the MIT License (MIT). Please see the license file for more information.