← 返回
未分类 中文

Deploy Tool

The PHP deployment tool with support for popular frameworks out of the box deploy-tool, php, deploy, deployment, php, provision.
开箱即用的PHP部署工具,支持主流框架,提供部署与环境配置功能。
bytesagain3
未分类 clawhub v2.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 495
下载
💾 3
安装
1
版本
#latest

概述

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.

CommandDescription
----------------------
run Record or view run entries
check Record or view check entries
convert Record or view convert entries
analyze Record or view analyze entries
generate Record or view generate entries
preview Record or view preview entries
batch Record or view batch entries
compare Record or view compare entries
export Record or view export entries
config Record or view config entries
status Record or view status entries
report Record or view report entries
statsShow summary statistics across all log files
search Search all log entries for a keyword (case-insensitive)
recentDisplay the 20 most recent history log entries
helpShow usage information
versionPrint 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..

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:

  1. With arguments — Timestamps the input, appends it to the command-specific log file, prints confirmation, and logs to history.log.
  2. 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 个版本

  • v2.0.0 当前
    2026-03-30 20:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Taobao Listing

bytesagain3
淘宝商品文案。宝贝标题、详情页文案、主图文案、促销活动、关键词挖掘、大促文案。Taobao listing generator with product titles, detail pages, keyword mining, promo
★ 0 📥 2,255
productivity

Thesis Helper

bytesagain3
论文写作助手。论文大纲生成、文献综述框架、摘要生成、引用格式转换、格式规范检查、答辩准备。Thesis helper with outline generation, literature review, abstract writing,
★ 1 📥 3,496
data-analysis

Database Design

bytesagain3
数据库设计助手。表设计、范式化、索引策略、迁移脚本、测试数据、ER图描述。Database designer with normalization, indexing, migration, seeding, ER diagrams. 数据
★ 2 📥 2,593