Skip to main content

Generate Code

The gencode commands generates the code from the live infrastructure.

Command Options

gc help gencode
Usage: gc gencode|c [options]

Generate infrastruture code from deployed resources

--inventory <file> resources inventory (default:
--no-inventory-fetch do not fetch the inventory
--no-download do not download assets
-o, --outputCode <file> resources.js output (default: "resources.js")
--outputEnv <file> default.env environment variables (default:
-m, --mapping <file> mapping file (default: "mapping.json")
--no-prompt no prompt for saving
-p, --provider <value> Filter by provider, multiple values allowed
-h, --help display help for command