Skip to content

Cloud

fw pull

pull

Bring the project's packages, skills, and data registry up to date with Framework Cloud

Added in 0.6.0.

Pulls project packages, skills, and data registry definitions from Framework Cloud using FW_PROJECT_TOKEN in .env. fw groups incoming changes by section and asks once before applying them. New packages are added to settings and installed. Missing skills are added and unedited skills are updated. New data entries are written into settings; data files never move. Local files are never deleted, and local edits (version pins, edited skills, data definitions) are preserved unless --overwrite is passed (edited skills are backed up first). If one section fails, the remaining sections still apply and fw reports each section's status.

Without a terminal, pass --yes to apply or --dry-run to list changes. In R and Python projects, fw runs pull_all(). For Stata projects, fw syncs skills and the data registry. Use fw skills pull or fw data pull for one section.

Usage

fw pull [flags]

Options

Name Type Description
--dry-run bool

list the changes without applying them

--json bool

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

--overwrite bool

use Framework Cloud's packages, skills, and data definitions over local edits (edited skills are backed up first)

-y, --yes bool

apply without asking (required without a terminal)

Value

With --json, for Stata projects, {"packages", "skills", "data_registry", "applied", "failed", "dry_run", "message"}. packages is {"revision", "managed": false} because Framework Cloud does not manage Stata package installation directly. skills matches fw skills pull --json, and data_registry matches fw data pull --json (or null when unread). applied lists the sections applied (skills, data_registry), and failed maps each failed section to its error message. R and Python projects print their package's 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 pull --dry-run
fw pull
fw pull --yes --overwrite

Related reference

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