Remote

Using the remote command, it is possible to manage remote servers.

  ____                                               _
 |  _ \ ___ _ __ _ __ ___   __ _ _   _  __ _ _ __ __| |
 | |_) / _ \ '__| '_ ` _ \ / _` | | | |/ _` | '__/ _` |
 |  __/  __/ |  | | | | | | (_| | |_| | (_| | | | (_| |
 |_|   \___|_|  |_| |_| |_|\__, |\__,_|\__,_|_|  \__,_|
                           |___/

The official Permguard Command Line Interface - Copyright © 2022 Nitro Agility S.r.l.

This command manages remote server for tracking and interaction

  Find more information at: https://www.permguard.com/docs/0.0.x/command-line/how-to-use/

Usage:
  permguard remote [flags]
  permguard remote [command]

Available Commands:
  add         add a new remote ledger to track and interact with
  remove      remove a remote ledger from the configuration

Flags:
  -h, --help   help for remote

Global Flags:
  -o, --output string    output format (default "terminal")
  -v, --verbose          true for verbose output
  -w, --workdir string   workdir (default ".")

Use "permguard remote [command] --help" for more information about a command.

The output from your current version of Permguard may differ from the example provided on this page.

Create a Remote

The permguard remote add command allows to add a remote server.

permguard remote add origin localhost

output:

Remote origin has been added.
JSON Output
permguard remote add origin localhost --output json

output:

{
  "remotes": [
    {
      "zap_port": 9091,
      "zap_server": "localhost",
      "pap_port": 9092,
      "pap_server": "localhost",
      "remote": "origin"
    }
  ]
}

Get All Remotes

The permguard remote command allows for the retrieval of all remote servers.

permguard remote

output:

Your workspace configured remotes:
  - origin
JSON Output
permguard remote --output json

output:

{
  "remotes": [
    {
      "zap_port": 9091,
      "zap_server": "localhost",
      "pap_port": 9092,
      "pap_server": "localhost",
      "remote": "origin"
    }
  ]
}