Skip to main content
The job command group manages scheduled automation jobs. Jobs run InfraAudit operations — such as drift detection, resource syncs, and compliance checks — on a cron schedule or on demand.

job list

List all configured jobs:
infraudit job list
Example output:
ID  NAME                  TYPE               SCHEDULE      LAST RUN          STATUS
--  ----                  ----               --------      --------          ------
1   Daily Drift Scan      drift_detection    0 8 * * *     2 hours ago       success
2   Hourly Resource Sync  resource_sync      0 * * * *     45 minutes ago    success

job create

Create a new scheduled job. The CLI prompts interactively if flags are not provided. Synopsis:
infraudit job create [flags]
FlagDescription
--nameDisplay name for the job
--typeJob type (see supported types below)
--scheduleCron expression defining when the job runs
Supported job types:
TypeDescription
drift_detectionRun drift detection across all resources
resource_syncSync resource inventory from all providers
vulnerability_scanRun a vulnerability scan
cost_syncPull billing data from all providers
compliance_checkRun all enabled compliance framework assessments
Examples:
# Create a daily drift scan at 8:00 AM UTC
infraudit job create --name "Daily Drift Scan" --type drift_detection --schedule "0 8 * * *"

# Create an hourly resource sync
infraudit job create --name "Hourly Sync" --type resource_sync --schedule "0 * * * *"

job get

Show details for a specific job, including its schedule, type, and last execution result: Synopsis:
infraudit job get <job-id>
Example:
infraudit job get 1

job run

Trigger an immediate execution of a job, regardless of its schedule: Synopsis:
infraudit job run <job-id>
Example:
infraudit job run 1

job history

Show the execution history for a job, including start time, duration, and result for each run: Synopsis:
infraudit job history <job-id>
Example:
infraudit job history 1

job executions

Alias for job history. Lists execution records for a specific job:
infraudit job executions 1

job delete

Remove a job. Execution history is retained:
infraudit job delete 1

job types

List all available job types:
infraudit job types