Skip to content

Commit

Permalink
Fixing code markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
nollymar authored and nollymar committed Aug 16, 2023
1 parent a04fb34 commit 3e31d87
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions content_type_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
```
4 changes: 2 additions & 2 deletions instance-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion login_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] --password=admin
```
18 changes: 9 additions & 9 deletions site_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -19,47 +19,47 @@ 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"
```

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"
```

2 changes: 1 addition & 1 deletion status_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down

0 comments on commit 3e31d87

Please sign in to comment.