Checkpoint commands
Keep and restore a scene file with its assets and checksums.
Local checkpoints are files you name. Read Versions and checkpoints for the library's own.
puni checkpointKeep and restore a scene file with its assets and checksums.
| Command | What it does |
|---|---|
puni checkpoint create | Write a named checkpoint of a local scene. |
puni checkpoint restore | Validate a checkpoint's document and assets, then write it as the scene. |
#checkpoint create
Write a named checkpoint of a local scene.
puni checkpoint create --file scene.json --name Before --output before.json
| Flag | Type | Default | Values | What it does |
|---|---|---|---|---|
--file required | string | The scene document or portable file to read. `-` reads it from standard input. | ||
--name required | string | The checkpoint's name. | ||
--output required | string | Where to write the checkpoint. | ||
--revision | number | A known remote revision to record with it. | ||
--asset-root | string | A directory mirroring the scene's asset URIs, for a bare document whose assets live on disk. | ||
--overwrite | boolean | false | Replace the output file if it already exists. | |
--json | boolean | false | Answer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope. | |
--help -h | boolean | Print the command list. |
#Run checkpoint create
puni checkpoint create --file scene.json --name 'Before colour' --output before.json --json#checkpoint restore
Validate a checkpoint's document and assets, then write it as the scene.
puni checkpoint restore --file before.json --output scene.json --overwrite
| Flag | Type | Default | Values | What it does |
|---|---|---|---|---|
--file required | string | The checkpoint to restore. | ||
--output required | string | Where to write the scene. | ||
--overwrite | boolean | false | Replace the output file if it already exists. | |
--json | boolean | false | Answer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope. | |
--help -h | boolean | Print the command list. |
#Run checkpoint restore
puni checkpoint restore --file before.json --output scene.json --overwrite --jsonBack to the command line index for every group.
Was this useful?