Deploy site
deploy_siteDeploy a NEW static site. Performs every backend step (validate the target, fetch or archive the code, resolve build settings, start the deployment) in a single call. Supports public and private Git repositories, archive URLs, prebuilt or built-from-source sites. Returns once the deployment is submitted; poll get_site_status for progress.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_name": "<site_name>",
"organization_id": "<organization_id>",
"source_type": "<source_type>"
},
"name": "deploy_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables for the build, as {NAME: value} | |
| branch | No | Branch or tag name (source_type='git') | main |
| ref_type | No | Public GitHub only: 'heads' for a branch, 'tags' for a tag | heads |
| repo_url | No | Repository URL, e.g. https://github.com/owner/repo (source_type='git') | |
| framework | No | Framework preset for import_type='source' (see list_site_frameworks or inspect_repository) | |
| site_name | Yes | Lowercase letters, digits, '-' or '_' (max 30). The site is served at <site_name>.on.nifetency.com. | |
| archive_url | No | Public https URL of the archive (source_type='archive_url') | |
| import_type | No | 'build' = the code is already built static files; 'source' = build it first (needs a plan that allows source builds) | build |
| source_type | Yes | 'git' for a GitHub/GitLab/Bitbucket repo (public or private), 'archive_url' for a public https link to a .zip/.tar/.tar.gz | |
| node_version | No | Node major version for the build (default 20) | |
| build_command | No | Override the preset build command | |
| install_command | No | Override the preset install command | |
| organization_id | Yes | Organization id from list_organizations | |
| pat_secret_name | No | NAME of a stored secret holding a Git token, REQUIRED for PRIVATE repos (see list_git_secrets). Never pass the token itself. | |
| cloud_account_id | No | Host the site in this AWS cloud account of the organization (from list_cloud_accounts) instead of Nife's account | |
| output_directory | No | Override the preset build output directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |