exerciseId Exercise ID to attach the imported solution to [string]
sources Local file paths, directories, or HTTP(S) URLs [array] [default: []]
Options:
--json Write machine-readable JSON to stdout [boolean] [default: false]
--result-file Publish the complete JSON result envelope to a new private file [string]
--base-url Base URL of the ChalkSurf API [string]
--organization Organization ID to use for this command [string]
--profile CLI profile to use for this command [string]
-v, --version Show the CLI version [boolean]
--help Show help [boolean]
--manifest Load sources from a manifest file, or "-" for stdin [string]
--relative-path Override the relative path for a single positional source [string]
--timeout-ms Maximum time to wait before timing out [number] [default: 300000]
--wait Wait for the queued job to finish [boolean] [default: false]
Examples:
chalksurf exercise import-solution 00000000-0000-4000-8000-000000000001 ./fixtures/solution.pdf --wait Attach a solution file to an existing exercise
cat exercise-solution-import.json | chalksurf --profile prod-codex exercise import-solution --manifest - --wait --json Drive solution imports from a manifest in an agent or CI flow
When --wait is set, the command exits after the queued import job reaches a terminal state.