Skip to content

Cloud

fw data push

data push

Send the project's data catalog to Framework Cloud

Added in 0.5.1.

Sends this project's data catalog to its data registry on Framework Cloud, after showing what changes there and asking. New copies of the project, ZIP downloads, and Update on GitHub use the new registry. Entries only on Framework Cloud are kept unless you pass --remove. When the registry changed on Framework Cloud since this project last pulled it, fw refuses: run fw data pull first, or pass --force to replace Cloud's newer changes. No data files and no hashes are sent.

Without a terminal, pass --yes. --dry-run sends nothing. In R and Python projects, fw runs the language package's push_data_registry().

Usage

fw data push [flags]

Options

Name Type Description
--dry-run bool

show what would change without sending anything

--force bool

push even when the registry changed on Framework Cloud since the last pull

--json bool

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

--remove bool

remove entries from the Cloud registry that this project doesn't have

-y, --yes bool

push without asking (required without a terminal)

Value

With --json, for Stata projects, {"revision", "changes", "applied", "dry_run", "message"}, matching push_data_registry(): changes lists Framework Cloud's added, changed, removed, and kept. 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 data push --dry-run
fw data push
fw data push --yes --remove

Related reference

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