Skip to main content

upgrade

Upgrade the skillshare CLI binary and/or the built-in skillshare skill.

skillshare upgrade              # Upgrade both CLI and skill
skillshare upgrade --cli # CLI only
skillshare upgrade --skill # Skill only

When to Use​

  • A new version of the skillshare CLI is available
  • The built-in skillshare skill needs updating
  • After doctor reports an available update
skillshare upgrade --skill --dry-run
Skill v0.21.12 → v0.21.13 · would download

Dry run — nothing was written

What Happens​

Options​

FlagDescription
--cliUpgrade CLI only
--skillUpgrade skill only (prompts if not installed)
--force, -fSkip confirmation prompts
--dry-run, -nPreview without making changes
--help, -hShow help

Homebrew Users​

If you installed via Homebrew, skillshare upgrade automatically delegates to brew upgrade:

skillshare upgrade
# → brew update && brew upgrade skillshare

You can also use Homebrew directly:

brew upgrade skillshare

Nix Users​

If you installed with Nix, skillshare upgrade leaves the CLI alone, because replacing a file in the Nix store would corrupt it. When a newer version exists, it tells you how to get it instead. For nix profile add, that is:

nix profile upgrade skillshare

When a NixOS, Home Manager or overlay configuration provides skillshare, update skillshare in that configuration (for a flake input, nix flake update skillshare) and rebuild. The dashboard's upgrade button shows the same advice.

skillshare upgrade --skill still updates the built-in skill.

PyPI Users​

If you installed the skillshare-cli package with uv, pipx, pip or pixi, skillshare upgrade leaves the CLI alone, because the installer keeps a record of the installed version and replacing the binary would make that record wrong. When PyPI has a newer version, it shows the command for your installer instead:

uv tool upgrade skillshare-cli                # uv tool install
pipx upgrade skillshare-cli # pipx
pip install --upgrade skillshare-cli # pip
uv pip install --upgrade skillshare-cli # uv pip, in a uv venv without pip
uvx --from skillshare-cli@latest skillshare # uvx
pixi upgrade skillshare-cli # pixi add --pypi, in a pixi project

It compares against PyPI rather than GitHub, so it never suggests a release your installer cannot fetch yet.

The dashboard's upgrade button shows the same advice, and skillshare upgrade --skill still updates the built-in skill.

On Windows, uv and pipx put a copy of skillshare.exe on your PATH, which skillshare cannot tell apart from a manual install, so skillshare upgrade updates that copy directly. Run your installer's upgrade command instead to keep its record current.

pixi Users​

The skillshare conda package comes from prefix.dev's experimental github-releases channel, which repackages GitHub release binaries and may not carry every release. If pixi installed it, skillshare upgrade leaves the CLI alone, because pixi keeps a record of the installed version, and shows pixi's command instead:

pixi global update skillshare   # pixi global install; use your environment's name if you chose one
pixi upgrade skillshare # pixi add, in a pixi project

It compares against GitHub releases, which the channel picks up some time after they are published, so pixi may not see the newest version straight away. The dashboard's upgrade button shows the same advice, and skillshare upgrade --skill still updates the built-in skill.

Examples​

# Standard upgrade (both CLI and skill)
skillshare upgrade

# Preview what would be upgraded
skillshare upgrade --dry-run

# Force upgrade without prompts
skillshare upgrade --force

# Upgrade only the CLI binary
skillshare upgrade --cli

# Upgrade only the skillshare skill
skillshare upgrade --skill

After Upgrading​

If you upgraded the skill, run skillshare sync to distribute it:

skillshare upgrade --skill
skillshare sync # Distribute to all targets

What Gets Upgraded​

CLI Binary​

The skillshare executable itself. Downloads from GitHub releases.

The archive is verified against the release's checksums.txt before your running binary is replaced, so a damaged or mismatched download stops the upgrade instead of installing itself. The current binary stays untouched, and the error names the mismatch.

In a terminal, the download shows how much has arrived, so a slow connection does not look like a hang. The Web UI assets below show the same.

Downloading v0.21.4...  3.2 MB / 9.1 MB

The install script now defaults to ~/.local/bin, where normal updates do not need sudo. Existing installations keep their current location.

If the binary is in a protected directory (e.g., /usr/local/bin), skillshare asks sudo to replace only the binary — no manual prefix needed. The built-in skill, UI assets, and logs are still written as you, so don't run the whole upgrade with sudo: that leaves root-owned files in your skills source, and a later git pull fails with Permission denied.

If an earlier upgrade already left such files, updating the built-in skill fails with permission denied, and the error shows the command that gives the skills source back to you, for example:

sudo chown -R "$(id -un)" ~/.config/skillshare/skills

When there is no terminal to ask for a password on (the dashboard's Update now button, CI), the upgrade stops right away and tells you to run skillshare upgrade in a terminal instead of waiting for input. Cached sudo credentials and NOPASSWD setups still upgrade without a prompt.

Web UI Assets​

After upgrading, skillshare pre-downloads the Web UI frontend assets for the new version. These are cached at ~/.cache/skillshare/ui/<version>/ and served when you run skillshare ui.

The pre-download keeps both the new version's assets and the pre-upgrade CLI version's assets, so an already-running UI server can still load its files. Other cached versions are removed. Restart the app or UI server between upgrades: a second upgrade without a restart can remove the oldest server's assets.

If the pre-download fails (e.g. network issues), the assets will be downloaded on the next skillshare ui launch instead.

skillshare Skill​

The built-in skillshare skill that adds the /skillshare command to AI CLIs. Located at:

~/.config/skillshare/skills/skillshare/SKILL.md

If you move it into a folder, for example from the dashboard, upgrade --skill, status, doctor and the dashboard find it there, and upgrade --skill updates it in place.

Keep it local to each machine​

When several machines share your skills source through Git, updating the built-in skill changes tracked files: the skill folder and its entry in .metadata.json. A machine that only pulls, or a branch that only accepts pull requests, then has local changes to deal with. To give each machine its own copy instead, take the skill out of the repository once, on one machine:

  1. Add the skill folder to .gitignore: skills/skillshare/ when the repository is the whole config folder (git_root: root), or skillshare/ when it is the skills folder.
  2. Stop tracking it, for example git rm -r --cached skills/skillshare. The files stay on disk.
  3. Run skillshare upgrade --skill --force. Because Git now ignores the skill, this removes its entry from .metadata.json.

Commit these changes and get them onto the shared branch. After pulling them, run skillshare upgrade --skill once on each other machine and confirm the install; a script needs --force, because without a terminal the answer is no. From then on, skillshare upgrade and the update button in the dashboard or the app install new versions there without touching .metadata.json, so the checkout stays clean, and the result says local to this machine. skillshare update does not update it, and skillshare init installs it the same way on a new machine.

While Git still tracks the skill, updates write it and its entry as before.

See Also​

  • update — Update other skills and repos
  • status — Check current versions
  • doctor — Diagnose issues