feat: simplify update commands for platform

This commit is contained in:
Haileyesus
2026-04-14 16:34:05 +03:00
parent f8d1a0dd2c
commit 1a0f10217d
2 changed files with 3 additions and 3 deletions

View File

@@ -438,7 +438,7 @@ app.post('/api/system/update', authenticateToken, async (req, res) => {
// Platform deployments use their own update workflow from the project root.
const updateCommand = IS_PLATFORM
// In platform, husky and dev dependencies are not needed
? 'git checkout main && git pull && npm pkg delete scripts.prepare && npm install --omit=dev && npm run update:platform'
? 'npm run update:platform'
: installMode === 'git'
? 'git checkout main && git pull && npm install'
: 'npm install -g @cloudcli-ai/cloudcli@latest';