W-Spaces Deploy
by @trandactruong
Deploy static websites to W-Spaces. Use when deploying HTML/CSS/JS sites, landing pages, or single-page apps to wspaces.app. Supports project creation, code...
clawhub install wspaces-deployπ About This Skill
name: wspaces-deploy description: Deploy static websites to W-Spaces. Use when deploying HTML/CSS/JS sites, landing pages, or single-page apps to wspaces.app. Supports project creation, code push, and deployment via API key authentication.
W-Spaces Deployment
Deploy static websites to W-Spaces (wspaces.app). Create projects, push HTML, and deploy to a live URL β all via API.
Configuration
Get your API key
1. Register: scripts/wspaces_auth.sh --register --email you@example.com --password yourpass --name "Your Name"
2. Verify your email (check inbox)
3. Login: scripts/wspaces_auth.sh --login --email you@example.com --password yourpass
4. Copy the API key from the response
Set the API key
export WSPACES_API_KEY="wsk_live_xxxx..."
Or store in .env:
WSPACES_API_KEY=wsk_live_xxxx...
Operations
Create a project
scripts/wspaces_project.sh --create --name "My Landing Page"
Response includes project ID and slug.
Push HTML code
# From a file
scripts/wspaces_push.sh --project --file ./index.htmlFrom inline HTML
scripts/wspaces_push.sh --project --html "Hello
"
Deploy to live URL
scripts/wspaces_deploy.sh --project
Result: https://
List projects
scripts/wspaces_project.sh --list
Check project details
scripts/wspaces_project.sh --get --id
View deployments
scripts/wspaces_deploy.sh --list --project
Common Workflows
Deploy a landing page
# 1. Create project
scripts/wspaces_project.sh --create --name "Startup Landing"
β project ID: abc-123
2. Push code
scripts/wspaces_push.sh --project abc-123 --file ./index.html3. Deploy
scripts/wspaces_deploy.sh --project abc-123
β https://startup-landing-xyz.wspaces.app
Update existing site
# Push new code (creates new version)
scripts/wspaces_push.sh --project abc-123 --file ./index.htmlRedeploy
scripts/wspaces_deploy.sh --project abc-123
Full flow from scratch
Tell your agent:
API Key Management
# Create additional API key
scripts/wspaces_auth.sh --create-key --name "CI/CD Key"List all keys
scripts/wspaces_auth.sh --list-keysRevoke a key
scripts/wspaces_auth.sh --revoke-key --id
API Reference
See wspaces-api.md for complete API documentation.
Troubleshooting
"WSPACES_API_KEY not set"
export WSPACES_API_KEY="wsk_live_xxx..."
"Invalid API key"
"Please verify your email"
"Project not found"
scripts/wspaces_project.sh --listβοΈ Configuration
Get your API key
1. Register: scripts/wspaces_auth.sh --register --email you@example.com --password yourpass --name "Your Name"
2. Verify your email (check inbox)
3. Login: scripts/wspaces_auth.sh --login --email you@example.com --password yourpass
4. Copy the API key from the response
Set the API key
export WSPACES_API_KEY="wsk_live_xxxx..."
Or store in .env:
WSPACES_API_KEY=wsk_live_xxxx...
π Tips & Best Practices
"WSPACES_API_KEY not set"
export WSPACES_API_KEY="wsk_live_xxx..."
"Invalid API key"
"Please verify your email"
"Project not found"
scripts/wspaces_project.sh --list