Service Update: SFTP Sunset and CLI Upgrade

@cap'n ·

Quick service update: PocketHost is retiring SFTP file access on February 6, 2027, 90 days from today. Your instances, data, domains and everything else keep running exactly as they do now. Only the way you move files changes.

Everything you do over SFTP now has a replacement in the PocketHost CLI, and it works with the same API token you already use to deploy.

npm install -g pockethost@latest
pockethost login

What replaces what

You do this over SFTPDo this instead
Upload hooks, migrations, pb_publicpockethost deploy (or pockethost dev to deploy on save)
Browse filespockethost files -r
Download a copy of your instancepockethost pull (add --data for pb_data)
Move an existing pb_data inpockethost upload ./pb_data
Upload node_modules after adding a packageNothing extra. pockethost deploy ships it (CLI 4.2)
Delete a migration that won’t runpockethost rm pb_migrations/1700000000_bad.js
Deploy from GitHub Actions with an FTP/SFTP actionnpx pockethost@latest deploy with a POCKETHOST_TOKEN secret. See Deploy from CI

Add -I my-instance to any of the file commands to pick an instance, or run pockethost link my-instance once in your project folder. Anything under pb_data still needs the instance powered off first, same as SFTP.

New in CLI 4.2: manage instances too

The CLI now does everything the dashboard does to an instance, with the same token:

In the dashboardFrom the CLI
Power togglepockethost power on / pockethost power off
Instance overviewpockethost show
Rename, version, custom domainpockethost rename, pockethost version, pockethost domain set
Dev mode, admin sync, auto-vacuumpockethost dev-mode on, pockethost admin-sync off, pockethost auto-vacuum on
Secretspockethost secrets set STRIPE_KEY (prompts for the value)
Webhookspockethost webhooks add /api/cron "*/5 * * * *"
New instance, deletepockethost create, pockethost delete

Settings that need the instance powered off take --cycle, which powers it off, applies the change and powers it back on. The token needs write access, and create needs a token for all instances. Secret values never come back to the CLI, only their names. See Managing instances.

Moving a project that lives on SFTP

If you’ve been editing files straight on the server, pull them down before your first deploy:

mkdir my-app && cd my-app
pockethost link my-instance
pockethost pull
pockethost deploy

That order matters. pockethost deploy treats your local folder as the source of truth and removes files in pb_hooks, pb_migrations and pb_public that aren’t in it. pull gives you a complete local copy first, so the first deploy changes nothing. Put the folder in git and you’re done.

PocketPages users

Your pages live in pb_hooks, so pockethost deploy ships them. pockethost dev watches your project and pushes each change as you save, which is the loop most of you had in an SFTP extension. Changes under pb_public go live without a restart. Anything in pb_hooks restarts the instance for you.

Packages ship with your deploy, starting with CLI 4.2. PocketHost doesn’t run npm install for you, so install locally and deploy. The CLI sends your production node_modules along: everything in dependencies (PocketPages and its plugins included) and what they need, never devDependencies like Tailwind. It works with npm, pnpm and Bun, and follows symlinks, so your instance gets plain files. Only changed files upload.

npm install pocketpages@latest
pockethost deploy

Not sure what will ship? pockethost deploy --dry-run lists every file. The node_modules already on your instance stays put until your first deploy with 4.2.

Why

SFTP means SSH keys to manage, a separate port, a separate server process and a second way to change files that the deploy API can’t see. The HTTPS deploy path uploads only what changed, swaps the whole set in at once, keeps a deploy history, and runs from any CI runner with one token. Running both forever means doing everything twice.

The timeline

  • Today: the file commands are live in CLI 4.1. pockethost sftp and --sftp print a notice with the date.
  • CLI 4.2: deploys ship your node_modules, and the instance commands above arrive.
  • January 2027: one more reminder by email to anyone still connecting over SFTP.
  • February 6, 2027: SFTP is retired and port 2222 closes. SSH keys under Account → Keys stop doing anything, and we’ll remove that page.

If you hit something SFTP did that the CLI doesn’t, tell me on Discord or reply to the email. I’d rather add a command now than find out in February.

Have questions? Join our Discord