Skip to content

Apex Commands

Jannis Schreiber edited this page Mar 26, 2025 · 6 revisions

Apex commands help you execute and manage apex-related functionality in your CI/CD pipeline.

Scheduler

The scheduler module exposes System.schedule and System.abortJob functionality to the command line. It brings low-level commands to start, stop, or export all scheduled jobs. The manage command is optimized for execution in CI pipelines.

Manage Scheduled Apex

WIP

options:
  stop_other_jobs: true
jobs:
  'Name of my job':
    class: TestJob
    expression: '0 0 1 * * ?'
  'My job 2':
    class: TestJob
    expression: '0 0 2 * * ?'
  Yet another job:
    class: TestSchedulable2
    expression: '0 0 1 * * ?'
  or_name_job_like_this:
    class: TestSchedulable2
    expression: '0 0 1 * * ?'
  TestSchedulable3:
    expression: '0 0 1 * * ?'

Clone this wiki locally