Skip to main content
Version: development

Push Commands

Send repository state to local or remote destinations.


pvr put

Copy the local repository to a target location (local or REST).

pvr put /path/to/destination
pvr put https://pvr.pantahub.com/user/device
pvr put # uses last target

Copies the state JSON and all objects to the destination.

Flags:

FlagDescription
--force, -fForce re-upload of existing objects

pvr post

Post the local repository as a new revision to a device trail on Pantahub.

pvr post https://api.pantahub.com/trails/<DEVICE_ID>
pvr post user/device # shorthand
pvr post # last-used target
pvr post --envelope '{"key":"val"}' --commit-msg "my message"
pvr post --rev my-tag

Flags:

FlagDescription
--envelope, -eJSON envelope to wrap the post. Default: {}
--commit-msg, -mAdd commit-msg field to the envelope
--revName for the new revision
--force, -fForce re-upload of existing objects

pvr export

Export the repository into a single-file tarball.

pvr export device.tar.gz
pvr export device.tar # plain tar
pvr export --parts=bsp,my-app device.tgz

Flags:

FlagDescription
--parts, -pComma-separated list of parts to export; empty = export all

pvr import

Import a tarball produced by pvr export into the current working directory. Does not run pvr checkout — the working directory stays untouched.

pvr import device.tar.gz
pvr import device.tar
pvr import device.tgz

Supports .gz, .tgz, .zip, and plain .tar. Zip files must contain a tar/tar.gz with the same base name.

Flags: none


pvr putobjects

Upload local objects to a remote Pantahub objects endpoint.

pvr putobjects https://api.pantahub.com/objects

Flags:

FlagDescription
--force, -fForce re-upload of existing objects