3.5.8 • Published 5 months ago

@platforma-sdk/bootstrap v3.5.8

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
5 months ago

The CLI multitool for Platforma Block developers.

Installation

npm install --global @platforma-sdk/bootstrap@latest
# or
pnpm install --global @platforma-sdk/bootstrap@latest

or 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 --help

All commands have --help flag that make the command to report its usage information:

pl-dev --help

Local 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 NAME creates instance of Platforma Backend inside docker container on your local computer. You can start/stop this instance with svc up NAME and svc down NAME commands, and connect to it via localhost:6345 address.
  • pl-dev svc list lists 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 MyLocalPl

The 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 with svc up <NAME>. Only one instance for user can be started at a time for now. When you call up for 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 myAwesomeBucket as a primary storage, keeping all the data under some-prefix prefix 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/
  • 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"

Block skeleton generation

To create new block skeleton, run

pl-dev create-block
2.8.1

12 months ago

2.8.0

12 months ago

3.2.2

8 months ago

3.2.1

8 months ago

3.2.0

8 months ago

3.2.6

8 months ago

3.2.5

8 months ago

3.2.4

8 months ago

3.2.3

8 months ago

2.9.1

10 months ago

2.5.9

1 year ago

2.7.0

12 months ago

2.7.2

12 months ago

2.7.1

12 months ago

3.2.9

8 months ago

3.2.8

8 months ago

3.2.7

8 months ago

3.2.13

8 months ago

3.1.3

9 months ago

3.2.12

8 months ago

3.1.2

9 months ago

3.1.1

9 months ago

3.1.0

10 months ago

3.5.3

6 months ago

3.1.7

9 months ago

3.5.2

6 months ago

3.1.6

9 months ago

3.5.1

6 months ago

3.1.5

9 months ago

3.5.0

6 months ago

3.1.4

9 months ago

2.8.3

11 months ago

2.8.2

11 months ago

2.8.5

11 months ago

2.8.4

11 months ago

3.2.11

8 months ago

3.2.10

8 months ago

3.1.12

9 months ago

3.1.11

9 months ago

3.1.14

9 months ago

3.1.13

9 months ago

3.1.16

9 months ago

3.1.15

9 months ago

3.1.18

9 months ago

3.1.17

9 months ago

3.1.10

9 months ago

2.6.1

12 months ago

2.6.0

12 months ago

2.6.3

12 months ago

2.6.2

12 months ago

3.5.7

5 months ago

3.5.6

5 months ago

3.5.5

6 months ago

3.1.9

9 months ago

3.5.4

6 months ago

3.1.8

9 months ago

3.5.8

5 months ago

3.4.0

7 months ago

3.1.23

9 months ago

3.1.22

9 months ago

3.1.24

9 months ago

3.0.1

10 months ago

3.4.4

7 months ago

3.4.3

7 months ago

3.4.2

7 months ago

3.4.1

7 months ago

3.4.10

7 months ago

3.0.0

10 months ago

3.4.11

7 months ago

3.4.12

6 months ago

3.1.21

9 months ago

3.1.20

9 months ago

2.5.10

1 year ago

3.1.19

9 months ago

2.9.0

10 months ago

3.4.8

7 months ago

3.4.7

7 months ago

3.4.6

7 months ago

3.4.5

7 months ago

3.4.9

7 months ago

3.3.1

7 months ago

3.3.0

7 months ago

2.5.8

1 year ago

2.5.7

1 year ago

2.5.6

1 year ago

2.5.5

1 year ago

2.5.4

1 year ago

2.5.3

1 year ago

2.5.2

1 year ago

2.5.1

1 year ago

2.5.0

1 year ago

2.4.4

1 year ago

2.4.3

1 year ago

2.4.2

1 year ago

2.4.1

1 year ago

2.4.0

1 year ago

2.3.0

1 year ago

2.2.0

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.22.1

1 year ago

1.22.0

1 year ago

1.21.1

1 year ago

1.21.0

1 year ago

1.20.0

1 year ago

1.19.3

1 year ago