> For the complete documentation index, see [llms.txt](https://developer.celigo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.celigo.com/cli/commands/sync-jobs.md).

# sync-jobs

Inspect and cancel sync jobs — the read-only executions produced by [`syncs run`](https://developer.celigo.com/cli/commands/syncs.md). Each sync job tracks extraction, loading, and error counts across a sync's tables. Use this command to list a sync's jobs, fetch one by ID, read its errors, and cancel a job that is still running.

**REST API**: [Syncs](https://developer.celigo.com/api/api-reference/data-ingestion/sync-jobs)

```
celigo sync-jobs <subcommand> [args] [flags]
```

Supports all [global flags](https://developer.celigo.com/cli/getting-started/global-flags.md).

## Subcommands

| Subcommand           | Purpose                                 |
| -------------------- | --------------------------------------- |
| `list`               | List the jobs for a sync, newest first. |
| `get <syncJobId>`    | Get a sync job by ID.                   |
| `errors <syncJobId>` | List errors for a sync job.             |
| `cancel <syncJobId>` | Cancel a single sync job.               |

***

## `celigo sync-jobs list`

List the jobs for a sync, newest first. Pass the sync with `--sync`, and optionally bound the window with `--created-gte` / `--created-lte`.

**Signature**

```bash
celigo sync-jobs list --sync <syncId> [flags]
```

**Arguments**

None.

**Flags**

| Flag                  | Type   | Default | Description                                                                                                                                         |
| --------------------- | ------ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--sync <syncId>`     | string | —       | Sync whose jobs to list. Since celigo-cli 2026.10.1, a blank value, or one holding `/`, `?`, `#`, `\` or whitespace, is refused before any request. |
| `--created-gte <iso>` | string | —       | Only jobs created after this time (ISO 8601, plain date, or epoch ms). The bound is exclusive: it is sent as `createdAt_gt`.                        |
| `--created-lte <iso>` | string | —       | Only jobs created on/before this date.                                                                                                              |

Since celigo-cli 2026.10.1, `--created-gte` and `--created-lte` are checked before the request: a value that is neither a date the CLI can read nor epoch milliseconds is refused (`--created-gte 'last week' is not an ISO-8601 timestamp or epoch milliseconds.`), where the API answered a `500`.

The command follows the endpoint's `createdAt` cursor through every page (100 jobs each). When the walk stops where more jobs may exist, a stderr note says so and, since celigo-cli 2026.10.1, why: at the pagination safety cap, or at a full page of jobs created in the same millisecond, which the cursor cannot page past. For example: `Note: stopped at the pagination safety cap — results may be incomplete. Narrow with --created-gte/--created-lte.`

**Example**

```bash
celigo sync-jobs list --sync 5f83a9b2c7d3e8f1a2b3c4d5 --created-gte 2026-06-01 --format table
```

**Corresponds to**: [`GET /v1/syncs/{_syncId}/syncJobs`](https://developer.celigo.com/api/api-reference/data-ingestion/sync-jobs) (operationId: `listSyncJobs`)

***

## `celigo sync-jobs get`

Get a single sync job by ID.

**Signature**

```bash
celigo sync-jobs get <syncJobId>
```

**Arguments**

| Argument      | Type   | Required | Description  |
| ------------- | ------ | -------- | ------------ |
| `<syncJobId>` | string | Yes      | Sync job ID. |

**Example**

```bash
celigo sync-jobs get 6a1b2c3d4e5f6a7b8c9d0e1f
```

**Corresponds to**: [`GET /v1/syncJobs/{_syncJobId}`](https://developer.celigo.com/api/api-reference/data-ingestion/sync-jobs) (operationId: `getSyncJobById`)

***

## `celigo sync-jobs errors`

List the errors recorded for a sync job.

**Signature**

```bash
celigo sync-jobs errors <syncJobId>
```

**Arguments**

| Argument      | Type   | Required | Description  |
| ------------- | ------ | -------- | ------------ |
| `<syncJobId>` | string | Yes      | Sync job ID. |

**Example**

```bash
celigo sync-jobs errors 6a1b2c3d4e5f6a7b8c9d0e1f --format json
```

**Corresponds to**: [`GET /v1/syncJobs/{_parentJobId}/errors`](https://developer.celigo.com/api/api-reference/data-ingestion/sync-jobs) (operationId: `listSyncJobErrors`)

***

## `celigo sync-jobs cancel`

Cancel a single sync job by ID. Prompts for confirmation unless `-y` is passed.

> ⚠️ **Cancelling a sync job cannot be undone.** Extraction and loading stop immediately, which can leave data partially synced. Re-run the sync to finish.

**Signature**

```bash
celigo sync-jobs cancel <syncJobId> [flags]
```

**Arguments**

| Argument      | Type   | Required | Description  |
| ------------- | ------ | -------- | ------------ |
| `<syncJobId>` | string | Yes      | Sync job ID. |

**Flags**

| Flag        | Type    | Default | Description        |
| ----------- | ------- | ------- | ------------------ |
| `-y, --yes` | boolean | `false` | Skip confirmation. |

**Example**

```bash
celigo sync-jobs cancel 6a1b2c3d4e5f6a7b8c9d0e1f -y
```

**Corresponds to**: [`PUT /v1/syncJobs/{_syncJobId}/cancel`](https://developer.celigo.com/api/api-reference/data-ingestion/sync-jobs) (operationId: `cancelSyncJob`)

***

## Gotchas

* **Sync jobs are read-only executions.** They are produced by [`syncs run`](https://developer.celigo.com/cli/commands/syncs.md), not created directly. `cancel` is the only mutating subcommand here: it needs `operate` or `full` mode, and since celigo-cli 2026.10.1 `read` mode refuses it before any request. See [Profiles & regions](https://developer.celigo.com/cli/getting-started/profiles.md#permission-modes).
* **`list` requires `--sync`.** Jobs are scoped to a sync; pass the sync ID with `--sync` to list its jobs.
* **`cancel` vs `syncs cancel-jobs`.** `sync-jobs cancel <syncJobId>` cancels one job; [`syncs cancel-jobs <syncId>`](https://developer.celigo.com/cli/commands/syncs.md) cancels every running job for a sync.
* **Errors are read from the parent job.** The errors endpoint keys off the parent job ID — pass the job ID returned by `list` or `run`.

## Related

* [syncs](https://developer.celigo.com/cli/commands/syncs.md) — trigger runs, cancel all jobs for a sync, and discover supported source/destination apps.
* [integrations](https://developer.celigo.com/cli/commands/integrations.md) — the container that owns syncs.
* [jobs](https://developer.celigo.com/cli/commands/jobs.md) — flow execution history (distinct from sync jobs).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.celigo.com/cli/commands/sync-jobs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
