Deployments: publish to your VPS, hosting or platform
Use @deploy to audit and publish over SSH, FTPS, Vercel, Netlify, webhook, Git or Docker, with your credentials encrypted.
Deploying means putting your project somewhere other people can use it: a VPS, a hosting plan, a cloud platform or a server in your office. DevFlow AI guides the whole process: it checks the project, publishes to the target you choose and tells you if something fails.
How it works
- In the chat, type
@deploy(or@and the name of your server). - Choose the target. DevFlow marks as Detected the configuration it finds in your project.
- Review the steps: you see the exact commands before anything runs.
- Press Deploy to production. With a connector, the system opens its own window showing the real server, folder and commands, and you must confirm it.
- DevFlow runs the tests and the build first. If something fails, it stops without touching the server.
When the assistant opens, DevFlow also runs a security review of the project.
A person always starts a deployment. Agent Mode and scheduled tasks cannot launch one.
Which target should I choose?
| Your case | Target | What you need |
|---|---|---|
| VPS or dedicated server (DigitalOcean, Hetzner, AWS, Contabo...) | VPS / SSH connector | IP, user and SSH key |
| Shared hosting (cPanel, Plesk...) | VPS / SSH connector if it offers SFTP; otherwise FTPS Hosting | Access details from your provider |
| Vercel | Vercel connector, or the Vercel platform with your CLI session | A token |
| Netlify | Netlify connector, or the Netlify platform with your CLI session | A token |
| Render, Cloudflare Pages, Coolify or another platform with a deploy URL | Webhook connector | The deploy hook URL |
| Your repository already deploys on every push | Git Push | A Git remote |
| A server on this same computer | Docker Compose or deploy.sh | compose.yaml or a script |
Provider not listed? Nearly all of them offer SSH, SFTP, FTPS or a deploy URL: use the matching connector.
Connecting a VPS step by step
1. Create a deploy-only user without administrator rights. If someone got hold of that key, they would not control the whole server.
# On the server
sudo adduser deploy
sudo mkdir -p /var/www/my-app
sudo chown deploy:deploy /var/www/my-app
2. Create an SSH key just for DevFlow on your computer and authorize it on the server.
# On your computer
ssh-keygen -t ed25519 -f ~/.ssh/devflow_deploy -C "devflow"
# Copy the contents of devflow_deploy.pub to /home/deploy/.ssh/authorized_keys
3. Create the connector. In the chat, type @connector, choose See all connectors and then VPS / SSH. Fill in the IP, user and folder, and paste the private key (devflow_deploy).
4. Verify the server. Press Test. DevFlow reads the server fingerprint and shows it to you before sending any credential. Compare it with the one on the server:
for f in /etc/ssh/ssh_host_*_key.pub; do ssh-keygen -lf "$f"; done
If it matches, trust the server. DevFlow remembers it and cuts the connection if it ever changes: that is the sign someone could be impersonating it.
5. Choose how to update the server:
- Git (recommended): DevFlow pushes your commits and runs
git pullon the server. The remote folder must be a clone of the repository with theoriginremote, and the server must be able to read it (for example, with a read-only deploy key). - Upload files over SFTP: copies the folder you choose, such as
distor the project root.
6. Add the follow-up commands your application needs, one per line. They run in the remote folder and stop at the first failure.
npm ci --omit=dev
pm2 reload my-app
composer install --no-dev --optimize-autoloader
php artisan migrate --force
php artisan config:cache
Shared hosting over FTPS
Use the host, user and password from your provider, and the public folder (usually /public_html). In Folder to upload, enter what your project builds, for example dist.
DevFlow only accepts FTP over TLS and requires a valid certificate: plain FTP would send your password unencrypted. If you see a certificate error, use the host name your provider gives you instead of your domain. If your provider offers SFTP, prefer the SSH connector.
Vercel, Netlify and webhooks
- Vercel and Netlify: create a token in their dashboard. DevFlow passes it to the CLI in an environment variable, so it does not appear in the process list or in the output. On Netlify you can set the site ID; otherwise the already linked project is used.
- Webhook: paste the deploy URL from your platform. That URL works like a password, so it is stored encrypted. The platform only confirms it received the request: the final result is in its dashboard. There is no Test button here because it would trigger a real deployment.
Deploying on this same computer
- Docker Compose: if the project has
compose.yamlordocker-compose.yml, DevFlow runsdocker compose up -d --build. - deploy.sh: if your project has this file at its root, it is run with
bash. On Windows you need Git Bash or WSL. If the script prints aDEPLOY_URL=https://...line, DevFlow shows it at the end.
If your project is on Git
DevFlow checks the repository when the assistant opens and shows you:
- The remote and the current branch.
- Commits you have not pushed and uncommitted files.
- Whether CI is configured (GitHub Actions, GitLab CI, Bitbucket Pipelines, Azure Pipelines or CircleCI). If so, pushing to Git may already trigger your deployment: check that before publishing through two routes.
Security review
Every time you open the assistant, DevFlow checks what you are about to publish, on your computer. None of it leaves your machine.
| What it looks for | Why it matters |
|---|---|
| Passwords and tokens in the code (GitHub, AWS, Stripe, private keys, databases...) | Anyone who reads the file could use them |
.env files or keys tracked in Git | They are published with every git push |
| PHP code that runs whatever arrives in the request | The typical form of a backdoor (webshell) |
Disguised scripts, such as photo.php.jpg | This is how they slip through upload forms |
| Scripts inside an uploads folder | Those folders should only store files |
If it finds something serious, you see the file and line, never the value. The best fix is to correct it: move the secret to a .env, change it if it was already published and delete the suspicious file. If it is a false positive, tick the confirmation box and deploy as usual.
Protecting your uploads folders
If your project uses PHP and has a folder such as uploads, DevFlow offers Protect. It creates an .htaccess that stops scripts from running there: even if someone uploads a .php file the server will not run it, and your images and documents stay visible. It works on Apache (cPanel, Plesk...). It never replaces an existing .htaccess. On Nginx, use an equivalent rule in the server configuration.
The review is an aid, not an antivirus. Deliberately obfuscated code can go undetected.
Security
- Credentials encrypted on your computer. They are stored in your operating system's secure store and never reach DevFlow AI's servers. To also protect them from password-stealing malware, turn on the master password.
- The AI cannot see your credentials and cannot start a deployment.
- Confirmation in a system window. It shows the real data: a tampered page or message cannot fake it or skip it.
- Single-use authorization. It works for one deployment of that project and expires in one minute.
- A secret works for one target only. If you change a connector's server, user or URL, you must type it again.
- Sensitive files are never uploaded:
.env, keys (.pem,.key,id_rsa...),.git,node_modules,.app_context, SQLite databases or.bakcopies. If you upload the root of a repository,.gitignoreis respected too. - Output is censored in case a command prints your credential.
Three things are up to you:
- Use a user without
sudoand a key just for DevFlow. - Check the folder and commands in the confirmation window before accepting.
- If a server's fingerprint changes for no reason, stop and contact your provider.
Protect your server too
DevFlow looks after how you connect, but the server is yours. On a VPS:
- Turn off password and
rootaccess in SSH. First check that you can sign in with your key, without closing the open session. - Install Fail2Ban to block IPs that keep trying.
- Turn on automatic security updates.
- Put Cloudflare or a similar service in front of your site to stop traffic attacks.
- Avoid leaving port 21 open if you do not use it: with SFTP you do not need it.
Limitations
- File uploads do not delete anything from the server: files you remove from the project stay there. This is deliberate, to avoid data loss, but they are worth cleaning up by hand.
- An upload is not atomic: if it is interrupted, the server may be only partly updated. Run the deployment again.
- Connectors are stored on this computer: on another one you will need to create them again.
- If your Linux system has no keyring available, credentials only last until you close the app.
If something fails
| Message | What to do |
|---|---|
| The server fingerprint has changed | Ask your provider whether the server was reinstalled. If not, do not continue. |
| The server rejected the user or the credential | Check the user and that the public key is in authorized_keys. |
| The remote folder does not exist | Create it on the server and give the deploy user access. |
| Verify this server first | Go to Connectors and press Test. |
| The TLS certificate is not valid | Use the host name your provider gives you. |
| The folder does not exist | Build the project or fix the folder to upload. |
Last updated: November 26, 2026