Skip to content

Cloud

fw push

push

Send the project's packages, edited skills, and data registry to Framework Cloud

Added in 0.6.0.

Pushes the project's package list, locally edited skills, and data registry to Framework Cloud. fw previews outgoing changes grouped by section and asks once before sending. New setups, ZIP downloads, and Update on GitHub use the updated package list and data registry; pushed skill versions apply wherever each skill is attached. Cloud-only packages and data entries are kept unless --remove is passed. Data files and file hashes are never uploaded.

If a section changed on Framework Cloud since the last pull, fw refuses that section until you run fw pull or pass --force. Remaining sections still push, and fw reports each section's status. Edited skills authenticate with fw login; packages and the data registry use FW_PROJECT_TOKEN.

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

Usage

fw push [flags]

Options

Name Type Description
--dry-run bool

show what would change without sending anything

--force bool

push even when a part changed on Framework Cloud since the last pull

--json bool

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

--remove bool

remove packages and data entries from Framework Cloud that this project doesn't have

--url string

Framework Cloud server for skills

Environment variable: FW_CLOUD_URL

-y, --yes bool

push without asking (required without a terminal)

Value

With --json, for Stata projects, {"packages", "skills", "data_registry", "applied", "failed", "dry_run", "message"}. packages is {"managed": false}. skills matches fw skills push --json, and data_registry matches fw data push --json (or null when unread). applied lists the sections pushed, 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 push --dry-run
fw push
fw push --yes --remove

Related reference

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