Init
On this page
Using the init
command, it is possible to initialize a new permguard workspace.
____ _
| _ \ ___ _ __ _ __ ___ __ _ _ _ __ _ _ __ __| |
| |_) / _ \ '__| '_ ` _ \ / _` | | | |/ _` | '__/ _` |
| __/ __/ | | | | | | | (_| | |_| | (_| | | | (_| |
|_| \___|_| |_| |_| |_|\__, |\__,_|\__,_|_| \__,_|
|___/
The official Permguard Command Line Interface - Copyright © 2022 Nitro Agility S.r.l.
This command initializes a permguard workspace.
Examples:
# initialize a new working directory
permguard init
Find more information at: https://www.permguard.com/docs/0.0.x/command-line/how-to-use/
Usage:
permguard init [flags]
Flags:
-h, --help help for init
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.
Initialize a workspace
The permguard init
command initializes a new permguard workspace.
permguard init
output:
Initialized empty permguard ledger in '.'.
JSON Output
permguard init --output json
output:
{
"workspace": {
"policy_engine": {
"language": "cedar"
},
"root": "/Users/nicolagallo/source/nitro/permguard-workspace/ledgers/playground-cedar"
}
}