Skip to content

Cloud

fw skills pull

skills pull

Bring the project's skills up to date with its setup on Framework Cloud

Added in 0.5.0.

Reads the project's current setup on Framework Cloud with its project token (FW_PROJECT_TOKEN in .env) and brings its skills up to date: it adds missing skills and updates unedited ones to their latest versions. When you are logged in, Cloud skills come at their newest version. Skills you edited are kept and listed; --overwrite replaces them, moving the old copies to .framework/skills-backups/ first. A skill no longer in the setup is never deleted, only listed. The Skills table in AGENTS.md is refreshed.

Without a project token, or when Framework Cloud can't be reached, fw uses the package skills for the project's type and says so. In R and Python projects, fw runs the language package's pull_skills(), which ships those skills. --dry-run reports what would change and writes nothing.

Usage

fw skills pull [flags]

Options

Name Type Description
--dry-run bool

report what would change without writing anything

--json bool

print JSON on stdout, for scripts and agents (Stata projects)

--overwrite bool

replace locally edited skills too, after backing them up to .framework/skills-backups/

--url string

Framework Cloud server

Environment variable: FW_CLOUD_URL

Value

With --json, for Stata projects, {"source", "dry_run", "skills", "counts", "message", "notes", "backups"}. source is cloud, or package when Framework Cloud gave no list. Each skill has name, status, and paths. Statuses: added (installed where nothing was), restored (a deleted tracked copy put back), updated (moved to a newer version), current, edited (local edits kept), replaced (local edits backed up and overwritten, with --overwrite), diverged (tracked copies differ, or one is missing beside an edited one; nothing written), missing (a tracked copy's folder is gone, or every copy is and pull can't restore it), removed (no longer in the setup), unavailable (Framework Cloud wasn't reached, or fw doesn't ship it; left alone), failed (a copy couldn't be read as a skill), kept (left alone because another skill, or another variant, tracks the folder), and untracked (a copy not in the lock; left alone). Every row that isn't added, restored, updated, or current has reason, one plain sentence, and hint, the exact command that fixes it, when there is one. reason_code, hint_key, and hint_args are the machine forms R and Python share, or null. counts has a number for each status. R and Python projects print their package's own summary.

Exit codes

Code Meaning
0 Success
1 Failure
2 Bad flags or arguments
3 Not logged in, or the server rejected the token
4 The server has no such project or resource
5 Browser login was denied, or its code expired
6 An upload has "private" in a path; rerun with --include-private if you mean to send it

With --json, a failure also prints one JSON line on stderr: {"error": "...", "exit_code": 4}. Exit code 6 adds "reason": "private_path".

Examples

fw skills pull
fw skills pull --dry-run
fw skills pull --overwrite --json

Related reference

Search guides and reference for R, Python, Stata, the CLI, and Framework Cloud.