csmith@uptown:~/src/server/cloud-init/cloud-init (analyze)$ python3 -m cloudinit.cmd.main -h
usage: /home/csmith/src/server/cloud-init/cloud-init/cloudinit/cmd/main.py
[-h] [--version] [--file FILES] [--debug] [--force]
{analyze,init,modules,query,single,dhclient-hook,features} ...
optional arguments:
-h, --help show this help message and exit
--version, -v show program's version number and exit
--file FILES, -f FILES
additional yaml configuration files to use
--debug, -d show additional pre-action logging (default: False)
--force force running even if no datasource is found (use at
your own risk)
Subcommands:
{analyze,init,modules,query,single,dhclient-hook,features}
analyze Analyze cloud-init logs and data
init initializes cloud-init and performs initial modules
modules activates modules using a given configuration key
query query information stored in cloud-init
single run a single module
dhclient-hook run the dhclient hookto record network info
features list defined features
csmith@uptown:~/src/server/cloud-init/cloud-init (analyze)$ python3 -m cloudinit.cmd.main analyze -h
usage: /home/csmith/src/server/cloud-init/cloud-init/cloudinit/cmd/main.py analyze
[-h] {blame,show,dump} ...
optional arguments:
-h, --help show this help message and exit
Subcommands:
{blame,show,dump}
blame Print list of executed stages ordered by time to init
show Print list of in-order events during execution
dump Dump cloud-init events in JSON format