Dev.to CLI Tool devpub Gains Image Upload Feature via Community Contributor
An open-source command-line tool called devpub, built to replace the Dev.to web editor, received its first community pull request three weeks after launch. Developer Harish independently forked the repository, tackled a long-pending issue, and delivered a complete image upload feature with tests and edge-case handling. The new devpub upload command lets users upload images directly from the terminal, bypassing the multi-step browser workflow previously required. Because the official Forem API lacks an image upload endpoint, Harish reverse-engineered the web editor's upload mechanism, which relies on browser session cookies and a CSRF token rather than an API key. The feature is available in devpub version 0.3.0 and includes a --markdown flag that outputs ready-to-paste image syntax for local article drafts.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in