Skip to content

Commit

Permalink
Add CLI procedure for syncing content view
Browse files Browse the repository at this point in the history
  • Loading branch information
bangelic committed Aug 22, 2024
1 parent a4951cd commit 856b383
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/common/assembly_managing-content-views.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ include::modules/proc_creating-a-content-view.adoc[leveloffset=+1]

include::modules/proc_copying-a-content-view.adoc[leveloffset=+1]

include::modules/proc_synchronizing-a-content-view.adoc[leveloffset=+1]

include::modules/proc_viewing-module-streams.adoc[leveloffset=+1]

include::modules/proc_promoting-a-content-view.adoc[leveloffset=+1]
Expand Down
40 changes: 40 additions & 0 deletions guides/common/modules/proc_synchronizing-a-content-view.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[id="Synchronizing_a_Content_View_{context}"]
= Synchronizing a content view

You can use the Hammer CLI to synchronize a content view.
You need to specify the content view or content view ID along with the lifecycle environment or lifecycle environment ID.
You will need to include the organization or organization ID as well.

.CLI procedure
* Synchronize the content view by using Hammer:
+
[options="nowrap", subs="+quotes,attributes"]
----
# hammer -u admin -p changeme capsule content synchronize --help
Usage:
hammer capsule content synchronize [OPTIONS]Options:
--async Do not wait for the task
--content-view[-id] VALUE/NUMBER Name/id of the content view to limit the synchronization on
--environment[-id] VALUE/NUMBER (-environment-id is deprecated: Use --lifecycle-environment-id instead)
--id NUMBER Id of the capsule
--lifecycle-environment[-id] VALUE/NUMBER Name/id of the environment to limit the synchronization on
--name VALUE Name to search by
--organization VALUE Organization name
--organization-id VALUE Organization ID
--repository[-id] VALUE/NUMBER Name/id of the repository to limit the synchronization on
--skip-metadata-check BOOLEAN Skip metadata check on each repository on the capsule
-h, --help Print helpOption details:
Here you can find option types and the value an option can accept: BOOLEAN One of true/false, yes/no, 1/0
DATETIME Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
ENUM Possible values are described in the option's description
FILE Path to a file
KEY_VALUE_LIST Comma-separated list of key=value.
JSON is acceptable and preferred way for such parameters
LIST Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
JSON is acceptable and preferred way for such parameters
MULTIENUM Any combination of possible values described in the option's description
NUMBER Numeric value. Integer
SCHEMA Comma separated list of values defined by a schema.
JSON is acceptable and preferred way for such parameters
VALUE Value described in the option's description. Mostly simple string
----

0 comments on commit 856b383

Please sign in to comment.