Skip to content
Development
Command

/update

Update statusLine path to latest plugin version

From plugin
claude-dashboard
5454 skills4 commands
Install
> /plugin marketplace add uppinote20/claude-dashboard
> /plugin install claude-dashboard@claude-dashboard

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/update

Context preview

What this command does when you run it.

Update statusLine path to latest plugin version

Command definition

update.md
description: Update statusLine path to latest plugin version
allowed-tools: Read, Bash(node:*), Bash(ls:*), Bash(grep:*), Bash(sort:*), Bash(tail:*), Bash(xargs:*), Bash(basename:*)

Claude Dashboard Update

Update the statusLine path in settings.json to point to the latest cached plugin version.

Run this command after updating the plugin via `/plugin update claude-dashboard`.

Task

1. Find the latest version in the plugin cache:

ls -d "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"/plugins/cache/claude-dashboard/claude-dashboard/*/ 2>/dev/null | grep -E '/[0-9]+\.[0-9]+\.[0-9]+/$' | sort -V | tail -1

2. Update settings.json with the latest version path:

CFGDIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
LATEST_VERSION=$(ls -d "$CFGDIR"/plugins/cache/claude-dashboard/claude-dashboard/*/ 2>/dev/null | grep -E '/[0-9]+\.[0-9]+\.[0-9]+/$' | sort -V | tail -1 | xargs basename)
NEWCMD="node $CFGDIR/plugins/cache/claude-dashboard/claude-dashboard/${LATEST_VERSION}/dist/index.js" CFGDIR="$CFGDIR" node -e 'const fs=require("fs"),p=process.env.CFGDIR+"/settings.json";const s=JSON.parse(fs.readFileSync(p,"utf8"));s.statusLine=s.statusLine||{type:"command"};s.statusLine.command=process.env.NEWCMD;fs.writeFileSync(p,JSON.stringify(s,null,2));'

3. Show the user what was updated:

  • Previous version (if changed)
  • New version path
  • Remind them to restart Claude Code for changes to take effect

Example Output

Updated statusLine to version 1.7.0
Path: ~/.claude/plugins/cache/claude-dashboard/claude-dashboard/1.7.0/dist/index.js
(with CLAUDE_CONFIG_DIR set, the path is under that directory instead)

Restart Claude Code for changes to take effect.
Read more
Ships withclaude-dashboard

Comprehensive status line plugin for Claude Code — unified usage monitoring across Claude, Codex, Gemini, Antigravity, and z.ai CLIs, with context, rate limits, cost tracking, and a modular widget system.

Get the whole plugin
Stats
547
Stars
60
Forks
Active
Maintenance
TypeScript
Language
MIT
License
5d ago
Last commit
7mo ago
Created

Repo: uppinote20/claude-dashboard