Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

jctl

The jctl and pkgctl cli tools have been moved into python-jamf. Install jctl by installing python-jamf.

Introduction

jctl is a command line tool that performs CRUD (Create/Read/Update/Delete) operations on a Jamf Pro or Jamf Cloud server. It can automate repetitive tasks and provide options not available in the web GUI. It uses and is the primary driver of python-jamf, which is a Python 3 module for the Jamf Pro Classic API.

There are a few other tools that are part of this project. pkgctl is automates various operations with packages, such as promotion and creating patch definitions. patch.py is a deprecated script designed to automate the patching process. It is still part of the project because it can do a few things that jctl can't. However, it is not being tested. update_asset_tags.py was demoed at the 2021 JNUC presentation Turn 1000 clicks into 1 with python-jamf and jctl. We decided to include it here. It is not being tested either.

jctl only supports 56 Jamf Pro record types. python-jamf can access all record types. python-jamf stores the Jamf Pro credentials in the keychain using keyring (instead of cleartext, like all other Jamf API projects that we know of).

Quick Start

If you don't have Python installed, you need to read about Installing Python on the wiki.

Installing

  • Install Module & Requirements: sudo pip3 install jctl
  • On your Jamf Pro server create a Jamf Pro API User
  • Config: conf-python-jamf
  • Enter hostname, username, and password
  • Test: conf-python-jamf -t

Uninstalling

Uninstalling jctl is easy if you installed it via pip. pip is the Package Installer for Python.

To uninstall jctl run the following command:

sudo pip3 uninstall jctl

Upgrading

Upgrading jctl is easy if you installed it via pip. pip is the Package Installer for Python.

To upgrade jctl run the following command:

sudo pip3 install --upgrade jctl

Getting Help

Wiki

More Documentation

For further in-depth details please check out the wiki.

Searching the wiki

To search this wiki use the "Search" field in the GitHub navigation bar above. Then on the search results page select the "Wiki" option or click here and search.

MacAdmin Slack Channel

If you have additional questions, or need more help getting started, post a question on the MacAdmin's Slack jctl channel.

MacAdmin's Slack Logo

Latest Status

See the releases page for details.

See jctl upgrade documentation to upgrade to latest release.

Metadata

Release files for jctl 1.1.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jctl 1.1.24
File Size Uploaded
jctl-1.1.24.tar.gz 17.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jctl 1.1.24
File Interpreter ABI Platform
jctl-1.1.24-py3-none-any.whl Python 3 none any Details

Total release size: 36.0 kB

Release files / jctl-1.1.24.tar.gz

Download URL jctl-1.1.24.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
530e61c92f2fadc5654448516727b9f27de1088111284beb44a76faa26ee9f78
BLAKE2b-256 checksum
How to use checksums
d4ef3de653bea2022460cd395e12dab58adfc175479e34dd29fc2bc19e4e12a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / jctl-1.1.24-py3-none-any.whl

Download URL jctl-1.1.24-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0ae2fb72148043f329d1e41726d3089bd5009473996a9f33cf2f00e2970216f
BLAKE2b-256 checksum
How to use checksums
9f78de9c31e3a1017d007f32b0f78c11b02397f61ef1c138e324f0f2ad13c16d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page