Utility to manipulate Platforma Blocks and Block Registry
npm install @platforma-sdk/block-tools``sh-session`
$ npm install -g @platforma-sdk/block-tools
$ block-tools COMMAND
running command...
$ block-tools (--version)
@platforma-sdk/block-tools/2.5.92 darwin-arm64 node-v20.19.4
$ block-tools --help [COMMAND]
USAGE
$ block-tools COMMAND
...
- block-tools build-meta
- block-tools build-model
- block-tools list-overview-snapshots
- block-tools mark-stable
- block-tools pack
- block-tools publish
- block-tools refresh-registry
- block-tools restore-overview-from-snapshot
- block-tools upload-package-v1
Extracts meta information from blocks package.json and outputs meta.json with embedded binary and textual information linked from the meta section.
`
USAGE
$ block-tools build-meta -o
FLAGS
-i, --modulePath=
-o, --destination=
DESCRIPTION
Extracts meta information from blocks package.json and outputs meta.json with embedded binary and textual information
linked from the meta section.
`
Extracts and outputs block model JSON from pre-built block model module
`
USAGE
$ block-tools build-model [-i
FLAGS
-b, --sourceBundle=
rendering to work
-i, --modulePath=
-o, --destination=
DESCRIPTION
Extracts and outputs block model JSON from pre-built block model module
`
List all available global overview snapshots in the registry
`
USAGE
$ block-tools list-overview-snapshots -r [--json]
FLAGS
-r, --registry=
DESCRIPTION
List all available global overview snapshots in the registry
`
Mark target block stable
`
USAGE
$ block-tools mark-stable -r [-i
FLAGS
-i, --modulePath=
-r, --registry= (required) full address of the registry
-v, --version-override=
--[no-]refresh refresh repository after adding the package
--unmark reverses meaning of this command, flag can be used to remove "stable" flag from the
package
DESCRIPTION
Mark target block stable
`
Builds block pack and outputs a block pack manifest consolidating all references assets into a single folder
`
USAGE
$ block-tools pack [-i
FLAGS
-i, --modulePath=
-o, --destinationPath=
DESCRIPTION
Builds block pack and outputs a block pack manifest consolidating all references assets into a single folder
`
Publishes the block package and refreshes the registry (for v2 block-pack schema)
`
USAGE
$ block-tools publish -r [-m
FLAGS
-m, --manifest=
-r, --registry= (required) full address of the registry
-v, --version-override=
--[no-]refresh refresh repository after adding the package
--unstable do not add the published package to stable channel
DESCRIPTION
Publishes the block package and refreshes the registry (for v2 block-pack schema)
`
Refresh overview files based on published but not proecessed artefacts
`
USAGE
$ block-tools refresh-registry -r [-m
FLAGS
-m, --mode=
-r, --registry= (required) full address of the registry
DESCRIPTION
Refresh overview files based on published but not proecessed artefacts
`
Restore global overview from a snapshot
`
USAGE
$ block-tools restore-overview-from-snapshot -r -s
FLAGS
-r, --registry=
DESCRIPTION
Restore global overview from a snapshot
`
Uploads V1 package and refreshes the registry
`
USAGE
$ block-tools upload-package-v1 [-r ] [-o
file_path | package_name=file_path...] [--refresh]
FLAGS
-f, --file=file_path | package_name=file_path... [default: ] package files
-m, --meta=
-o, --organization=
-p, --package=
-r, --registry= full address of the registry or alias from .pl.reg
-v, --version=
--[no-]refresh refresh repository after adding the package
DESCRIPTION
Uploads V1 package and refreshes the registry
``