# docker-version-cli

> A simple Docker tagging and publishing tool

Latest version **1.0.2** (published 2019-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install docker-version-cli
pnpm add docker-version-cli
yarn add docker-version-cli
bun add docker-version-cli
```

Provides the command `docker-version`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-01-12 |
| First published | 2019-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 41.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | metowolf |
| Maintainers | metowolf |

## Links

- npm: https://www.npmjs.com/package/docker-version-cli
- Repository: https://github.com/metowolf/docker-version
- Homepage: https://github.com/metowolf/docker-version#readme
- Issues: https://github.com/metowolf/docker-version/issues
- npm.io page: https://npm.io/package/docker-version-cli

## Dependencies (4)

- [ora](https://npm.io/package/ora.md) ^3.0.0
- [execa](https://npm.io/package/execa.md) ^1.0.0
- [inquirer](https://npm.io/package/inquirer.md) ^6.2.1
- [commander](https://npm.io/package/commander.md) ^2.19.0

## Recent versions

- 1.0.2 (latest) — 2019-01-12
- 1.0.1 — 2019-01-05
- 1.0.0 — 2019-01-04

## README

# Docker Version [![Version](https://img.shields.io/npm/v/docker-version-cli.svg?style=flat-square)](https://www.npmjs.com/package/docker-version-cli)

> A simple Docker tagging and publishing tool

<p align="center">
	<br>
	<img src="screenshot.svg" width="500">
	<br>
</p>

## Install

```bash
$ npm i docker-version-cli -g
```
or

```bash
$ yarn global add docker-version-cli
```

## Usage

```bash
$ docker-version --help
Usage: docker-version [options]

Options:
  -V, --version      output the version number
  -n, --name [name]  Docker images name (default: "")
  -t, --tag [tag]    Docker images tag/version (default: "")
  -h, --help         output usage information
```

## Configuration

put `.docker-version` file into your docker project

```bash
$ cat .docker-version

php:latest-fpm-alpine
php:latest-cli-alpine
```

### Example

pull alpine:latest and tag 3.8, 3, current for it.

```bash
$ docker-version -n alpine:latest -t 3.8

[success] pull alpine:latest
[success] tag alpine:3.8
[success] push alpine:3.8
[success] tag alpine:3
[success] push alpine:3
[success] tag alpine:current
[success] push alpine:current
```

or interactive

```bash
$ docker-version

? what is your docker images name? alpine:latest
? what is your docker images latest version? 3.8

[success] pull alpine:latest
[success] tag alpine:3.8
[success] push alpine:3.8
[success] tag alpine:3
[success] push alpine:3
[success] tag alpine:current
[success] push alpine:current
```

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