# @blog-o-matic/cli

> Exporter for Blog-o-Matic CLI

Latest version **4.5.1** (published 2019-10-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @blog-o-matic/cli
pnpm add @blog-o-matic/cli
yarn add @blog-o-matic/cli
bun add @blog-o-matic/cli
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 4.5.1 |
| Published | 2019-10-08 |
| First published | 2018-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 89.7 KB |
| Known vulnerabilities | 0 (+7 in 3 direct dependencies) |
| Install scripts | no |
| Author | Ben Pevsner |
| Maintainers | ivebencrazy |

## Links

- npm: https://www.npmjs.com/package/@blog-o-matic/cli
- Repository: https://github.com/ivebencrazy/blog-o-matic
- Homepage: https://github.com/ivebencrazy/blog-o-matic#readme
- Issues: https://github.com/ivebencrazy/blog-o-matic/issues
- npm.io page: https://npm.io/package/@blog-o-matic/cli

## Dependencies (10)

- [ejs](https://npm.io/package/ejs.md) ^2.7.1
- [sharp](https://npm.io/package/sharp.md) ^0.23.0
- [yargs](https://npm.io/package/yargs.md) ^14.0.0
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.528.0
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.13.1
- [inquirer](https://npm.io/package/inquirer.md) ^7.0.0
- [minimatch](https://npm.io/package/minimatch.md) ^3.0.4
- [remarkable](https://npm.io/package/remarkable.md) ^2.0.0
- [@civility/utilities](https://npm.io/package/@civility/utilities.md) ^0.2.1
- [@blog-o-matic/editor](https://npm.io/package/@blog-o-matic/editor.md) ^4.5.1

## Recent versions

- 4.5.1 (latest) — 2019-10-08
- 4.5.0 — 2019-10-08
- 4.4.3 — 2019-09-19
- 4.4.2 — 2019-09-19
- 4.4.1 — 2019-09-16
- 4.3.7 — 2019-02-06
- 4.3.6 — 2019-02-04
- 4.3.5 — 2019-02-03
- 4.3.4 — 2019-02-01
- 4.3.1 — 2019-01-28
- 4.3.0 — 2019-01-21
- 4.2.5 — 2019-01-11
- 4.2.4 — 2019-01-10
- 4.2.3 — 2019-01-10
- 4.1.0 — 2018-12-25
- … 4 more at https://npm.io/package/@blog-o-matic/cli/versions

## README

Blog-o-Matic CLI
================
The Blog-o-Matic CLI tool is for syncing your blog to your computer's filesystem

## API
| Command | Description |
|---|---|
| `blog init` | Generate a blog |
| `blog post` | Generate a blog post |
| `blog preview` | Open a server for blog content |
| `blog publish` | Build blog, and push, depending on blog.config.yml settings |
| `blog publish --fs --s3` | Publish both via fs and s3 |

## Unimplemented
We should have publish settings:
```sh
blog publish ./resources/my-image-1.jpg   # Re-upload a file.
blog publish ./posts/my-post-1.md --force # Upload files related to a post
blog publish --force                      # Re-upload all files
```

We should be able to specify more in args:
```sh
blog init ./my-blog
blog post ./my-post
```

We should be able to convert a non-post markdown file into a post:
```sh
blog post ./my-post.md
```

## Publish Flow
### Generate Blog
The important thing to take note of is generation of blog.config.yml

### Compiler
This should be publisher-agnostic
Input: Local directory location
- Take note of all the locations of local files.
- Do all transformations.
Ouput: Array of upload objects (File data + Relative file location strings)

### Publisher
Input: Remote info, publish array
- Run validation on each upload object.
- Complete actual upload of file

---
_Source: https://npm.io/package/@blog-o-matic/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
