https://github.com/shower/cli
Command line interface for Shower
https://github.com/shower/cli
cli shower
Last synced: 8 months ago
JSON representation
Command line interface for Shower
- Host: GitHub
- URL: https://github.com/shower/cli
- Owner: shower
- License: other
- Created: 2018-05-14T09:22:59.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2025-02-03T05:42:51.000Z (over 1 year ago)
- Last Synced: 2025-04-09T16:05:29.398Z (about 1 year ago)
- Topics: cli, shower
- Language: JavaScript
- Size: 1.03 MB
- Stars: 34
- Watchers: 6
- Forks: 6
- Open Issues: 20
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Shower CLI
**Command line interface for [Shower](http://shwr.me/)**
[](https://www.npmjs.com/package/@shower/cli)
[](https://travis-ci.org/shower/cli)
[](https://github.com/shower/cli/blob/master/LICENSE.md)
## Quick Creating Slides
```sh
npx @shower/cli create my-slides
```
*([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher)*
## Installation
Install ShowerCLI using `npm`:
```bash
$ npm install --global @shower/cli
```
or via `yarn`:
```bash
$ yarn global add @shower/cli
```
The minimum supported Node version is `v8.0.0` by default.
**Note:** For easy creation of slides for one command,
we recommend installing the `@shower/cli` globally.
After the presentation is created, ShowerCLI
is added as dev-dependencies by default
## Usage:
```
shower [--version] [--help] [ []]
Options:
--cwd working directory to use [string] [default: $PWD]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
```
**`$ shower create []` - Create a new project**
```
Positionals:
directory [default: "slides"]
Options:
--yes, -y [boolean] [default: false]
```
**`$ shower serve` - Serve the presentation in development mode**
```
Options:
--open, -o Open browser [default: false]
--port, -p Listening Port [number] [default: 8080]
--ui Whether to run BrowserSync UI [default: false]
--notify Whether to show BrowserSync notifications [default: false]
```
**`$ shower bundle` - Gather the necessary files in a separate folder**
```
Options:
--output, -o In which folder will the bundled presentation be written
[string] [default: "bundled"]
--files, -f List of files that will get the build [array]
```
**`$ shower archive` - Create an archive of the bundled presentation**
```
Options:
--output, -o Archive name [string] [default: "presentation.zip"]
--files, -f List of files that will get the build [array]
```
**`$ shower pdf` - Converts the presentation to PDF**
The browser that [implements the Chrome Debugging Protocol](https://github.com/cyrus-and/chrome-remote-interface/#implementations) is required.
If you installed Chrome / Chromium to the custom path or use another browser, set PUPPETEER_EXECUTABLE_PATH environment variable.
```
Options:
--output, -o File name [string] [default: "index.pdf"]
```
**`$ shower publish` - Publish presentation with [GitHub Pages](https://pages.github.com/)**
```
Options:
--files, -f List of files that will get the build [array]
```
---
Licensed under [MIT License](LICENSE.md).