diff --git a/content_type_command.md b/content_type_command.md index d0c5e61..f1dc5d5 100644 --- a/content_type_command.md +++ b/content_type_command.md @@ -10,25 +10,25 @@ nav_order: 5 Content-Type command is how you do CRUD operations on CTs **Find Content-type** -```shell script +```markdown dotCMS content-types find ``` Gets you a complete list of the available Content-types. By Default, they are shown in batches of 10. But you can also get an entire list at one by specifying --interactive=false Find Sites -```shell script +```markdown dotCMS content-types find --interactive=false ``` For a name like type of search do as follows -```shell script +```markdown dotCMS content-types --name="File" --page=0 --pageSize=10 ``` This should bring back all content-types matching the name "File" **Pull Content-type** -```shell script +```markdown dotCMS content-types pull FileAsset ``` This will get you a descriptor of the solicited content-type in this case "FileAsset" @@ -39,19 +39,19 @@ However. this is a preference that can be modified by specifying the attribute f Like this **Pull Content-type** -```shell script +```markdown dotCMS content-types pull "FileAsset" --format=YML ``` **Push Content-type** The next command is Push which allows you to create a new content-type by sending the CT definition using a file as follows -```shell script +```markdown dotCMS content-types push "./content-type.json" ``` Again here we can change the format of the input file by using the option --format like this: -```shell script +```markdown dotCMS content-types push "./content-type.yml" --format=YML ``` diff --git a/instance-command.md b/instance-command.md index c12851d..972eccb 100644 --- a/instance-command.md +++ b/instance-command.md @@ -9,7 +9,7 @@ nav_order: 3 Instance allows the activation of a dotCMS instance profile to get a list with all available profiles do: -```shell script +```markdown dotCMS instance ``` @@ -20,7 +20,7 @@ Available registered dotCMS servers. ``` From the list of available instances select one and then activate it using the activate option like this -```shell script +```markdown instance --activate demo ``` diff --git a/login_command.md b/login_command.md index dba0e18..d51acca 100644 --- a/login_command.md +++ b/login_command.md @@ -9,6 +9,6 @@ nav_order: 2 Once you have selected a dotCMS instance you have to log in to be able to interact with it. and that is accomplished through the login command as follows -```shell script +```markdown dotCMS login --user=admin@dotCMS.com --password=admin ``` \ No newline at end of file diff --git a/site_command.md b/site_command.md index 43ef831..0c061dc 100644 --- a/site_command.md +++ b/site_command.md @@ -8,7 +8,7 @@ nav_order: 4 ## **Site Command** Site command is how you do CRUD operations on sites -```shell script +```markdown dotCMS site find ``` Gets you a list of all the published sites @@ -19,33 +19,33 @@ name: [demo2.dotcms.com] id: [28c9ce6b2147e0f4763ee2ee5628faeb] inode: [b81879e0 ``` From the list of sites pick the one that interests you and to get more details do -```shell script +```markdown dotCMS site pull demo2.dotcms.com ``` This command gets you a representation of the site info in json format. Saving it immediately as file using as name the site-name itself. -```shell script +```markdown dotCMS site push "./site-descriptor.json" ``` or -```shell script +```markdown dotCMS site push "./site-descriptor.yml" --format=YML ``` There's another useful command that can be used to quickly kick off a site by simply providing a name -```shell script +```markdown dotCMS site create "my.cool.bikes.site.com" ``` Once a site has been created you need to start it or stop it. and that can be accomplished with the two following examples respectively -```shell script +```markdown dotCMS site start "my.cool.bikes.site.com" ``` And -```shell script +```markdown dotCMS site stop "my.cool.bikes.site.com" ``` @@ -53,13 +53,13 @@ And finally here's how you remove sites First you need to archive the site -```shell script +```markdown dotCMS site archive "my.cool.bikes.site.com" ``` And then -```shell script +```markdown dotCMS site remove "my.cool.bikes.site.com" ``` diff --git a/status_command.md b/status_command.md index 62c1732..a0a3fcf 100644 --- a/status_command.md +++ b/status_command.md @@ -10,7 +10,7 @@ nav_order: 1 Status is how you determine what dotCMS instance you are connected to Also tells you if your currently logged in that selected instance -```shell script +```markdown dotCMS status ```