Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.3.2 instead.
Reason given by maintainers: Ships with no working commands; missing click dependency. Use 1.2.1.

getjobber-cli

PyPI version License: MIT Python versions CI

Built and maintained by DC Tree Cutting, an Eastern North Carolina tree service.

A portable, Python-based CLI tool that provides terminal access to the GetJobber CRM GraphQL API.

Table of Contents

⚠️ Important

Please read our Privacy Policy and Terms of Use before using this tool.

This tool is provided as-is with no warranties. You use it at your own risk. We collect no data and assume no liability for any impact to your GetJobber account.

Write commands are temporarily disabled

As of v1.1.0 this CLI is read-only. Jobber's current GraphQL schema reworked the write surface: several mutations the write commands used (invoiceSend, quoteSend, quoteApprove, jobComplete) no longer exist, and the create mutations now require nested inputs the commands don't yet collect. Rather than fail with cryptic GraphQL errors, the eleven write commands below exit immediately with an explanatory message:

clients create · clients update · clients delete · jobs create · jobs update · jobs complete · quotes create · quotes send · quotes approve · invoices create · invoices send

Everything else — list, get, search, query, and all authentication and configuration commands — is fully supported against the current schema. The write redesign is planned for v1.3.0.

Features

  • OAuth 2.0 Authentication - Secure browser-based authentication with automatic token refresh
  • Client Management - List, retrieve, and search clients (write commands pending v1.3.0)
  • Job Management - List and retrieve jobs (write commands pending v1.3.0)
  • Quote Management - List and retrieve quotes (write commands pending v1.3.0)
  • Invoice Management - List and retrieve invoices (write commands pending v1.3.0)
  • Raw GraphQL Queries - Execute custom GraphQL queries directly
  • Multiple Output Formats - Table, JSON, CSV, and YAML output formats
  • Secure Token Storage - OS-level keychain integration (macOS Keychain, Windows Credential Manager, Linux Secret Service)

About this tool

getjobber-cli was originally built by DC Tree Cutting and Land Service — an Eastern North Carolina tree service operating from Rocky Mount and Goldsboro across nine counties — to automate internal workflows on top of the Jobber field-service platform. It is released as open source under the MIT License for any Jobber customer or developer who wants terminal access to the Jobber GraphQL API.

Requirements

  • Python 3.10 or higher
  • GetJobber account with OAuth app credentials

Targets Jobber GraphQL API version 2026-05-12, sent via the X-JOBBER-GRAPHQL-VERSION header and defined once as API_VERSION in src/getjobber_cli/constants.py.

2026-05-12 was Jobber's latest active version when checked against Jobber's changelog on 2026-09-23. Jobber supports a version for a minimum of 12 months and keeps it accessible for up to 18 months from its release date, after which requests are silently upgraded to the oldest supported version — so this pin is worth re-checking periodically, and the changelog is the place to do it.

Installation

From Source

# Clone the repository (or navigate to the project directory)
cd getjobber-cli

# Install in development mode
pip install -e .

Via pip

pip install getjobber-cli

Quick Start

1. Set up OAuth Credentials

First, you need to create an OAuth app in your GetJobber account:

  1. Log in to your GetJobber account at https://app.getjobber.com
  2. Navigate to Settings → Developer Center
  3. Click "Create New App"
  4. Fill in app details:
    • App Name: "getjobber-cli" (or your preferred name)
    • Redirect URI: http://localhost:8888/callback
    • Scopes: Select the scopes you need (clients:read, clients:write, jobs:read, etc.)
  5. Click "Create App" and copy your Client ID and Client Secret

2. Configure the CLI

# Set your OAuth credentials
getjobber-cli config set client_id YOUR_CLIENT_ID
getjobber-cli config set client_secret YOUR_CLIENT_SECRET

# Verify configuration
getjobber-cli config list

3. Authenticate

# Start OAuth login flow (will open browser)
getjobber-cli login

# Check authentication status
getjobber-cli auth status

4. Start Using

# List all clients
getjobber-cli clients list

# Get client details
getjobber-cli clients get CLIENT_ID

# Search clients
getjobber-cli clients search "company name"

# List jobs
getjobber-cli jobs list

# Execute a raw GraphQL query
getjobber-cli query '{ clients(first: 5) { nodes { id firstName lastName } } }'

Command Reference

Authentication Commands

# Login with OAuth
getjobber-cli login

# Logout
getjobber-cli logout

# Check authentication status
getjobber-cli auth status

# Manually refresh token
getjobber-cli auth refresh

Client Commands

# List clients
getjobber-cli clients list
getjobber-cli clients list --limit=50 --format=json

# Get client details
getjobber-cli clients get CLIENT_ID

# Create client (interactive) - pending v1.3.0
getjobber-cli clients create

# Create client (with flags) - pending v1.3.0
getjobber-cli clients create \
  --first-name="John" \
  --last-name="Doe" \
  --email="john@example.com" \
  --phone="555-1234"

# Update client - pending v1.3.0
getjobber-cli clients update CLIENT_ID --email="newemail@example.com"

# Search clients
getjobber-cli clients search "company name"

# Delete client - pending v1.3.0
getjobber-cli clients delete CLIENT_ID

Job Commands

# List jobs
getjobber-cli jobs list
getjobber-cli jobs list --status=active

# Get job details
getjobber-cli jobs get JOB_ID

# Create job - pending v1.3.0
getjobber-cli jobs create --client-id=CLIENT_ID --title="Lawn Maintenance"

# Update job - pending v1.3.0
getjobber-cli jobs update JOB_ID --title="Updated Title"

# Complete job - pending v1.3.0
getjobber-cli jobs complete JOB_ID

Quote Commands

# List quotes
getjobber-cli quotes list
getjobber-cli quotes list --status=draft

# Get quote details
getjobber-cli quotes get QUOTE_ID

# Create quote - pending v1.3.0
getjobber-cli quotes create --client-id=CLIENT_ID --title="Service Quote"

# Send quote to client - pending v1.3.0
getjobber-cli quotes send QUOTE_ID

# Approve quote - pending v1.3.0
getjobber-cli quotes approve QUOTE_ID

Invoice Commands

# List invoices
getjobber-cli invoices list
getjobber-cli invoices list --unpaid

# Get invoice details
getjobber-cli invoices get INVOICE_ID

# Create invoice from job - pending v1.3.0
getjobber-cli invoices create --job-id=JOB_ID --subject="Service Invoice"

# Create invoice for client - pending v1.3.0
getjobber-cli invoices create --client-id=CLIENT_ID --subject="Invoice"

# Send invoice to client - pending v1.3.0
getjobber-cli invoices send INVOICE_ID

Raw GraphQL Query

# Execute inline query
getjobber-cli query '{ clients(first: 5) { nodes { id firstName lastName } } }'

# Execute query from file
getjobber-cli query --file=query.graphql

# Interactive query (opens editor)
getjobber-cli query --interactive

Configuration Commands

# Set configuration value
getjobber-cli config set KEY VALUE

# Get configuration value
getjobber-cli config get KEY

# List all configuration
getjobber-cli config list

# Reset to defaults
getjobber-cli config reset

Output Formats

All list commands support multiple output formats:

# Table format (default, human-readable)
getjobber-cli clients list --format=table

# JSON format (machine-readable)
getjobber-cli clients list --format=json

# CSV format (spreadsheet export)
getjobber-cli clients list --format=csv

# YAML format
getjobber-cli clients list --format=yaml

Configuration

Configuration is stored in ~/.getjobber/config.json:

{
  "client_id": "your_client_id",
  "client_secret": "your_client_secret",
  "default_output_format": "table",
  "items_per_page": 20
}

Token Storage

Authentication tokens are stored securely using the OS keychain:

  • macOS: Keychain
  • Windows: Credential Manager
  • Linux: Secret Service

If the keychain is unavailable, tokens fall back to ~/.getjobber/credentials.enc. That file is not encrypted, despite its .enc name: it holds the access and refresh tokens as plain JSON. Its only protection is filesystem permissions — the file is mode 0600 and the directory 0700, so it is readable by your user account alone. Anything running as your user, or any backup that copies the file, can read those tokens. Prefer a working keychain where you can, and treat this file as a secret if you cannot.

Troubleshooting

"Not authenticated" error

Run getjobber-cli login to authenticate.

"OAuth credentials not configured" error

Configure your OAuth credentials:

getjobber-cli config set client_id YOUR_CLIENT_ID
getjobber-cli config set client_secret YOUR_CLIENT_SECRET

Browser doesn't open during login

If the browser doesn't open automatically, copy the URL from the terminal and paste it into your browser.

Token expired

Expired tokens are renewed automatically. When a command finds the access token expired, it exchanges the stored refresh token for a new one and carries on, so you should not normally see an expiry at all. getjobber-cli auth status reports an expired-but-recoverable token rather than claiming you are signed out.

To renew immediately instead of waiting for the next command:

getjobber-cli auth refresh

Automatic renewal needs the stored refresh token and your configured OAuth credentials. If either is missing, or Jobber rejects the refresh (a revoked or long-unused refresh token), commands report Not authenticated and you need to sign in again:

getjobber-cli login

Development

Running Tests

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run tests with coverage
pytest --cov=getjobber_cli --cov-report=html

Code Formatting

# Format code with black
black src/ tests/

# Type checking with mypy
mypy src/

Both run as blocking CI checks, alongside the test suite on Python 3.10, 3.11, and 3.12.

Reproducible installs

A uv.lock file is committed. With uv installed, uv sync --extra dev reproduces the exact pinned dependency set:

uv sync --extra dev
uv run pytest

Maintainer

Maintained by Anthony Vincent Caracappa (github.com/acaracappa) at dctreecutting.com.

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions:

Acknowledgments

Built with:

  • Typer - CLI framework
  • GQL - GraphQL client
  • Rich - Terminal formatting
  • Keyring - Secure credential storage

Metadata

Release files for getjobber-cli 1.2.0

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

Source distribution (sdist)

Source distribution for getjobber-cli 1.2.0
File Size Uploaded
getjobber_cli-1.2.0.tar.gz 33.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for getjobber-cli 1.2.0
File Interpreter ABI Platform
getjobber_cli-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 71.4 kB

Release files / getjobber_cli-1.2.0.tar.gz

Download URL getjobber_cli-1.2.0.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f01ca09c315b09b4d5998825ae7983ecd272acb5928dcc03d0ad0b3ef4b0ba25
BLAKE2b-256 checksum
How to use checksums
2722a05057b064bfdef5ddb37c21cca4437f8bef2059998f59a9a1612120a243
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / getjobber_cli-1.2.0-py3-none-any.whl

Download URL getjobber_cli-1.2.0-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cec1b696fcf3d2efc0906f9015e44f0f946a636bff18f88f95950bee5025cde
BLAKE2b-256 checksum
How to use checksums
79a87a33b546e36d6f1015fd8179abaac3bcf289de90603d3fc8b25309265af3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

This release

1.2.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

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