@platforma-sdk/bootstrap v3.5.8
The CLI multitool for Platforma Block developers.
Installation
npm install --global @platforma-sdk/bootstrap@latest
# or
pnpm install --global @platforma-sdk/bootstrap@latestor use it without installation with
npx @platforma-sdk/bootstrap@latest '<args>'
# or
pnpx @platforma-sdk/bootstrap@latest '<args>'Key features:
- empty block skeleton generation
- local Platforma Backend service control
Usage:
pl-dev '<command>'
# or without installation
npx @platforma-sdk/bootstrap@latest '<command>'The tool has 'tree' command structure, like aws-cli, docker, git and many other CLI software:
commands about specific type of operations are grouped under common prefix, i.e. all operations for
platforma backend service instances are under svc group:
pl-dev svc create --helpAll commands have --help flag that make the command to report its usage information:
pl-dev --helpLocal Platforma Backend service control
To create, change, start, stop and delete Platforma Backend on your local computer, use commands in svc group:
pl-dev svc create docker NAMEcreates instance of Platforma Backend inside docker container on your local computer. You can start/stop this instance withsvc up NAMEandsvc down NAMEcommands, and connect to it vialocalhost:6345address.pl-dev svc listlists available service instances you created earlier.
Here are few examples on how to prepare your first instance of Platforma Backend started right on your laptop without any containerisation:
pl-dev svc create local MyLocalPl
pl-dev svc up MyLocalPlThe tool will download Platforma Backend archive for your OS and architecture, generate configuration file and all necessary directories.
up command will make the service instance start.
How-To's
NOTE: after creating instances with
svc create * <NAME>command, start this instance withsvc up <NAME>. Only one instance for user can be started at a time for now. When you callupfor one instance, all other instances get stopped automatically.
- Docker-based:
- Create docker container, starting fake S3 service (minio) locally to use it as a primary storage:
pl-dev svc create docker s3 MyInstance - Create docker container, connecting it to AWS S3 bucket
myAwesomeBucketas a primary storage, keeping all the data undersome-prefixprefix inside the bucket:pl-dev svc create docker MyInstance --storage-primary "s3://myAwesomeBucket/some-prefix?region=eu-central-1" - Mount custom directory with dev blocks from the host into docker container:
pl-dev svc create docker MyInstance --mount /home/myusername/platforma-dev/blocks/
- Create docker container, starting fake S3 service (minio) locally to use it as a primary storage:
- Local instances:
- Create service that starts locally on current host (no containers) and uses custom S3 service (not AWS) as library:
pl-dev svc create local MyInstance --storage-library "s3es://my-corporate-s3.example.com/rawDataBucket/?region=company-internal-region"
- Create service that starts locally on current host (no containers) and uses custom S3 service (not AWS) as library:
Block skeleton generation
To create new block skeleton, run
pl-dev create-block12 months ago
12 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
10 months ago
1 year ago
12 months ago
12 months ago
12 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
10 months ago
6 months ago
9 months ago
6 months ago
9 months ago
6 months ago
9 months ago
6 months ago
9 months ago
11 months ago
11 months ago
11 months ago
11 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
12 months ago
12 months ago
12 months ago
12 months ago
5 months ago
5 months ago
6 months ago
9 months ago
6 months ago
9 months ago
5 months ago
7 months ago
9 months ago
9 months ago
9 months ago
10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
10 months ago
7 months ago
6 months ago
9 months ago
9 months ago
1 year ago
9 months ago
10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago