|
1 | | -# contentstack-cli-content-type |
| 1 | +contentstack-cli-content-type |
| 2 | +=== |
| 3 | + |
| 4 | +Retrieve information about Content Types in a Stack. |
| 5 | + |
| 6 | +[](https://oclif.io) |
| 7 | +[](https://npmjs.org/package/evo) |
| 8 | +[](https://npmjs.org/package/evo) |
| 9 | +[](https://github.com/Garbage/evo/blob/master/package.json) |
| 10 | + |
| 11 | +<!-- toc --> |
| 12 | +* [Usage](#usage) |
| 13 | +* [Commands](#commands) |
| 14 | +<!-- tocstop --> |
| 15 | +# Usage |
| 16 | +<!-- usage --> |
| 17 | +```sh-session |
| 18 | +$ npm install -g contentstack-cli-content-type |
| 19 | +$ csdx COMMAND |
| 20 | +running command... |
| 21 | +$ csdx (-v|--version|version) |
| 22 | +contentstack-cli-content-type/1.0.0 darwin-x64 node-v12.16.1 |
| 23 | +$ csdx --help [COMMAND] |
| 24 | +USAGE |
| 25 | + $ csdx COMMAND |
| 26 | +... |
| 27 | +``` |
| 28 | +<!-- usagestop --> |
| 29 | +# Commands |
| 30 | +<!-- commands --> |
| 31 | +* [`csdx `](#csdx-) |
| 32 | +* [`csdx command`](#csdx-command) |
| 33 | +* [`csdx content-type:audit`](#csdx-content-typeaudit) |
| 34 | +* [`csdx content-type:compare`](#csdx-content-typecompare) |
| 35 | +* [`csdx content-type:details`](#csdx-content-typedetails) |
| 36 | +* [`csdx content-type:list`](#csdx-content-typelist) |
| 37 | + |
| 38 | +## `csdx ` |
| 39 | + |
| 40 | +``` |
| 41 | +USAGE |
| 42 | + $ csdx |
| 43 | +``` |
| 44 | + |
| 45 | +_See code: [src/commands/index.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.0.0/src/commands/index.ts)_ |
| 46 | + |
| 47 | +## `csdx command` |
| 48 | + |
| 49 | +``` |
| 50 | +USAGE |
| 51 | + $ csdx command |
| 52 | +``` |
| 53 | + |
| 54 | +_See code: [src/commands/command.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.0.0/src/commands/command.ts)_ |
| 55 | + |
| 56 | +## `csdx content-type:audit` |
| 57 | + |
| 58 | +display audit logs for recent changes to a Content Type |
| 59 | + |
| 60 | +``` |
| 61 | +USAGE |
| 62 | + $ csdx content-type:audit |
| 63 | +
|
| 64 | +OPTIONS |
| 65 | + -a, --token-alias=token-alias management token alias |
| 66 | + -c, --content-type=content-type (required) Content Type UID |
| 67 | + -s, --stack=stack stack uid |
| 68 | +
|
| 69 | +EXAMPLES |
| 70 | + $ csdx content-type:audit -s "xxxxxxxxxxxxxxxxxxx" -c "home_page" |
| 71 | + $ csdx content-type:audit -a "management token" -c "home_page" |
| 72 | +``` |
| 73 | + |
| 74 | +_See code: [src/commands/content-type/audit.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.0.0/src/commands/content-type/audit.ts)_ |
| 75 | + |
| 76 | +## `csdx content-type:compare` |
| 77 | + |
| 78 | +compare two Content Type versions |
| 79 | + |
| 80 | +``` |
| 81 | +USAGE |
| 82 | + $ csdx content-type:compare |
| 83 | +
|
| 84 | +OPTIONS |
| 85 | + -a, --token-alias=token-alias management token alias |
| 86 | + -c, --content-type=content-type (required) Content Type UID |
| 87 | + -l, --left=left (required) previous Content Type version |
| 88 | + -r, --right=right (required) current Content Type version |
| 89 | + -s, --stack=stack stack uid |
| 90 | +
|
| 91 | +EXAMPLES |
| 92 | + $ csdx content-type:compare -s "xxxxxxxxxxxxxxxxxxx" -c "home_page" |
| 93 | + $ csdx content-type:compare -s "xxxxxxxxxxxxxxxxxxx" -c "home_page" -left # -right # |
| 94 | + $ csdx content-type:compare -a "management token" -c "home_page" -left # -right # |
| 95 | +``` |
| 96 | + |
| 97 | +_See code: [src/commands/content-type/compare.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.0.0/src/commands/content-type/compare.ts)_ |
| 98 | + |
| 99 | +## `csdx content-type:details` |
| 100 | + |
| 101 | +display Content Type details |
| 102 | + |
| 103 | +``` |
| 104 | +USAGE |
| 105 | + $ csdx content-type:details |
| 106 | +
|
| 107 | +OPTIONS |
| 108 | + -a, --token-alias=token-alias management token alias |
| 109 | + -c, --content-type=content-type (required) Content Type UID |
| 110 | + -s, --stack=stack stack uid |
| 111 | +
|
| 112 | +EXAMPLES |
| 113 | + $ csdx content-type:details -s "xxxxxxxxxxxxxxxxxxx" -c "home_page" |
| 114 | + $ csdx content-type:details -a "management token" -c "home_page" |
| 115 | +``` |
| 116 | + |
| 117 | +_See code: [src/commands/content-type/details.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.0.0/src/commands/content-type/details.ts)_ |
| 118 | + |
| 119 | +## `csdx content-type:list` |
| 120 | + |
| 121 | +list all Content Types in a Stack |
| 122 | + |
| 123 | +``` |
| 124 | +USAGE |
| 125 | + $ csdx content-type:list |
| 126 | +
|
| 127 | +OPTIONS |
| 128 | + -a, --token-alias=token-alias management token alias |
| 129 | + -o, --order=title|modified [default: title] order by column |
| 130 | + -s, --stack=stack stack uid |
| 131 | +
|
| 132 | +EXAMPLES |
| 133 | + $ csdx content-type:list -s "xxxxxxxxxxxxxxxxxxx" |
| 134 | + $ csdx content-type:list -a "management token" |
| 135 | + $ csdx content-type:list -a "management token" -o modified |
| 136 | +``` |
| 137 | + |
| 138 | +_See code: [src/commands/content-type/list.ts](https://github.com/Contentstack-Solutions/contentstack-cli-content-type/blob/v1.0.0/src/commands/content-type/list.ts)_ |
| 139 | +<!-- commandsstop --> |
0 commit comments