Checkout
Using the checkout command, it is possible to checkout out a remote ledger locally.
Usage:
permguard checkout [flags]
Flags:
-h, --help help for checkout
Global Flags:
-o, --output string output format (default "terminal")
--spiffe-enabled enable native SPIFFE mTLS via Workload API
--spiffe-endpoint string SPIFFE Workload API socket path (defaults to SPIFFE_ENDPOINT_SOCKET env)
--tls-ca-file string path to CA certificate for server verification (PEM)
--tls-cert-file string path to client certificate for mTLS (PEM)
--tls-key-file string path to client private key for mTLS (PEM)
--tls-skip-verify skip server certificate verification (insecure, dev only)
-v, --verbose true for verbose output
-w, --workdir string workdir (default ".")
caution
The output from your current version of Permguard may differ from the example provided on this page.
Check out a ledger
The permguard checkout command allows you to check out a remote ledger locally.
permguard checkout origin/273165098782/root
output:
Ledger root has been added.
JSON Output
permguard checkout origin/273165098782/root --output json
output:
{
"ledgers": [
{
"is_head": true,
"ref": "refs/remotes/origin/273165098782/fd1ac44e4afa4fc4beec622494d3175a",
"ledger_id": "fd1ac44e4afa4fc4beec622494d3175a",
"ledger_uri": "origin/273165098782/branches"
}
]
}