push_site_to_github
Push a hosted project to GitHub destructive
Description
Commit a hosted project's files (the live version, or version) to a GitHub repository (repo owner/name, branch default main) as one new commit: the branch's files become exactly the project's files, its history is kept, nothing is force-pushed, and a repository that does not exist is created private. Needs a GitHub fine-grained token from the user with Contents read and write (token; saveToken:true keeps it write-only for next time). Without confirm:true nothing is pushed; call again with confirm:true once the user says yes. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
namerequired | string | the project (its hermoso.page name) |
reporequired | string | owner/name, e.g. acme/spring-sale-site |
branch | string | default main |
version | number | |
token | string | the user's GitHub token; omit to use a saved one |
saveToken | boolean | |
message | string | the commit message |
confirm | boolean | true only after the user approved it |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/push_site_to_github.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"push_site_to_github","arguments":{"name":"<string>","repo":"<string>"}}}
CLI
hermoso call push_site_to_github --json '{"name":"<string>","repo":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
export_siteDownload a hosted project as a zipsite_logsRead a hosted project's server logsset_site_spend_capCap hosting spendexport_site_dbExport a hosted project's databaselist_site_usageHosting usage of hosted projectslist_site_db_backupsList a hosted project's database snapshotsrollback_pageRoll a hosted project backrestore_site_dbRestore a hosted project's databasedelete_site_secretDelete a site secretsite_email_reportA hosted project's email report