Terminal
Terminal/Skill
Moves a website from another host to Hostinger, testing the copy before switching DNS and SSL so the old site stays up.
By Hostinger
Works with
npx skills add hostinger/api-mcp-server --skill migrate-to-hostingThe old host keeps serving the site until the copy on Hostinger is proven to work. DNS moves last.
inputSchema that search returns before the first call of each operation. If a name below is rejected as unknown, search for what the step does (e.g. "import wordpress").multi-execute. Batches chain operations from one server only — the Hostinger Connector runs hosting, wordpress, agency-hosting, domains and dns as separate servers.Establish, asking only for what cannot be inferred:
wp-content and wp-config.php) and a .sql dump..sql dump when the app has a database.tar -czf site.tar.gz -C /path/to/site . and mysqldump --single-transaction -u USER -p DBNAME > db.sql.https, with or without www) — WordPress keeps it in the database, so the new site must answer on the same one.dig +short NS DOMAIN; dig +short A DOMAIN; dig +short MX DOMAIN; dig +short TXT DOMAIN
Create the Hostinger website on the domain being migrated, not on a free subdomain: step 4 tests it by pointing only this machine at Hostinger, so nothing changes for visitors yet.
hosting_domains_verify-ownership first. When is_accessible is false, the user adds the returned TXT record at their current DNS provider, next to the existing ones, and verification is repeated. Then hosting_websites_create with domain and order_id (from hosting_orders_list), and poll hosting_websites_list-setups with domain every 10–15 s until status: completed.agency-hosting_website-setups_create with the domain, flavor: "php-fpm", a settings.php.version matching the old host (options in agency-hosting_php_list-versions-for-order) and datacenter_code from agency-hosting_datacenters_list. Poll agency-hosting_website-setups_status until completed for the website_uid.hosting_import-wordpress-website, hosting_deploy-static-website and agency-hosting_deploy-php-application read files from this machine and exist only in the local hostinger-api-mcp server. On the hosted server (mcp.hostinger.com), upload the files first as described in the deploy-to-hosting skill ("Without the local deploy operations") and use the operation named in brackets below.
WordPress, Shared and Cloud: hosting_import-wordpress-website with domain, archivePath and databaseDump uploads both, extracts the files and imports the database; large sites take several minutes. [Upload site.zip and dump.sql, then wordpress_installations_import-website with archive_path and sql_path.] Then wordpress_installations_detect with username and poll wordpress_installations_list with domain until the install appears with is_valid: true.
Static, or PHP without a database: hosting_deploy-static-website [upload, then hosting_websites_deploy-static-site-archive]; Agency: agency-hosting_deploy-php-application [upload to .h5g/, then agency-hosting_files_import-website-from-archive].
PHP with a database, Shared and Cloud:
hosting_databases_create with a strong generated password; read the full name, user and host back from hosting_databases_list.curl -s https://api.ipify.org) with hosting_databases_create-remote-connection, run mysql -h HOST -u USER -p NAME < db.sql, then remove the rule with hosting_databases_delete-remote-connection. Without a MySQL client, use hosting_databases_phpmyadmin-link and import there.localhost, before archiving; then deploy as above. Never ship the srvNNNN.hstgr.io host inside the app.Node.js: deploy with the deploy-to-hosting skill. When a dump must be imported, create the database with hosting_databases_create rather than hosting_databases_setup-website — the latter never reveals the password needed for the import — and pass the credentials through environment variables.
Agency: files with agency-hosting_deploy-php-application [or upload plus agency-hosting_files_import-website-from-archive]; the database with agency-hosting_databases_create-website, imported through phpMyAdmin in hPanel (no import operation exists). For WordPress, set the new credentials in wp-config.php before archiving.
Find the server address: details.ipv4 for Agency; for Shared and Cloud, the A record for @ in the Hostinger zone (dns_records_list on the domain) or the IP hPanel shows for the website. Then point only this machine at it:
curl -sSk --resolve DOMAIN:443:IP -o /dev/null -w "%{http_code}\n" https://DOMAIN/
curl -sSk --resolve DOMAIN:443:IP https://DOMAIN/ | grep -o "TEXT FROM THE LIVE SITE"
curl -sSk --resolve DOMAIN:443:IP -o /dev/null -w "%{http_code}\n" https://DOMAIN/wp-login.php
-k is expected here: the certificate for the domain can only be issued after DNS moves. Check the home page, an inner page and, for WordPress, the login page. For a look in the browser, the user adds IP DOMAIN www.DOMAIN to their hosts file and removes it afterwards. Fix anything broken now, while visitors still see the old site.
Follow the connect-domain skill from its DNS step: keep every MX and TXT record from step 1, then install SSL once the domain resolves to Hostinger. When the user controls the old DNS, lowering the TTL of the A records to 300 a day ahead shortens the switch.
--resolve: curl -sSI https://DOMAIN/ shows platform: hostinger.hosting_cron-jobs_create (Agency: agency-hosting_cron-jobs_create-website).