LinuxCommandLibrary

grip

GitHub-flavored Markdown preview server

TLDR

Preview README in current directory

$ grip
copy
Preview and open in browser
$ grip -b
copy
Preview specific file
$ grip [README.md]
copy
Preview on specific port
$ grip [file.md] [8080]
copy
Export to HTML
$ grip --export [file.md]
copy
Preview offline without GitHub API
$ grip --offline [file.md]
copy
Preview from stdin
$ cat [file.md] | grip -
copy

SYNOPSIS

grip [options] [path] [address]

DESCRIPTION

grip (GitHub Readme Instant Preview) is a command-line server that renders GitHub-flavored Markdown using GitHub's API. It displays how your README will appear on GitHub with accurate styling, and changes to files are reflected instantly without page refresh.
Use --offline to avoid API rate limits for basic rendering.

PARAMETERS

-b, --browser

Open in browser after starting.
--export
Export to HTML file instead of serving.
--offline
Render without GitHub API.
--norefresh
Disable auto-refresh on file changes.
--quiet
Suppress terminal output.
--user user
GitHub username for API auth.
--pass pass
GitHub password or token.

CAVEATS

Without authentication, GitHub API rate limits may apply. Use --user and --pass with a personal access token for higher limits.

SEE ALSO

markdown(1), pandoc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community