Skip to main content

cmd_create

Function cmd_create 

Source
pub async fn cmd_create(
    client: &VtaClient,
    context: Option<&str>,
    file: PathBuf,
) -> Result<(), Box<dyn Error>>
Expand description

pnm did-templates create --file <path> [--context X] — upload a template.

The file is validated locally before upload so authoring errors fail fast without burning a round-trip to a super-admin ACL check.