Running the 12step commands¶
12step¶
12step [OPTIONS] COMMAND [ARGS]...
Options
- -c, --config <config>¶
Config files or YAML strings to load for runtime vars. Can pass multiple to override options.
- -v, --verbose¶
More verbose logging
- -D, --data-dir <data_dir>¶
Data directory to download meeting data to
- -A, --asset-dir <asset_dir>¶
Asset directory to render static assets to
- --logfile <logfile>¶
Optional log file to wrie to
Environment variables
- PDF12STEP_CONFIG
Provide a default for
--config
- PDF12STEP_DATA_DIR
Provide a default for
--data-dir
- PDF12STEP_ASSET_DIR
Provide a default for
--asset-dir
download¶
Downloads meeting data from your site_url The site must be a WordPress site running the 12-step-meeting-list plugin.
12step download [OPTIONS]
Options
- -f, --format <format>¶
Format of downloaded meeting data
- Options
json | csv
- -s, --sections <sections>¶
Comma separated list of sections to download
flask¶
Run Flask webapp for Development. This should never be run in production! You must restart this if you make any changes to code or asset file
12step flask [OPTIONS]
Options
- -a, --address <address>¶
The host interface address to bind to
- -p, --port <port>¶
The port to bind to
html¶
Formats meeting HTML
12step html [OPTIONS]
Options
- -o, --output <output>¶
Output file name to render to. Use “-” for stdout
- -d, --download¶
Download the assets before rendering. Produces up to date PDFs
- -l, --limit <limit>¶
Limit the rendering to this number of meetings
- -t, --template <template>¶
Base template to render
Environment variables
- PDF12STEP_TEMPLATE
Provide a default for
--template
init¶
Prompts you to create a custom config Iniitialize your custom configuration interactively by answering a few questions
12step init [OPTIONS]
Options
- -o, --output <output>¶
Filename to output your config to
pdf¶
Formats meeting PDFs
12step pdf [OPTIONS]
Options
- -o, --output <output>¶
Output file name to render to. Use “-” for stdout
- -d, --download¶
Download the assets before rendering. Produces up to date PDFs
- -l, --limit <limit>¶
Limit the rendering to this number of meetings
- -t, --template <template>¶
Base template to render
Environment variables
- PDF12STEP_TEMPLATE
Provide a default for
--template
shell¶
Drops into an IPython shell Contains the context, config and meetings instances
12step shell [OPTIONS]