Getting started
@zyno-io/zynohosting provides two executables:
zynohostingfor people and CI jobs;zynohosting-mcpfor local stdio MCP clients.
Both clients use the same Hosting Manager API, permission model, and short-lived site capabilities.
Requirements
- Node.js 24
- a Zyno account or tenant API key
- access to at least one ZynoHosting site
Install the CLI
Install it globally when you use it regularly:
npm install --global @zyno-io/zynohosting
zynohosting --versionOr run the published package without a global install:
npx -y @zyno-io/zynohosting sites listSign in
Interactive users can sign in through Zyno:
zynohosting loginCI jobs should inject a tenant API key rather than save a browser session:
export ZYNO_HOSTING_API_KEY='your-tenant-api-key'See Authentication for credential precedence, environments, and non-interactive setup.
Confirm site access
List the sites granted to the current tenant credential:
zynohosting sites listThen inspect one site by UUID or hostname:
zynohosting sites get example.comChoose a workflow
Work with individual files
zynohosting files list example.com
zynohosting files get example.com index.html --output ./index.htmlContinue with Individual files.
Deploy a directory
Always preview the exact synchronization plan first:
zynohosting deploy example.com ./dist --dry-run
zynohosting deploy example.com ./distContinue with Full deployments.
Connect an agent
Run the local MCP server with at least one allowed filesystem root:
npx -y @zyno-io/zynohosting mcp --root /absolute/path/to/projectContinue with Configure MCP.
Global options
These options apply to the CLI and may be placed before a command:
| Option | Purpose |
|---|---|
-V, --version | Print the installed package version. |
--api-url <url> | Override the Hosting Manager API URL. |
--environment <name> | Select production, alpha, or dev. |
--api-key <key> | Supply a tenant API key. Prefer the environment variable in automation. |
--json | Emit machine-readable output where the command supports it. |
TIP
Run zynohosting <command> --help to see command-specific options for the installed release.
Next steps
- Learn how credentials and environments are resolved.
- Review the safety model before granting an agent write access.
- Check permissions when an operation is forbidden.
- Use JSON output and exit codes in CI.