Skip to content

DISCO-70: Add SDK Publish Command - #440

Merged
Patrick Tamunjoh (patricktamunjoh) merged 2 commits into
mainfrom
feature/DISCO-70-add-sdk-publish-command
Oct 22, 2026
Merged

Patrick Tamunjoh (patricktamunjoh) merged 2 commits into
mainfrom
feature/DISCO-70-add-sdk-publish-command

Conversation

@patricktamunjoh

Copy link
Copy Markdown
Contributor

Description

Adds content-cli sdk publish --appId <appId> --dist <dist> (beta). It zips a custom app build and uploads it to pro-code-app-manager, so the build becomes a new version of the app's Codespace asset. The command prints the version it was assigned.

  • HttpClient.postBinary: sends a Buffer unchanged with a given content type. The endpoint only accepts application/zip, and the existing post/postFile methods turn the body into JSON or multipart form data.
  • SdkService.publishApp / SdkApi.publishApp: checks the dist directory, zips it in memory with adm-zip and posts it to /pro-code-app-manager/api/codespace/apps/{appId}/publish.
  • The user guide and command graph now include the new command.

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

Base automatically changed from feature/DISCO-69-add-sdk-download-command to main October 22, 2026 07:31
@patricktamunjoh
Patrick Tamunjoh (patricktamunjoh) force-pushed the feature/DISCO-70-add-sdk-publish-command branch from c0f4700 to 6cb85e9 Compare October 22, 2026 07:33
@sonarqubecloud

Copy link
Copy Markdown

@patricktamunjoh
Patrick Tamunjoh (patricktamunjoh) merged commit c777477 into main Oct 22, 2026
5 checks passed
@patricktamunjoh
Patrick Tamunjoh (patricktamunjoh) deleted the feature/DISCO-70-add-sdk-publish-command branch October 22, 2026 07:47
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.

2 participants