import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";
<MarkdownChipRow labels={["Reference"]} />
The dfx schema command prints the schema for dfx.json.
dfx schema [option] [flag]You can use the following option with the dfx schema command.
| Option | Description |
|---|---|
--for <which> |
Display schema for which JSON file. (default: dfx, possible values: dfx, networks, dfx-metadata, extension-manifest) |
--outfile <outfile> |
Specifies a file to output the schema to instead of printing it to stdout. |
You can print the schema for dfx.json by running the following command:
dfx schemaYou can print the schema for networks.json by running the following command:
dfx schema --for networksYou can print the schema for the "dfx" metadata JSON (which contains fields such as "pullable", "tech_stack", etc) by running the following command:
dfx schema --for dfx-metadataIf you want to write the schema for dfx.json to path/to/file/schema.json, you can do so by running the following command:
dfx schema --outfile path/to/file/schema.json