macOS Toolkit
Macos Toolkit v2.0.0 — a utility toolkit for managing, analyzing, converting, and processing data from the command line. Supports run, check, convert, analyze, generate, preview, batch, compare, export, config, status, and report operations — all tracked with timestamped entries stored locally.
Commands
Run scripts/script.sh <command> [args] to use.
| Command |
Description |
run <input> |
Record a run entry. Without args, shows the 20 most recent run entries. |
check <input> |
Record a check entry. Without args, shows recent check entries. |
convert <input> |
Record a conversion entry. Without args, shows recent convert entries. |
analyze <input> |
Record an analysis entry. Without args, shows recent analyze entries. |
generate <input> |
Record a generation entry. Without args, shows recent generate entries. |
preview <input> |
Record a preview entry. Without args, shows recent preview entries. |
batch <input> |
Record a batch processing entry. Without args, shows recent batch entries. |
compare <input> |
Record a comparison entry. Without args, shows recent compare entries. |
export <input> |
Record an export entry. Without args, shows recent export entries. |
config <input> |
Record a configuration entry. Without args, shows recent config entries. |
status <input> |
Record a status entry. Without args, shows recent status entries. |
report <input> |
Record a report entry. Without args, shows recent report entries. |
stats |
Show summary statistics across all entry types (counts, data size). |
search <term> |
Search all log files for a term (case-insensitive). |
recent |
Show the 20 most recent entries from the activity history. |
help |
Show help message with all available commands. |
version |
Show version string (macos-toolkit v2.0.0). |
Data Storage
All data is stored in ~/.local/share/macos-toolkit/:
- Each command type writes to its own
.log file (e.g., run.log, check.log, convert.log)
- Entries are timestamped in
YYYY-MM-DD HH:MM|<value> format
- A unified
history.log tracks all actions across command types
- Export files are written to the same directory as
export.json, export.csv, or export.txt
Requirements
- Bash 4+ with
set -euo pipefail
- Standard Unix utilities (
date, wc, du, tail, grep, sed, cat)
- No external dependencies — works out of the box on Linux and macOS
When to Use
- System checks and diagnostics — use
check and analyze to record system health checks, diagnostic results, and analysis findings on your Mac
- File conversion tracking — log
convert operations when batch-converting file formats, encoding, or data transformations
- Configuration management — use
config to track system configuration changes and status to record current system states for auditing
- Batch processing workflows — record
batch and generate entries to document automated processing pipelines and their outputs
- Reporting and export — use
report to log generated reports and export accumulated data to JSON, CSV, or TXT for sharing or archival
Examples
# Record a system check
macos-toolkit check "Homebrew packages up to date, 142 installed"
# Log a file conversion operation
macos-toolkit convert "Converted 50 HEIC photos to JPEG format"
# Analyze disk usage
macos-toolkit analyze "SSD: 234GB used / 500GB total, 47% capacity"
# Record a batch operation
macos-toolkit batch "Resized 200 images to 1080p for web deployment"
# Search across all entries
macos-toolkit search "disk"
# Export all data as JSON
macos-toolkit export json
# View summary statistics
macos-toolkit stats
Output
All commands print results to stdout. Each recording command confirms the save and shows the total entry count for that category. Redirect output to a file with:
macos-toolkit stats > report.txt
Configuration
Set the DATA_DIR inside the script or modify the default path ~/.local/share/macos-toolkit/ to change where data is stored.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
1---
2version: "1.0.0"
3name: mac-cli
4description: " macOS command line tool for developers – The ultimate tool to manage your Mac. It provides a huge mac cli, shell, bash, cli, command-line-tool, linux."
5metadata:
6 source: https://skillmd.com/skills/bytesagain/mac-cli
7---
8
9# macOS Toolkit
10
11Macos Toolkit v2.0.0 — a utility toolkit for managing, analyzing, converting, and processing data from the command line. Supports run, check, convert, analyze, generate, preview, batch, compare, export, config, status, and report operations — all tracked with timestamped entries stored locally.
12
13## Commands
14
15Run `scripts/script.sh <command> [args]` to use.
16
17| Command | Description |
18|---------|-------------|
19| `run <input>` | Record a run entry. Without args, shows the 20 most recent run entries. |
20| `check <input>` | Record a check entry. Without args, shows recent check entries. |
21| `convert <input>` | Record a conversion entry. Without args, shows recent convert entries. |
22| `analyze <input>` | Record an analysis entry. Without args, shows recent analyze entries. |
23| `generate <input>` | Record a generation entry. Without args, shows recent generate entries. |
24| `preview <input>` | Record a preview entry. Without args, shows recent preview entries. |
25| `batch <input>` | Record a batch processing entry. Without args, shows recent batch entries. |
26| `compare <input>` | Record a comparison entry. Without args, shows recent compare entries. |
27| `export <input>` | Record an export entry. Without args, shows recent export entries. |
28| `config <input>` | Record a configuration entry. Without args, shows recent config entries. |
29| `status <input>` | Record a status entry. Without args, shows recent status entries. |
30| `report <input>` | Record a report entry. Without args, shows recent report entries. |
31| `stats` | Show summary statistics across all entry types (counts, data size). |
32| `search <term>` | Search all log files for a term (case-insensitive). |
33| `recent` | Show the 20 most recent entries from the activity history. |
34| `help` | Show help message with all available commands. |
35| `version` | Show version string (`macos-toolkit v2.0.0`). |
36
37## Data Storage
38
39All data is stored in `~/.local/share/macos-toolkit/`:
40
41- Each command type writes to its own `.log` file (e.g., `run.log`, `check.log`, `convert.log`)
42- Entries are timestamped in `YYYY-MM-DD HH:MM|<value>` format
43- A unified `history.log` tracks all actions across command types
44- Export files are written to the same directory as `export.json`, `export.csv`, or `export.txt`
45
46## Requirements
47
48- Bash 4+ with `set -euo pipefail`
49- Standard Unix utilities (`date`, `wc`, `du`, `tail`, `grep`, `sed`, `cat`)
50- No external dependencies — works out of the box on Linux and macOS
51
52## When to Use
53
541. **System checks and diagnostics** — use `check` and `analyze` to record system health checks, diagnostic results, and analysis findings on your Mac
552. **File conversion tracking** — log `convert` operations when batch-converting file formats, encoding, or data transformations
563. **Configuration management** — use `config` to track system configuration changes and `status` to record current system states for auditing
574. **Batch processing workflows** — record `batch` and `generate` entries to document automated processing pipelines and their outputs
585. **Reporting and export** — use `report` to log generated reports and export accumulated data to JSON, CSV, or TXT for sharing or archival
59
60## Examples
61
62```bash
63# Record a system check
64macos-toolkit check "Homebrew packages up to date, 142 installed"
65
66# Log a file conversion operation
67macos-toolkit convert "Converted 50 HEIC photos to JPEG format"
68
69# Analyze disk usage
70macos-toolkit analyze "SSD: 234GB used / 500GB total, 47% capacity"
71
72# Record a batch operation
73macos-toolkit batch "Resized 200 images to 1080p for web deployment"
74
75# Search across all entries
76macos-toolkit search "disk"
77
78# Export all data as JSON
79macos-toolkit export json
80
81# View summary statistics
82macos-toolkit stats
83```
84
85## Output
86
87All commands print results to stdout. Each recording command confirms the save and shows the total entry count for that category. Redirect output to a file with:
88
89```bash
90macos-toolkit stats > report.txt
91```
92
93## Configuration
94
95Set the `DATA_DIR` inside the script or modify the default path `~/.local/share/macos-toolkit/` to change where data is stored.
96
97---
98Powered by BytesAgain | bytesagain.com | hello@bytesagain.com