Atomic Gum, package version 0.6.24 includes CLI utilities to assist in converting a site to use Atomic Gum or otherwise switch themes.
CLI commands can be dangerous. Always backup first and run the test/list options before using these commands live.
concrete/bin/concrete5 gum:set_block_template
Globally set blocks to a new block template across all instances of a block in an area. Configure a starting page, area and block handle. Filter by block template handle or bID.
gum:set_block_template [-p|--path [PATH]] [-a|--area_name AREA_NAME] [-b|--block_handle BLOCK_HANDLE] [-t|--template TEMPLATE] [--exclude [EXCLUDE]] [--include [INCLUDE]] [--exclude_pages [EXCLUDE_PAGES]] [--include_pages [INCLUDE_PAGES]] [--all_themes] [-m|--mode [MODE]]
-p, --path [Optional] (optional) The page path to search in and below. [default:/]
-a, --area_name [Optional] The area name to search in. [default:false]
-b, --block_handle [Optional] The block handle to search for. [default:false]
-t, --template [Optional] The template handle to update the block template to. [default:false]
--exclude [Optional] (optional) Exclude blocks with template handle or bID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--include [Optional] (optional) Only include blocks with template handle or bID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--exclude_pages [Optional] (optional) Exclude pages with template handle or cID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--include_pages [Optional] (optional) Only include pages with template handle or cID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--all_themes [Optional] Apply whatever the page theme (default is to only to apply to pages with the site theme). [default:false]
-m, --mode [Optional] Execution mode, (test, live, list). * List ignores filtering and gives a list of blocks for the block handle. * Test applies all filtering and identifies what changes will be made. * Swapping test to live then makes those changes. [default:test]
concrete/bin/concrete5 gum:delete_blocks
Globally delete instances of a block. Configure a starting page, area and block handle. Filter by block template handle or bID.
gum:delete_blocks [-p|--path [PATH]] [-a|--area_name AREA_NAME] [-b|--block_handle BLOCK_HANDLE] [--exclude [EXCLUDE]] [--include [INCLUDE]] [--exclude_pages [EXCLUDE_PAGES]] [--include_pages [INCLUDE_PAGES]] [--all_themes] [-m|--mode [MODE]]
-p, --path [Optional] (optional) The page path to search in and below. [default:/]
-a, --area_name [Optional] The area name to search in. [default:false]
-b, --block_handle [Optional] The block handle to search for. [default:false]
--exclude [Optional] (optional) Exclude blocks with template handle or bID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--include [Optional] (optional) Only include blocks with template handle or bID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--exclude_pages [Optional] (optional) Exclude pages with template handle or cID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--include_pages [Optional] (optional) Only include pages with template handle or cID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--all_themes [Optional] Apply whatever the page theme (default is to only to apply to pages with the site theme). [default:false]
-m, --mode [Optional] Execution mode, (test, live, list). * List ignores filtering and gives a list of blocks for the block handle. * Test applies all filtering and identifies what changes will be made. * Swapping test to live then makes those changes. [default:test]
concrete/bin/concrete5 gum:revert_pages
Globally revert pages to approve the most recent version before a specified date/time. Optionally delete all subsequent page versions.
gum:revert_pages [-p|--path [PATH]] [-d|--date DATE] [-c|--cleanup] [--exclude_pages [EXCLUDE_PAGES]] [--include_pages [INCLUDE_PAGES]] [--all_themes] [-m|--mode [MODE]]
-p, --path [Optional] (optional) The page path to search in and below. [default:/]
-d, --date [Optional] The date/time to revert before. Anything parsable by strtotime() can be used. For precision use a SQL timestamp YYYY-MM-DD HH:MM:SS. Time is optional and will default to 00:00:00. [default:false]
-c, --cleanup [Optional] Clean up by deleting any newer versions after the version reverted to. [default:false]
--exclude_pages [Optional] (optional) Exclude pages with template handle or cID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--include_pages [Optional] (optional) Only include pages with template handle or cID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--all_themes [Optional] Apply whatever the page theme (default is to only to apply to pages with the site theme). [default:false]
-m, --mode [Optional] Execution mode, (test, live, list). * List ignores filtering and gives a list of blocks for the block handle. * Test applies all filtering and identifies what changes will be made. * Swapping test to live then makes those changes. [default:test]
concrete/bin/concrete5 gum:unscrappify
Globally replace scrapbook blocks with copies of the original. Configure a starting page, area and block handle. Filter by block template handle or bID.
gum:unscrappify [-p|--path [PATH]] [-a|--area_name AREA_NAME] [-b|--block_handle BLOCK_HANDLE] [--exclude [EXCLUDE]] [--include [INCLUDE]] [--exclude_pages [EXCLUDE_PAGES]] [--include_pages [INCLUDE_PAGES]] [--all_themes] [-m|--mode [MODE]]
-p, --path [Optional] (optional) The page path to search in and below. [default:/]
-a, --area_name [Optional] The area name to search in. [default:false]
-b, --block_handle [Optional] The block handle to search for. [default:false]
--exclude [Optional] (optional) Exclude blocks with template handle or bID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--include [Optional] (optional) Only include blocks with template handle or bID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--exclude_pages [Optional] (optional) Exclude pages with template handle or cID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--include_pages [Optional] (optional) Only include pages with template handle or cID in this comma separated list. Also accepts glob * patterns. Exclude takes priority over include. [default:false]
--all_themes [Optional] Apply whatever the page theme (default is to only to apply to pages with the site theme). [default:false]
-m, --mode [Optional] Execution mode, (test, live, list). * List ignores filtering and gives a list of blocks for the block handle. * Test applies all filtering and identifies what changes will be made. * Swapping test to live then makes those changes. [default:test]