Commands
Preview
Build and upload a preview of your project to our testfiles S3 bucket.
pnpm graphics-publisher previewpnpm previewUpload
Upload your project to the graphics server.
pnpm graphics-publisher uploadpnpm uploadYou’ll be asked which archives to upload:
◆ Which archives do you want to upload? (space to toggle)│ ◻ reuters.com│ │ ◻ public update│ ◻ embeds│ │ ◻ media-en-inflation-chart update│ │ ◻ media-en-jobs-map newEverything starts selected, so press enter to upload the whole pack.
Uploading a subset is worth it on packs with lots of embeds: the graphics server processes archives one at a time, taking a few minutes each, so re-uploading several embeds to fix one of them is several times the wait. The archives you skip are left untouched on the server, and any you’ve uploaded before go on serving — each archive carries its own copy of everything it needs.
Bear in mind a skipped archive keeps the version of your project it was last uploaded with. If a change should reach an embed, include it.
To skip the prompt — in a script, or when you already know — pass the archives you want, named exactly as the prompt shows them:
pnpm graphics-publisher upload --archives public,media-en-jobs-mappnpm upload --archives public,media-en-jobs-mapIn CI, with no --archives, every archive is uploaded.
Publish
Publish your project in the graphics server.
pnpm graphics-publisher publishpnpm pubRestart
Sometimes a graphic pack in the server gets mangled. Run this to remove existing pack IDs and URLs from package.json, allowing you to create a new pack next time you upload your project. This command will preserve all other pack metadata previously saved, e.g., titles, descriptions, etc.
pnpm graphics-publisher restartDelete
If possible, delete a graphic pack in the graphics server and restart the pack.
pnpm graphics-publisher deleteDiagnose
Re-open an AI diagnosis of the last command that failed. Handy when you dismissed the prompt, or want to look into a failure without re-running a slow command like a build.
pnpm graphics-publisher diagnoseThis reuses the diagnostics file written to .graphics-kit/diagnostics/latest.md on the last failure and offers the same Claude Code handoff. See the ai config option for what the handoff does and how to turn it off.