Deploy Tool
Deploy Tool v2.0.0 — a utility toolkit for logging, tracking, and managing deployment-related entries from the command line.
Commands
All commands accept optional input arguments. Without arguments, they display recent entries from the corresponding log. With arguments, they record a new timestamped entry.
| Command |
Description |
run <input> |
Record or view run entries |
check <input> |
Record or view check entries |
convert <input> |
Record or view convert entries |
analyze <input> |
Record or view analyze entries |
generate <input> |
Record or view generate entries |
preview <input> |
Record or view preview entries |
batch <input> |
Record or view batch entries |
compare <input> |
Record or view compare entries |
export <input> |
Record or view export entries |
config <input> |
Record or view config entries |
status <input> |
Record or view status entries |
report <input> |
Record or view report entries |
stats |
Show summary statistics across all log files |
search <term> |
Search all log entries for a keyword (case-insensitive) |
recent |
Display the 20 most recent history log entries |
help |
Show usage information |
version |
Print version (v2.0.0) |
Data Storage
All data is stored locally in ~/.local/share/deploy-tool/:
- Per-command logs — Each command (run, check, convert, etc.) writes to its own
.log file with pipe-delimited timestamp|value format.
- history.log — A unified activity log recording every write operation with timestamps.
- Export formats — The
export utility function supports JSON, CSV, and TXT output, written to ~/.local/share/deploy-tool/export.<fmt>.
No external services, databases, or API keys are required. Everything is flat-file and human-readable.
Requirements
- Bash (v4+ recommended)
- No external dependencies — uses only standard Unix utilities (
date, wc, du, tail, grep, sed, basename, cat)
When to Use
- When you need to log and track deployment-related activities from the command line
- To maintain a searchable history of deployment operations
- For batch recording of deployment tasks with timestamps
- When you want to export deployment logs in JSON, CSV, or TXT format
- As part of a larger automation pipeline for tracking deployment workflows
- To get quick statistics and summaries of past deployment activities
Examples
# Record a new run entry
deploy-tool run "deployed v1.2.3 to production"
# View recent run entries (no args = show history)
deploy-tool run
# Check something and log it
deploy-tool check "nginx config validated"
# Analyze and record
deploy-tool analyze "memory usage at 72%"
# Search across all logs
deploy-tool search "production"
# View summary statistics
deploy-tool stats
# Show recent activity across all commands
deploy-tool recent
# Show tool version
deploy-tool version
# Show full help
deploy-tool help
How It Works
Each command follows the same pattern:
- With arguments — Timestamps the input, appends it to the command-specific log file, prints confirmation, and logs to
history.log.
- Without arguments — Shows the last 20 entries from that command's log file.
The stats command iterates all .log files, counts entries per file, and reports totals plus disk usage. The search command performs case-insensitive grep across all log files. The recent command tails the last 20 lines of history.log.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
1---2name: deployer-23description: The PHP deployment tool with support for popular frameworks out of the box deploy-tool, php, deploy, deployment, php, provision.4---5
6# Deploy Tool
7
8Deploy Tool v2.0.0 — a utility toolkit for logging, tracking, and managing deployment-related entries from the command line.
9
10## Commands
11
12All commands accept optional input arguments. Without arguments, they display recent entries from the corresponding log. With arguments, they record a new timestamped entry.
13
14| Command | Description |
15|---------|-------------|
16| `run <input>` | Record or view run entries |
17| `check <input>` | Record or view check entries |
18| `convert <input>` | Record or view convert entries |
19| `analyze <input>` | Record or view analyze entries |
20| `generate <input>` | Record or view generate entries |
21| `preview <input>` | Record or view preview entries |
22| `batch <input>` | Record or view batch entries |
23| `compare <input>` | Record or view compare entries |
24| `export <input>` | Record or view export entries |
25| `config <input>` | Record or view config entries |
26| `status <input>` | Record or view status entries |
27| `report <input>` | Record or view report entries |
28| `stats` | Show summary statistics across all log files |
29| `search <term>` | Search all log entries for a keyword (case-insensitive) |
30| `recent` | Display the 20 most recent history log entries |
31| `help` | Show usage information |
32| `version` | Print version (v2.0.0) |
33
34## Data Storage
35
36All data is stored locally in `~/.local/share/deploy-tool/`:
37
38- **Per-command logs** — Each command (run, check, convert, etc.) writes to its own `.log` file with pipe-delimited `timestamp|value` format.
39- **history.log** — A unified activity log recording every write operation with timestamps.
40- **Export formats** — The `export` utility function supports JSON, CSV, and TXT output, written to `~/.local/share/deploy-tool/export.<fmt>`.
41
42No external services, databases, or API keys are required. Everything is flat-file and human-readable.
43
44## Requirements
45
46- **Bash** (v4+ recommended)
47- No external dependencies — uses only standard Unix utilities (`date`, `wc`, `du`, `tail`, `grep`, `sed`, `basename`, `cat`)
48
49## When to Use
50
51- When you need to log and track deployment-related activities from the command line
52- To maintain a searchable history of deployment operations
53- For batch recording of deployment tasks with timestamps
54- When you want to export deployment logs in JSON, CSV, or TXT format
55- As part of a larger automation pipeline for tracking deployment workflows
56- To get quick statistics and summaries of past deployment activities
57
58## Examples
59
60```bash
61# Record a new run entry
62deploy-tool run "deployed v1.2.3 to production"
63
64# View recent run entries (no args = show history)
65deploy-tool run
66
67# Check something and log it
68deploy-tool check "nginx config validated"
69
70# Analyze and record
71deploy-tool analyze "memory usage at 72%"
72
73# Search across all logs
74deploy-tool search "production"
75
76# View summary statistics
77deploy-tool stats
78
79# Show recent activity across all commands
80deploy-tool recent
81
82# Show tool version
83deploy-tool version
84
85# Show full help
86deploy-tool help
87```
88
89## How It Works
90
91Each command follows the same pattern:
921. **With arguments** — Timestamps the input, appends it to the command-specific log file, prints confirmation, and logs to `history.log`.
932. **Without arguments** — Shows the last 20 entries from that command's log file.
94
95The `stats` command iterates all `.log` files, counts entries per file, and reports totals plus disk usage. The `search` command performs case-insensitive grep across all log files. The `recent` command tails the last 20 lines of `history.log`.
96
97---
98
99Powered by BytesAgain | bytesagain.com | hello@bytesagain.com