1- contentstack-cli-content-type
2- ===
1+ ![ Node.js CI ] ( https://github.com/Contentstack-Solutions/ contentstack-cli-content-type/workflows/Node.js%20CI/badge.svg )
2+ ![ npm ] ( https://img.shields.io/npm/v/contentstack-cli-content-type )
33
44## Description
55This is a plugin for [ Contentstack's] ( https://www.contentstack.com/ ) CLI.
@@ -12,16 +12,20 @@ $ csdx plugins:install contentstack-cli-content-type
1212```
1313
1414## How to use this plugin
15- This plugin requires you to be authenticated using ` csdx auth:login ` .
16- Several commands, such as ` csdx content-type:compare ` support management token aliases a input flag.
17- These commands only use the ** Stack API Key** .
18- They are provided as a convenience, so the Stack API Key's do not have to be re-typed.
19- The management token associated with the Stack API Key is ignored.
15+ This plugin requires you to be authenticated using [ csdx auth: login ] ( https://www.contentstack.com/docs/developers/cli/authenticate-with-the-cli/ ) .
2016
21- <!-- toc -->
22- * [ Commands] ( #commands )
23- <!-- tocstop -->
17+ Several commands, such as ` csdx content-type:compare ` support token aliases as input.
18+ These token aliases should be created using ` csdx auth:tokens:add ` .
2419
20+ The commands only use the ** Stack API Key** . The management token is ignored.
21+ They are provided as a convenience, so the Stack API Keys do not have to be re-typed.
22+
23+ ## Usability
24+ The ` csdx content-type:details ` command requires a wide terminal window. If the ` path ` column is not needed, you can hide it:
25+
26+ ``` shell
27+ $ csdx content-type:details -a " management token" -c " content type" --no-path
28+ ```
2529<!-- usagestop -->
2630# Commands
2731<!-- commands -->
4246OPTIONS
4347 -a, --token-alias=token-alias management token alias
4448 -c, --content-type=content-type (required) Content Type UID
45- -s, --stack=stack stack uid
49+ -s, --stack=stack Stack UID
4650
4751EXAMPLES
4852 $ csdx content-type:audit -s "xxxxxxxxxxxxxxxxxxx" -c "home_page"
@@ -64,7 +68,7 @@ OPTIONS
6468 -c, --content-type=content-type (required) Content Type UID
6569 -l, --left=left Content Type version, i.e. prev version
6670 -r, --right=right Content Type version, i.e. later version
67- -s, --stack=stack stack uid
71+ -s, --stack=stack Stack UID
6872
6973EXAMPLES
7074 $ csdx content-type:compare -s "xxxxxxxxxxxxxxxxxxx" -c "home_page"
@@ -76,16 +80,16 @@ _See code: [src/commands/content-type/compare.ts](https://github.com/Contentstac
7680
7781## ` csdx content-type:compare-remote `
7882
79- compare two Content Types on different stacks
83+ compare two Content Types on different Stacks
8084
8185```
8286USAGE
8387 $ csdx content-type:compare-remote
8488
8589OPTIONS
8690 -c, --content-type=content-type (required) Content Type UID
87- -o, --origin-stack=origin-stack origin stack uid
88- -r, --remote-stack=remote-stack remote stack uid
91+ -o, --origin-stack=origin-stack (required) origin Stack UID
92+ -r, --remote-stack=remote-stack (required) remote Stack UID
8993
9094EXAMPLE
9195 $ csdx content-type:compare-remote -o "xxxxxxxxxxxxxxxxxxx" -r "xxxxxxxxxxxxxxxxxxx" -c "home_page"
@@ -105,7 +109,7 @@ OPTIONS
105109 -a, --token-alias=token-alias management token alias
106110 -c, --content-type=content-type (required) Content Type UID
107111 -p, --[no-]path show path column
108- -s, --stack=stack stack uid
112+ -s, --stack=stack Stack UID
109113
110114EXAMPLES
111115 $ csdx content-type:details -s "xxxxxxxxxxxxxxxxxxx" -c "home_page"
@@ -126,7 +130,7 @@ USAGE
126130OPTIONS
127131 -a, --token-alias=token-alias management token alias
128132 -o, --order=title|modified [default: title] order by column
129- -s, --stack=stack stack uid
133+ -s, --stack=stack Stack UID
130134
131135EXAMPLES
132136 $ csdx content-type:list -s "xxxxxxxxxxxxxxxxxxx"
0 commit comments