AxM Jamf Sync 3.0: command-line mode for launchd, and an update checker

AxM Jamf Sync 3.0 adds a --silent flag that runs a full AppleCare to Jamf Pro sync with no window, a sample LaunchAgent, exit codes and an update checker.

Until now, an unattended sync in AxM Jamf Sync meant leaving the app running with its built-in scheduler. Version 3.0 adds a command-line mode, so launchd or a script can run the sync whether or not the app is open.

Command-line mode

Run the app’s binary with --silent:

"/Applications/AxM Jamf Sync.app/Contents/MacOS/AxM Jamf Sync" --silent

That runs a full sync of every environment with no window, no Dock icon and no notifications, then exits. It is the same signed app, using the environments, credentials, cache and settings you have already set up.

To sync only some environments, name them:

"/Applications/AxM Jamf Sync.app/Contents/MacOS/AxM Jamf Sync" --silent --env Production --env Staging
Flag Meaning
--silent Run in command-line mode: sync, then exit
--env <name> Sync only this environment, by name or ID. Repeat for several
--help, -h Print usage and exit
--gui Open the normal window, even when started from a terminal

How a run behaves

  • Environments run one at a time through the same queue the app uses
  • If the app or another run is already syncing an environment, that environment is skipped, not run twice
  • Ctrl + C, or launchd stopping the job, saves partial progress before exiting
  • If the app is open when a run finishes, it reloads the new data without a restart

Exit codes

Code Meaning
0 Success, or every environment was skipped
1 Partial: some data was written, but the run was not complete
2 Failed
3 Cancelled
64 Bad usage: unknown or misplaced argument
78 No environment configured, or --env matched none

Logs

Command-line runs write to the same log files as the app. Every line is now tagged [CLI] or [GUI], so you can tell which one wrote it. If a scheduled run fails before it starts, for example because no environment exists yet, the app shows a one-time alert the next time you open it.

Scheduling with launchd

A sample LaunchAgent for a daily sync is in the repository under docs/launchd/. The app is sandboxed and cannot install it for you, so copy it into place yourself:

cp com.karthikmac.axmjamfsync.silent.plist ~/Library/LaunchAgents/
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/com.karthikmac.axmjamfsync.silent.plist

# Run it once now, to test
launchctl kickstart -k gui/$(id -u)/com.karthikmac.axmjamfsync.silent

# Check what happened
launchctl print gui/$(id -u)/com.karthikmac.axmjamfsync.silent | grep -E "state|last exit code|runs"

Edit Hour and Minute under StartCalendarInterval to set your own time.

launchd or the in-app scheduler?

In-app scheduler launchd with --silent
Needs the app open Yes No
Editing a schedule Settings, or a cron expression Edit the plist and reload it
Notifications Yes No

Use one or the other. They do not coordinate, so running both gives you duplicate syncs.

Update checker

The app now checks GitHub for a newer release once a day, or on demand from AxM Jamf Sync → Check for Updates. A newer version shows as Update Available in the menu bar. It never downloads or installs anything by itself. It tells you a release exists and opens its page.

Reliability fixes

  • A background sync no longer fails outright when Jamf is not configured or cannot authenticate. Devices with coverage waiting to be written stay pending and the run finishes normally.
  • Opening the app can no longer silently end a command-line sync that is already running.
  • Saving new Jamf credentials no longer starts a sync by itself.

Existing credentials, cache and preferences carry over unchanged. Download it from the v3.0 release.

Updates in the 3.x series

3.1: devices deleted from Jamf (6 October 2026)

Devices removed from Jamf Pro after a migration, sale or disposal used to stay in the app’s cache and fail with HTTP 404 on every sync. From 3.1, after a complete Jamf fetch, serial numbers that Jamf no longer returns are cleaned up:

  • A device still in ABM/ASM is kept as AxM Only, with its coverage data and a note saying when it left Jamf
  • A device that existed only in Jamf is removed
  • If an unusually large number of devices appear to be missing, the clean-up is skipped with a warning, so an incomplete Jamf fetch cannot unlink your whole cache
  • A 404 on write-back is recorded as skipped, not failed

The CSV export also gained a Coverage Type column (the AppleCare plan, or Limited Warranty) and an optional Coverage Start Date column.

To clear devices already deleted from Jamf, run one sync with Force Refresh Devices turned on.

Previous in the series: AxM Jamf Sync 2.0. For a full walkthrough of the app, read the overview and setup guide. For what came next, see AxM Jamf Sync 3.2.