Minka Ledger Docs
How To Guides

How to export a layout


CLI allows users to export layouts.

Exporting a layout with CLI

Ensure that you are connected to a server and have an active ledger set in the context before proceeding.

There are couple of ways to export a layout:

Exporting a full layout from the currently active ledger

minka layout export --ledger

This command will export the layout from the currently active ledger and save it to the layouts folder in the minka CLI directory. The layout will be saved as a JSON file named after the current ledger, with proper formatting.

Exporting other layouts

minka layout export [--raw]

This command will open an interactive prompt that will allow you to select the layout you want to export. There are three types of layouts you can choose from:

  • Built-in layouts - layouts that are provided by the Minka team and reside in the Minka CLI.
  • Custom layouts - layouts that are present in the layouts folder in the minka CLI directory.
  • Policy layouts - policy layouts that are stored in the ledger.

The --raw flag is optional and will export the layout in raw format - format where inputs values are not resolved.

On this page