Skip to content
PuniDocs
Open Puni

Interface commands


Turn a Paper layout into an interface object.

A Paper layout becomes an interface object. Read Import for the other sources.

puni interfaceTurn a Paper layout into an interface object.

#interface import

Read a Paper .tsx file and write the commands that add it as an interface module, with a list of anything it could not keep.

puni interface import --file paper.tsx --output edits.json [--name Interface]

FlagTypeDefaultValuesWhat it does
--file requiredstringThe Paper source file.
--output requiredstringWhere to write the command JSON.
--namestringThe module's name.
--overwritebooleanfalseReplace the output file if it already exists.
--jsonbooleanfalseAnswer with one JSON envelope instead of the shell view. Exception: agent serve streams raw lifecycle JSON lines before its final envelope.
--help -hbooleanPrint the command list.

#Run interface import

bash
puni interface import --file card.tsx --output edits.json --name Card --json

Back to the command line index for every group.

Was this useful?