Skip to content

Add ocl import commands (file, status, list)#2

Merged
paynejd merged 2 commits intomainfrom
feature/import-commands
Apr 1, 2026
Merged

Add ocl import commands (file, status, list)#2
paynejd merged 2 commits intomainfrom
feature/import-commands

Conversation

@paynejd
Copy link
Copy Markdown
Member

@paynejd paynejd commented Apr 1, 2026

Summary

  • Adds ocl import file FILE — upload JSON/JSONL, CSV, or OCL export ZIP for bulk import
  • Adds ocl import status TASK_ID — check/poll import task status
  • Adds ocl import list — list active/recent imports
  • Uses the current /importers/bulk-import/ endpoint (multipart file upload)
  • All format detection and conversion handled server-side

Test plan

  • ocl import file test.jsonl --server ocl-dev — verify JSON Lines upload
  • ocl import file test.csv --server ocl-dev — verify CSV upload
  • ocl import file export.zip --server ocl-dev — verify OCL export upload
  • ocl import file test.txt — verify unsupported extension is rejected
  • ocl import status <task-id> — verify task status display
  • ocl import list — verify import list display
  • ocl import file test.jsonl --wait — verify poll-until-complete
  • ocl import file test.jsonl --queue myqueue — verify queue routing
  • All commands with --json flag for raw JSON output

Closes OpenConceptLab/ocl_issues#2443

🤖 Generated with Claude Code

paynejd and others added 2 commits April 1, 2026 10:36
Adds bulk import CLI commands using the /importers/bulk-import/ API endpoint.
Supports all server-side file formats: JSON/JSONL, CSV, and OCL export ZIP.

- `ocl import file FILE` — upload for bulk import with --queue, --parallel, --wait
- `ocl import status TASK_ID` — check task status with optional --wait polling
- `ocl import list` — list active/recent imports with optional --queue filter

Closes #1

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Mark Phase 2 (Bulk Import) as done in remaining-gaps plan
- Add Bulk Import section to README with usage examples
- Add section 6.3 Bulk Import to operations demo

#2443

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@paynejd paynejd merged commit 0346ae9 into main Apr 1, 2026
@paynejd paynejd deleted the feature/import-commands branch April 1, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ocl import commands (file, status, list)

1 participant