prmkrctl

0.0.4 • Public • Published

Programaker CLI

A CLI tool to run operations on PrograMaker.

Note that this tool is still work in progress.

Installation

Assuming that you have NPM installed, you can get prmkrctl by launching npm install -g prmkrctl. Depending on your setup this might have to be launched as sudo npm install -g prmkrctl.

Alternatively, you can just call it using npx prmkrctl. This will download the tool and run it in a single step and skip the install step. Keep in mind that this way, you will have to call the tool through npx, for example, using npx prmkrctl login to run the login command.

Usage

  1. prmkrctl login -s <https://your-server> and introduce user & password.
  2. Run prmkrctl --help to list the possible commands
Usage: prmkrctl <command> [options]

Commands:
  prmkrctl login                            Login to a PrograMaker instance
  prmkrctl pull-programs                    Pull all programs from programaker
                                                                [aliases: pullp]
  prmkrctl local-list                       List all locally synchronized
                                            resources           [aliases: llist]
  prmkrctl pull-assets                      Pull all assets from programaker
                                                                [aliases: pulla]
  prmkrctl local-path <program_id>          Get the local path where a program
                                            is stored.          [aliases: lpath]
  prmkrctl push <program_id>                Upload a program to the server.
                                            (Restore a backup or upload local
                                            changes)
  prmkrctl rename <program_id> <new_name>   Rename a program on the server and
                                            on the local copy
  prmkrctl copy <program_id> <to_user>      Copy a program from one user to
  [<new_name>] [--group <group name>]       other
  prmkrctl set-translation <from_user>      Prepare to copy programs from an
  <to_user>                                 user to other

Options:
  -v, --verbose    Run with verbose logging                            [boolean]
      --user-list  Set user list used where configuration is read
                                                   [string] [default: "default"]
  -h, --help       Show help                                           [boolean]
      --version    Show version number                                 [boolean]

Features

  • [x] Login in multiple servers
  • [x] Pull from server
  • [x] Restore backup to server
  • [x] Copy from one server to other (translating the block's bridge id)
  • [x] Copy to group
  • [x] Push and Pull pages
  • [x] Push and Pull assets

Package Sidebar

Install

npm i prmkrctl

Weekly Downloads

2

Version

0.0.4

License

Apache-2.0

Unpacked Size

167 kB

Total Files

19

Last publish

Collaborators

  • kenkeiras