﻿AI Article Automation by One Command
FINAL-Command.txt
=================

Replace YOUR_WINDOWS_USERNAME with your Windows account folder name.

Default deploy auth = password prompt (you type root/SSH password when asked).
Do not store passwords in files.


--------------------------------------------
A) NORMAL PUBLISH (images from folder 1)
--------------------------------------------
cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command"
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 1

Change -ImageSet 1 to 2,3,...10 to use SETUP-First\IMAGES\1, IMAGES\2, etc.
During upload, enter your VPS password when OpenSSH asks.


--------------------------------------------
B) MANUAL TOPIC OVERRIDE
--------------------------------------------
cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command"
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 1 -Topic "How small businesses can grow Instagram trust with consistent design"


--------------------------------------------
C) DRY RUN (no VPS upload, no GitHub push)
--------------------------------------------
cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command"
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 1 -DryRun


--------------------------------------------
D) AUTH MODE
--------------------------------------------
# Default / explicit password prompt
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 1 -AuthMode password

# Optional passwordless key mode (only after Auto-password-ssh-setup)
# See folder: Auto-password-ssh-setup\
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 1 -AuthMode ssh


--------------------------------------------
E) COMBINED EXAMPLE
--------------------------------------------
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 3 -Topic "LinkedIn posting framework without AI tools" -AuthMode password


--------------------------------------------
F) DELETE ARTICLE FROM VPS (by public URL)
--------------------------------------------
# Deletes the article HTML + images on your VPS, removes the matching local
# article folder, rebuilds blog.html, and re-uploads the blog listing.
# You will be asked for the SSH/VPS password (default auth_mode).

cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command"
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_delete_article.ps1 -Url "https://www.example.com/blog/your-article-slug-2026.html"

# Dry-run first (shows what would be deleted, changes nothing):
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_delete_article.ps1 -Url "https://www.example.com/blog/your-article-slug-2026.html" -DryRun

# Delete on VPS only (keep local copy):
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_delete_article.ps1 -Url "https://YOUR-SITE.com/blog/your-article-slug-2026.html" -KeepLocal


--------------------------------------------
IF SOMETHING FAILS вЂ” useful PowerShell checks
--------------------------------------------

# 1) Confirm you are in the product folder
cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command"
dir

# 2) Re-check system
powershell -ExecutionPolicy Bypass -File .\SETUP-First\scripts\01-check-system.ps1

# 3) Is Ollama running?
curl http://127.0.0.1:11434/api/tags

# 4) Which models are installed?
ollama list

# 5) Pull model again (name must match CHANGE-Settings.yaml)
ollama pull qwen3.6:latest

# 6) Recreate Python packages
cd "C:\Users\YOUR_WINDOWS_USERNAME\AI-Article-Automation-1Command"
.\app\.venv\Scripts\python.exe -m pip install -r .\app\requirements.txt

# 7) Test SSH login to YOUR server (will ask password in default mode)
ssh YOUR_SSH_USER@YOUR_VPS_HOST "echo OK"

# 8) Show settings path used by the app
powershell -ExecutionPolicy Bypass -File .\app\scripts\run_publish.ps1 -ImageSet 1 -DryRun -VerboseSettings

