Wf logs
View deployment logs from WillformFrom its SKILL.md
npx -y skills add willform-ai/willform-plugins --skill wf-logsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.0 KB, as published. Nobody here has run it
/wf-logs -- View Deployment Logs
Retrieve and display container logs for a deployment on Willform.
Language
After loading config, check WF_LANGUAGE (set by wf_load_config). Use English if en or empty, Korean if ko. If not set, ask the user to choose (English/한국어) and save to config.
Instructions
A deployment ID or name must be provided as an argument ($ARGUMENTS). If no argument is provided, show an error and list available deployments.
- Source the API helper and load config:
source "${CLAUDE_PLUGIN_ROOT}/scripts/wf-api.sh" && wf_load_config
-
Resolve deployment ID:
- If the argument looks like a UUID, use it directly as the deployment ID
- Otherwise, treat it as a deployment name: call
GET /api/deployto list all deployments, then find the one matching the given name - If no match is found, show an error with the list of available deployments:
Error: Deployment "xyz" not found. Available deployments: NAME STATUS ID my-web running abc-123-... my-db running def-456-...
-
Fetch logs using the shared helper:
response=$(wf_get "/api/deploy/${DEPLOY_ID}/logs")
-
Output the logs:
- Extract the log text from the
datafield in the response - Output the raw log text directly so the user can read it
- If the response indicates an error (e.g., deployment not found, no logs available), show the error message clearly
- Extract the log text from the
-
Error handling:
- If the API returns
success: false, display the error message - If the deployment status is
stoppedorsuspended, note that logs may not be available since no pods are running
- If the API returns
Error Handling
- If API returns 401, suggest
/wf-setupto reconfigure API key - If deployment not found, list available deployments
- If deployment is stopped/suspended, note that no pods are running and logs may be unavailable