Feed of "bookstack/system-cli" https://codeberg.org/bookstack/system-cli A simple CLI to manage BookStack instances Mon, 13 Apr 2026 19:13:38 +0200 danb opened issue bookstack/system-cli#25 https://codeberg.org/bookstack/system-cli/issues/25 25#Download vendor: Update HTTP download functions# Default to using CURL functions if curl is enabled, otherwise fallback to direct fopen.

CURL would generally be better to use, but it might not exist.
fopen is more available, but http/URL usage may be blocked by config.

Relevant lines:

$targetFile = @fopen($targetUrl, 'rb');
if ($targetFile === false) {
throw new CommandError("Failed to download ZIP file from $targetUrl");
}

Based on input from Ionys320: https://github.com/BookStackApp/BookStack/issues/5538#issuecomment-3819764070

]]>
danb 95584642: https://codeberg.org/bookstack/system-cli/issues/25 Sat, 31 Jan 2026 14:51:23 +0100
danb closed issue bookstack/system-cli#23 https://codeberg.org/bookstack/system-cli/issues/23#issuecomment-10276536 Update init/update commands to use download-vendor instead of composer danb 95584244: https://codeberg.org/bookstack/system-cli/issues/23#issuecomment-10276536 Sat, 31 Jan 2026 14:48:15 +0100 danb commented on issue bookstack/system-cli#23 https://codeberg.org/bookstack/system-cli/issues/23#issuecomment-10276534 Update init/update commands to use download-vendor instead of composer <p dir="auto">Done in 24bbf72f6e760bf4ccc4c7ade8f0cbff029a1890</p> Done in 24bbf72f6e760bf4ccc4c7ade8f0cbff029a1890

]]>
danb 95584240: https://codeberg.org/bookstack/system-cli/issues/23#issuecomment-10276534 Sat, 31 Jan 2026 14:48:15 +0100
chilledfrogs created pull request bookstack/system-cli#24 https://codeberg.org/bookstack/system-cli/pulls/24 24#Fix trailing space in shebang# With this trailing space, execution on at least OpenBSD fails with a rather cryptic "env: php : not found" (note the trailing space)

]]>
chilledfrogs 95149720: https://codeberg.org/bookstack/system-cli/pulls/24 Thu, 29 Jan 2026 17:10:33 +0100
danb pushed to main at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/24bbf72f6e760bf4ccc4c7ade8f0cbff029a1890 <a href="https://codeberg.org/bookstack/system-cli/commit/24bbf72f6e760bf4ccc4c7ade8f0cbff029a1890">24bbf72f6e760bf4ccc4c7ade8f0cbff029a1890</a> December 2025 updates 24bbf72f6e760bf4ccc4c7ade8f0cbff029a1890 December 2025 updates]]> danb 82146726: https://codeberg.org/bookstack/system-cli/commit/24bbf72f6e760bf4ccc4c7ade8f0cbff029a1890 Sat, 20 Dec 2025 16:41:31 +0100 danb opened issue bookstack/system-cli#23 https://codeberg.org/bookstack/system-cli/issues/23 23#Update init/update commands to use download-vendor instead of composer# As referenced here: https://github.com/BookStackApp/BookStack/issues/5538#issuecomment-3567927500

Think it's tested enough for this process to be used in other parts of the CLI to be more efficient.

]]>
danb 74838162: https://codeberg.org/bookstack/system-cli/issues/23 Sun, 23 Nov 2025 13:56:55 +0100
danb pushed to main at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/31c5d2e2da2e8949ca390e61b2c06bf9cd350d98 <a href="https://codeberg.org/bookstack/system-cli/commit/31c5d2e2da2e8949ca390e61b2c06bf9cd350d98">31c5d2e2da2e8949ca390e61b2c06bf9cd350d98</a> Bumped version 31c5d2e2da2e8949ca390e61b2c06bf9cd350d98 Bumped version]]> danb 34415807: https://codeberg.org/bookstack/system-cli/commit/31c5d2e2da2e8949ca390e61b2c06bf9cd350d98 Sat, 17 May 2025 12:44:43 +0200 danb pushed to main at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/b48cc31352bd8d0b4a3ad901d78b27e5159d3ace <a href="https://codeberg.org/bookstack/system-cli/commit/b48cc31352bd8d0b4a3ad901d78b27e5159d3ace">b48cc31352bd8d0b4a3ad901d78b27e5159d3ace</a> Download Vendor: Added packages to cleanup files b48cc31352bd8d0b4a3ad901d78b27e5159d3ace Download Vendor: Added packages to cleanup files]]> danb 33887471: https://codeberg.org/bookstack/system-cli/commit/b48cc31352bd8d0b4a3ad901d78b27e5159d3ace Wed, 14 May 2025 13:45:11 +0200 danb closed issue bookstack/system-cli#22 https://codeberg.org/bookstack/system-cli/issues/22#issuecomment-4570925 MySQL connection failures when the password contains certain characters danb 33885917: https://codeberg.org/bookstack/system-cli/issues/22#issuecomment-4570925 Wed, 14 May 2025 13:27:13 +0200 danb pushed to main at bookstack/system-cli https://codeberg.org/bookstack/system-cli/compare/7ae0f5a03c990c30c2df08d526905084f2af453a...f1ee02e40713d92c1df1aa039f124ac0ca9079fe <a href="https://codeberg.org/bookstack/system-cli/commit/f1ee02e40713d92c1df1aa039f124ac0ca9079fe">f1ee02e40713d92c1df1aa039f124ac0ca9079fe</a> Supressed warnings for existing folders in tests <a href="https://codeberg.org/bookstack/system-cli/commit/019b412d81b5305819df19de892c102657ff08ab">019b412d81b5305819df19de892c102657ff08ab</a> Added escaping for MySQL config options <a href="https://codeberg.org/bookstack/system-cli/commit/86c680259923ce3675366585842890ca09004e10">86c680259923ce3675366585842890ca09004e10</a> Added test case for mysql usage with special chars f1ee02e40713d92c1df1aa039f124ac0ca9079fe Supressed warnings for existing folders in tests 019b412d81b5305819df19de892c102657ff08ab Added escaping for MySQL config options 86c680259923ce3675366585842890ca09004e10 Added test case for mysql usage with special chars]]> danb 33885680: https://codeberg.org/bookstack/system-cli/compare/7ae0f5a03c990c30c2df08d526905084f2af453a...f1ee02e40713d92c1df1aa039f124ac0ca9079fe Wed, 14 May 2025 13:26:51 +0200 danb pushed to 22-mysql-cred-escaping at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/019b412d81b5305819df19de892c102657ff08ab <a href="https://codeberg.org/bookstack/system-cli/commit/019b412d81b5305819df19de892c102657ff08ab">019b412d81b5305819df19de892c102657ff08ab</a> Added escaping for MySQL config options 019b412d81b5305819df19de892c102657ff08ab Added escaping for MySQL config options]]> danb 33884294: https://codeberg.org/bookstack/system-cli/commit/019b412d81b5305819df19de892c102657ff08ab Wed, 14 May 2025 13:13:32 +0200 danb pushed to 22-mysql-cred-escaping at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/86c680259923ce3675366585842890ca09004e10 <a href="https://codeberg.org/bookstack/system-cli/commit/86c680259923ce3675366585842890ca09004e10">86c680259923ce3675366585842890ca09004e10</a> Added test case for mysql usage with special chars 86c680259923ce3675366585842890ca09004e10 Added test case for mysql usage with special chars]]> danb 33880445: https://codeberg.org/bookstack/system-cli/commit/86c680259923ce3675366585842890ca09004e10 Wed, 14 May 2025 12:53:07 +0200 danb created branch 22-mysql-cred-escaping in bookstack/system-cli https://codeberg.org/bookstack/system-cli/src/branch/22-mysql-cred-escaping danb 33880439: https://codeberg.org/bookstack/system-cli/src/branch/22-mysql-cred-escaping Wed, 14 May 2025 12:53:06 +0200 danb opened issue bookstack/system-cli#22 https://codeberg.org/bookstack/system-cli/issues/22 22#MySQL connection failures when the password contains certain characters# Reported by B1t5murf on Discord, who confirmed issues with hashes, and that it's likely due to the lack of escaping at

$contents = "[client]\nuser={$this->user}\nhost={$this->host}\nport={$this->port}\npassword={$this->password}\nprotocol=TCP";

]]>
danb 33864776: https://codeberg.org/bookstack/system-cli/issues/22 Wed, 14 May 2025 11:51:21 +0200
danb pushed to main at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/7ae0f5a03c990c30c2df08d526905084f2af453a <a href="https://codeberg.org/bookstack/system-cli/commit/7ae0f5a03c990c30c2df08d526905084f2af453a">7ae0f5a03c990c30c2df08d526905084f2af453a</a> Updated PHP package versions 7ae0f5a03c990c30c2df08d526905084f2af453a Updated PHP package versions]]> danb 33864263: https://codeberg.org/bookstack/system-cli/commit/7ae0f5a03c990c30c2df08d526905084f2af453a Wed, 14 May 2025 11:48:17 +0200 danb deleted branch v0.3 from bookstack/system-cli https://codeberg.org/bookstack/system-cli danb 25178101: https://codeberg.org/bookstack/system-cli Wed, 12 Mar 2025 01:15:26 +0100 danb closed issue bookstack/system-cli#18 https://codeberg.org/bookstack/system-cli/issues/18#issuecomment-3021771 Update process fails when CLI itself is moved/changed danb 25178039: https://codeberg.org/bookstack/system-cli/issues/18#issuecomment-3021771 Wed, 12 Mar 2025 01:08:50 +0100 danb commented on issue bookstack/system-cli#18 https://codeberg.org/bookstack/system-cli/issues/18#issuecomment-3021769 Update process fails when CLI itself is moved/changed <p dir="auto">Closed via <a href="/bookstack/system-cli/issues/21" class="ref-issue" rel="nofollow">#21</a></p> Closed via #21

]]>
danb 25178036: https://codeberg.org/bookstack/system-cli/issues/18#issuecomment-3021769 Wed, 12 Mar 2025 01:08:48 +0100
danb closed issue bookstack/system-cli#20 https://codeberg.org/bookstack/system-cli/issues/20#issuecomment-3021768 Restore does not take into account environment options for database access danb 25178033: https://codeberg.org/bookstack/system-cli/issues/20#issuecomment-3021768 Wed, 12 Mar 2025 01:08:42 +0100 danb commented on issue bookstack/system-cli#20 https://codeberg.org/bookstack/system-cli/issues/20#issuecomment-3021766 Restore does not take into account environment options for database access <p dir="auto">Closed via <a href="/bookstack/system-cli/issues/21" class="ref-issue" rel="nofollow">#21</a></p> Closed via #21

]]>
danb 25178031: https://codeberg.org/bookstack/system-cli/issues/20#issuecomment-3021766 Wed, 12 Mar 2025 01:08:41 +0100
danb closed issue bookstack/system-cli#19 https://codeberg.org/bookstack/system-cli/issues/19#issuecomment-3021765 Backup fails in MariaDB environments with deprecation warning danb 25178029: https://codeberg.org/bookstack/system-cli/issues/19#issuecomment-3021765 Wed, 12 Mar 2025 01:08:37 +0100 danb commented on issue bookstack/system-cli#19 https://codeberg.org/bookstack/system-cli/issues/19#issuecomment-3021763 Backup fails in MariaDB environments with deprecation warning <p dir="auto">Closed via <a href="/bookstack/system-cli/issues/21" class="ref-issue" rel="nofollow">#21</a></p> Closed via #21

]]>
danb 25178027: https://codeberg.org/bookstack/system-cli/issues/19#issuecomment-3021763 Wed, 12 Mar 2025 01:08:37 +0100
danb closed issue bookstack/system-cli#12 https://codeberg.org/bookstack/system-cli/issues/12#issuecomment-3021762 Missing dependencies - mysqldump danb 25178024: https://codeberg.org/bookstack/system-cli/issues/12#issuecomment-3021762 Wed, 12 Mar 2025 01:08:24 +0100 danb commented on issue bookstack/system-cli#12 https://codeberg.org/bookstack/system-cli/issues/12#issuecomment-3021760 Missing dependencies - mysqldump <p dir="auto">Closed via <a href="/bookstack/system-cli/issues/21" class="ref-issue" rel="nofollow">#21</a></p> Closed via #21

]]>
danb 25178021: https://codeberg.org/bookstack/system-cli/issues/12#issuecomment-3021760 Wed, 12 Mar 2025 01:08:23 +0100
danb pushed to main at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/e1583768b556dee2b2b9c925fc76c4eed00014bc <a href="https://codeberg.org/bookstack/system-cli/commit/e1583768b556dee2b2b9c925fc76c4eed00014bc">e1583768b556dee2b2b9c925fc76c4eed00014bc</a> Fixed compile consuming more files than desired e1583768b556dee2b2b9c925fc76c4eed00014bc Fixed compile consuming more files than desired]]> danb 25177994: https://codeberg.org/bookstack/system-cli/commit/e1583768b556dee2b2b9c925fc76c4eed00014bc Wed, 12 Mar 2025 01:07:48 +0100 danb closed pull request bookstack/system-cli#21 https://codeberg.org/bookstack/system-cli/pulls/21#issuecomment-3021721 Changes for v0.3 danb 25177230: https://codeberg.org/bookstack/system-cli/pulls/21#issuecomment-3021721 Wed, 12 Mar 2025 00:46:15 +0100 danb pushed to main at bookstack/system-cli https://codeberg.org/bookstack/system-cli/compare/e69daa3f8d5800faee17c5d31e7616d588f6464b...2adfc62239a6c507f2553040dcf59c6e08d3553c <a href="https://codeberg.org/bookstack/system-cli/commit/2adfc62239a6c507f2553040dcf59c6e08d3553c">2adfc62239a6c507f2553040dcf59c6e08d3553c</a> DownloadVendorCommand: Added check for ZIP file access <a href="https://codeberg.org/bookstack/system-cli/commit/f9c8d259a9b7cac86b4b5e878e5ee95e545fb172">f9c8d259a9b7cac86b4b5e878e5ee95e545fb172</a> Altered mysql config passing, fixed some test issues <a href="https://codeberg.org/bookstack/system-cli/commit/4b48d9bd24b09ffe3e61d01a6c2a303c627d7a1a">4b48d9bd24b09ffe3e61d01a6c2a303c627d7a1a</a> Bumped version and updated readme command list <a href="https://codeberg.org/bookstack/system-cli/commit/b48fe53b80e6383d6bd109d6bde1ce95d4e3ac93">b48fe53b80e6383d6bd109d6bde1ce95d4e3ac93</a> Added test coverage for DownloadVendorCommand <a href="https://codeberg.org/bookstack/system-cli/commit/6e6b8f0fdbc153b672dbbf6621bc56b310c4e3ea">6e6b8f0fdbc153b672dbbf6621bc56b310c4e3ea</a> Added DownloadVendorCommand 2adfc62239a6c507f2553040dcf59c6e08d3553c DownloadVendorCommand: Added check for ZIP file access f9c8d259a9b7cac86b4b5e878e5ee95e545fb172 Altered mysql config passing, fixed some test issues 4b48d9bd24b09ffe3e61d01a6c2a303c627d7a1a Bumped version and updated readme command list b48fe53b80e6383d6bd109d6bde1ce95d4e3ac93 Added test coverage for DownloadVendorCommand 6e6b8f0fdbc153b672dbbf6621bc56b310c4e3ea Added DownloadVendorCommand]]> danb 25177115: https://codeberg.org/bookstack/system-cli/compare/e69daa3f8d5800faee17c5d31e7616d588f6464b...2adfc62239a6c507f2553040dcf59c6e08d3553c Wed, 12 Mar 2025 00:43:29 +0100 danb pushed to v0.3 at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/2adfc62239a6c507f2553040dcf59c6e08d3553c <a href="https://codeberg.org/bookstack/system-cli/commit/2adfc62239a6c507f2553040dcf59c6e08d3553c">2adfc62239a6c507f2553040dcf59c6e08d3553c</a> DownloadVendorCommand: Added check for ZIP file access 2adfc62239a6c507f2553040dcf59c6e08d3553c DownloadVendorCommand: Added check for ZIP file access]]> danb 25177113: https://codeberg.org/bookstack/system-cli/commit/2adfc62239a6c507f2553040dcf59c6e08d3553c Wed, 12 Mar 2025 00:43:20 +0100 danb pushed to v0.3 at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/f9c8d259a9b7cac86b4b5e878e5ee95e545fb172 <a href="https://codeberg.org/bookstack/system-cli/commit/f9c8d259a9b7cac86b4b5e878e5ee95e545fb172">f9c8d259a9b7cac86b4b5e878e5ee95e545fb172</a> Altered mysql config passing, fixed some test issues f9c8d259a9b7cac86b4b5e878e5ee95e545fb172 Altered mysql config passing, fixed some test issues]]> danb 25157565: https://codeberg.org/bookstack/system-cli/commit/f9c8d259a9b7cac86b4b5e878e5ee95e545fb172 Tue, 11 Mar 2025 17:55:23 +0100 danb pushed to v0.3 at bookstack/system-cli https://codeberg.org/bookstack/system-cli/commit/4b48d9bd24b09ffe3e61d01a6c2a303c627d7a1a <a href="https://codeberg.org/bookstack/system-cli/commit/4b48d9bd24b09ffe3e61d01a6c2a303c627d7a1a">4b48d9bd24b09ffe3e61d01a6c2a303c627d7a1a</a> Bumped version and updated readme command list 4b48d9bd24b09ffe3e61d01a6c2a303c627d7a1a Bumped version and updated readme command list]]> danb 25153960: https://codeberg.org/bookstack/system-cli/commit/4b48d9bd24b09ffe3e61d01a6c2a303c627d7a1a Tue, 11 Mar 2025 16:51:42 +0100