CLI Commands — occ ghl:* for sync and testing #4

Open
opened 2026-07-13 04:28:43 +00:00 by francois · 0 comments
Owner

Problem

No CLI interface exists. Admin must use the web UI to trigger sync or test connection.

Requirements

  • occ ghl:sync [--type=all|contacts|calendar|opportunities|files] — trigger sync for one or all entities with verbose output
  • occ ghl:test-connection — test GHL API connectivity and display result
  • occ ghl:status — show sync status (last sync time, per-entity counts)
  • Use NC console command infrastructure OCP\Command\Command

Files to create

  • lib/Command/SyncCommand.php
  • lib/Command/TestConnectionCommand.php
  • lib/Command/StatusCommand.php
  • Update appinfo/info.xml to register commands

Acceptance

  • All three commands work and produce useful output
  • Sync command supports --type filter
  • Commands handle errors gracefully
  • Help text is informative
## Problem No CLI interface exists. Admin must use the web UI to trigger sync or test connection. ## Requirements - `occ ghl:sync [--type=all|contacts|calendar|opportunities|files]` — trigger sync for one or all entities with verbose output - `occ ghl:test-connection` — test GHL API connectivity and display result - `occ ghl:status` — show sync status (last sync time, per-entity counts) - Use NC console command infrastructure ``OCP\Command\Command`` ## Files to create - `lib/Command/SyncCommand.php` - `lib/Command/TestConnectionCommand.php` - `lib/Command/StatusCommand.php` - Update `appinfo/info.xml` to register commands ## Acceptance - [ ] All three commands work and produce useful output - [ ] Sync command supports --type filter - [ ] Commands handle errors gracefully - [ ] Help text is informative
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
partage/ghl-nextcloud-integration#4
No description provided.