Ledger
On this page
Using the ledgers
command, it is possible to manage locally checked out ledgers.
____ _
| _ \ ___ _ __ _ __ ___ __ _ _ _ __ _ _ __ __| |
| |_) / _ \ '__| '_ ` _ \ / _` | | | |/ _` | '__/ _` |
| __/ __/ | | | | | | | (_| | |_| | (_| | | | (_| |
|_| \___|_| |_| |_| |_|\__, |\__,_|\__,_|_| \__,_|
|___/
The official Permguard Command Line Interface - Copyright © 2022 Nitro Agility S.r.l.
This command Manages the ledger.
Find more information at: https://www.permguard.com/docs/0.0.x/command-line/how-to-use/
Usage:
permguard ledgers [flags]
Flags:
-h, --help help for ledger
Global Flags:
-o, --output string output format (default "terminal")
-v, --verbose true for verbose output
-w, --workdir string workdir (default ".")
The output from your current version of Permguard may differ from the example provided on this page.
Get All Ledgers
The permguard ledgers
command allows for the retrieval of all locally checked out ledgers.
permguard ledgers
output:
Your workspace configured ledgers:
- *origin/273165098782/magicfarmacia
JSON Output
permguard ledgers --output json
output:
{
"ledgers": [
{
"is_head": true,
"ref": "refs/remotes/origin/273165098782/fd1ac44e4afa4fc4beec622494d3175a",
"ledger_id": "fd1ac44e4afa4fc4beec622494d3175a",
"ledger_uri": "origin/273165098782/branches"
}
]
}