.nh .TH podman-generate-spec 1 .SH NAME .PP podman-generate-spec - Generate Specgen JSON based on containers or pods .SH SYNOPSIS .PP \fBpodman generate spec\fP [\fIoptions\fP] *container | \fIpod\fP .SH DESCRIPTION .PP \fBpodman generate spec\fP generates SpecGen JSON from Podman Containers and Pods. This JSON can be printed to a file, directly to the command line, or both. .PP This JSON can then be used as input for the Podman API, specifically for Podman container and pod creation. Specgen is Podman's internal structure for formulating new container-related entities. .SH OPTIONS .SS \fB--compact\fP, \fB-c\fP .PP Print the output in a compact, one line format. This is useful when piping the data to the Podman API .SS \fB--filename\fP, \fB-f\fP=\fBfilename\fP .PP Output to the given file. .SS \fB--name\fP, \fB-n\fP .PP Rename the pod or container, so that it does not conflict with the existing entity. This is helpful when the JSON is to be used before the source pod or container is deleted.