2.29. hammer export-templates


将模板导出到 git 仓库或服务器上的目录

Usage:
    hammer export-templates [OPTIONS]

Options:
 --branch BRANCH                             Branch in Git repo.
 --commit-msg COMMIT_MSG                     Custom commit message for templates export
 --dirname DIRNAME                           The directory within Git repo containing the templates
 --filter FILTER                             Export templates with names matching this regex (case-insensitive; snippets are not filtered).
 --location LOCATION_NAME                    Set the current location context for the request
 --location-id LOCATION_ID                   Set the current location context for the request
 --location-ids LOCATION_IDS                 REPLACE locations with given ids
                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                             JSON is acceptable and preferred way for complex parameters
 --location-title LOCATION_TITLE             Set the current location context for the request
 --location-titles LOCATION_TITLES           Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                             JSON is acceptable and preferred way for complex parameters
 --locations LOCATION_NAMES                  Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                             JSON is acceptable and preferred way for complex parameters
 --metadata-export-mode METADATA_EXPORT_MODE Specify how to handle metadata
                                             Possible value(s): 'refresh', 'keep', 'remove'
 --negate NEGATE                             Negate the prefix (for purging).
                                             One of true/false, yes/no, 1/0.
 --organization ORGANIZATION_NAME            Set the current organization context for the request
 --organization-id ORGANIZATION_ID           Set the current organization context for the request
 --organization-ids ORGANIZATION_IDS         REPLACE organizations with given ids.
                                             Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                             JSON is acceptable and preferred way for complex parameters
 --organization-title ORGANIZATION_TITLE     Set the current organization context for the request
 --organization-titles ORGANIZATION_TITLES   Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                             JSON is acceptable and preferred way for complex parameters
 --organizations ORGANIZATION_NAMES          Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                                             JSON is acceptable and preferred way for complex parameters
 --repo REPO                                 Override the default repo from settings.
 --verbose BE_VERBOSE                        Be verbose
                                             One of true/false, yes/no, 1/0.
 -h, --help                                  Print help
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.