@@ -54,5 +54,181 @@ $ csdx content-type:details -a "management token" -c "content type" --no-path
5454<!-- usagestop -->
5555# Commands
5656<!-- commands -->
57+ * [ ` csdx content-type:audit ` ] ( #csdx-content-typeaudit )
58+ * [ ` csdx content-type:compare ` ] ( #csdx-content-typecompare )
59+ * [ ` csdx content-type:compare-remote ` ] ( #csdx-content-typecompare-remote )
60+ * [ ` csdx content-type:details ` ] ( #csdx-content-typedetails )
61+ * [ ` csdx content-type:diagram ` ] ( #csdx-content-typediagram )
62+ * [ ` csdx content-type:list ` ] ( #csdx-content-typelist )
5763
64+ ## ` csdx content-type:audit `
65+
66+ Display recent changes to a Content Type
67+
68+ ```
69+ USAGE
70+ $ csdx content-type:audit -c <value> [-s <value> | -a <value> | -a <value>] [-k <value> | | ]
71+
72+ FLAGS
73+ -a, --alias=<value> Alias of the management token
74+ -a, --token-alias=<value> Management token alias
75+ -c, --content-type=<value> (required) Content Type UID
76+ -k, --stack-api-key=<value> Stack API Key
77+ -s, --stack=<value> Stack UID
78+
79+ DESCRIPTION
80+ Display recent changes to a Content Type
81+
82+ EXAMPLES
83+ $ csdx content-type:audit --stack-api-key "xxxxxxxxxxxxxxxxxxx" --content-type "home_page"
84+
85+ $ csdx content-type:audit --alias "management token" --content-type "home_page"
86+ ```
87+
88+ _ See code: [ src/commands/content-type/audit.ts] ( https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/audit.ts ) _
89+
90+ ## ` csdx content-type:compare `
91+
92+ Compare two Content Type versions
93+
94+ ```
95+ USAGE
96+ $ csdx content-type:compare -c <value> [-s <value> | -a <value>] [-k <value> | ] [-a <value>] [-l <value> -r <value>]
97+
98+ FLAGS
99+ -a, --alias=<value> Alias of the management token
100+ -a, --token-alias=<value> Management token alias
101+ -c, --content-type=<value> (required) Content Type UID
102+ -k, --stack-api-key=<value> Stack API Key
103+ -l, --left=<value> Content Type version, i.e. prev version
104+ -r, --right=<value> Content Type version, i.e. later version
105+ -s, --stack=<value> Stack UID
106+
107+ DESCRIPTION
108+ Compare two Content Type versions
109+
110+ EXAMPLES
111+ $ csdx content-type:compare --stack-api-key "xxxxxxxxxxxxxxxxxxx" --content-type "home_page"
112+
113+ $ csdx content-type:compare --stack-api-key "xxxxxxxxxxxxxxxxxxx" --content-type "home_page" --left # --right #
114+
115+ $ csdx content-type:compare --alias "management token" --content-type "home_page" --left # --right #
116+ ```
117+
118+ _ See code: [ src/commands/content-type/compare.ts] ( https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/compare.ts ) _
119+
120+ ## ` csdx content-type:compare-remote `
121+
122+ compare two Content Types on different Stacks
123+
124+ ```
125+ USAGE
126+ $ csdx content-type:compare-remote (-o <value> -r <value>) -c <value>
127+
128+ FLAGS
129+ -c, --content-type=<value> (required) Content Type UID
130+ -o, --origin-stack=<value> (required) Origin Stack API Key
131+ -r, --remote-stack=<value> (required) Remote Stack API Key
132+
133+ DESCRIPTION
134+ compare two Content Types on different Stacks
135+
136+ EXAMPLES
137+ $ csdx content-type:compare-remote --origin-stack "xxxxxxxxxxxxxxxxxxx" --remote-stack "xxxxxxxxxxxxxxxxxxx" -content-type "home_page"
138+ ```
139+
140+ _ See code: [ src/commands/content-type/compare-remote.ts] ( https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/compare-remote.ts ) _
141+
142+ ## ` csdx content-type:details `
143+
144+ Display Content Type details
145+
146+ ```
147+ USAGE
148+ $ csdx content-type:details -c <value> [-s <value> | -a <value>] [-k <value> | ] [-a <value>] [-p]
149+
150+ FLAGS
151+ -a, --alias=<value> Alias of the management token
152+ -a, --token-alias=<value> Management token alias
153+ -c, --content-type=<value> (required) Content Type UID
154+ -k, --stack-api-key=<value> Stack API Key
155+ -p, --[no-]path show path column
156+ -s, --stack=<value> Stack UID
157+
158+ DESCRIPTION
159+ Display Content Type details
160+
161+ EXAMPLES
162+ $ csdx content-type:details --stack-api-key "xxxxxxxxxxxxxxxxxxx" --content-type "home_page"
163+
164+ $ csdx content-type:details --alias "management token" --content-type "home_page"
165+
166+ $ csdx content-type:details --alias "management token" --content-type "home_page" --no-path
167+ ```
168+
169+ _ See code: [ src/commands/content-type/details.ts] ( https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/details.ts ) _
170+
171+ ## ` csdx content-type:diagram `
172+
173+ Create a visual diagram of a Stack's Content Types
174+
175+ ```
176+ USAGE
177+ $ csdx content-type:diagram -o <value> -d portrait|landscape -t svg|dot [-s <value> | -a <value> | -a <value>] [-k
178+ <value> | | ]
179+
180+ FLAGS
181+ -a, --alias=<value> Alias of the management token
182+ -a, --token-alias=<value> Management token alias
183+ -d, --direction=<option> (required) [default: portrait] graph orientation
184+ <options: portrait|landscape>
185+ -k, --stack-api-key=<value> Stack API Key
186+ -o, --output=<value> (required) full path to output
187+ -s, --stack=<value> Stack UID
188+ -t, --type=<option> (required) [default: svg] graph output file type
189+ <options: svg|dot>
190+
191+ DESCRIPTION
192+ Create a visual diagram of a Stack's Content Types
193+
194+ EXAMPLES
195+ $ csdx content-type:diagram --stack-api-key "xxxxxxxxxxxxxxxxxxx" --output "content-model.svg"
196+
197+ $ csdx content-type:diagram --alias "management token" --output "content-model.svg"
198+
199+ $ csdx content-type:diagram --alias "management token" --output "content-model.svg" --direction "landscape"
200+
201+ $ csdx content-type:diagram --alias "management token" --output "content-model.dot" --type "dot"
202+ ```
203+
204+ _ See code: [ src/commands/content-type/diagram.ts] ( https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/diagram.ts ) _
205+
206+ ## ` csdx content-type:list `
207+
208+ List all Content Types in a Stack
209+
210+ ```
211+ USAGE
212+ $ csdx content-type:list [-s <value> | -a <value> | -a <value>] [-k <value> | | ] [-o title|modified]
213+
214+ FLAGS
215+ -a, --alias=<value> Alias of the management token
216+ -a, --token-alias=<value> Management token alias
217+ -k, --stack-api-key=<value> Stack API Key
218+ -o, --order=<option> [default: title] order by column
219+ <options: title|modified>
220+ -s, --stack=<value> Stack UID
221+
222+ DESCRIPTION
223+ List all Content Types in a Stack
224+
225+ EXAMPLES
226+ $ csdx content-type:list --stack-api-key "xxxxxxxxxxxxxxxxxxx"
227+
228+ $ csdx content-type:list --alias "management token"
229+
230+ $ csdx content-type:list --alias "management token" --order modified
231+ ```
232+
233+ _ See code: [ src/commands/content-type/list.ts] ( https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-content-type/src/commands/content-type/list.ts ) _
58234<!-- commandsstop -->
0 commit comments