Skip to content

Commit ed5c23d

Browse files
FilipRudygrego952
andauthored
Add CLI description to the help.sap.com portal (#2370)
Co-authored-by: Grzegorz Karaluch <[email protected]>
1 parent 8241860 commit ed5c23d

File tree

5 files changed

+90
-11
lines changed

5 files changed

+90
-11
lines changed

docs/user/README.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
> **TIP:** Apart from the {Module Name} heading, you can use your own titles for the remaining sections. You can also add more module-specific sections.
1+
# Kyma CLI
22

3-
# {Module Name}
4-
> Modify the title and insert the name of your module. Use Heading 1 (H1).
3+
## What is Kyma CLI?
54

6-
## Overview
7-
> Provide a description of your module and its components. Describe its features and functionalities. Mention the scope and add information on the CustomResourceDefinitions (CRDs).
8-
> You can divide this section to the relevant subsections.
5+
The Kyma CLI is a command-line interface tool designed to simplify the use of the Kyma ecosystem. It allows you to manage Kyma modules and applications, deploy simple applications, and more. With Kyma CLI, you can perform complex tasks with simple commands, accelerating development cycles.
96

10-
## Useful Links (Optional)
11-
> Provide links to the most relevant module documentation (tutorials, technical references, resources, etc.).
7+
In addition, you can build, push, and deploy an application to a Kyma cluster with a single command. It automatically detects the Dockerfile in the current directory, builds and pushes the image to the in-cluster registry, and applies the necessary Kubernetes resources.
128

13-
## Feedback (Optional)
14-
> Describe how users can provide feedback.
9+
Kyma CLI also provides a set of commands to manage Kyma modules efficiently. You can manage, deploy, and configure modules seamlessly. With Kyma CLI module commands, you can list available and installed modules, add or delete them, and configure their settings. Modules can be deployed with the default or custom configuration.
10+
## Features
11+
The Kyma CLI provides the following features:
12+
13+
- Simplified module management.
14+
- Automated deployments.
15+
- Built-in extensibility.
16+
- Integrated service management.
17+
- Commands providing useful automation.
18+
19+
## Related Information
20+
21+
- [Kyma CLI tutorials](tutorials/README.md)

docs/user/_sidebar.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
Use this file to create an unordered list of documents you want to display on the [Kyma website](https://kyma-project.io). The list serves to navigate through the user documentation. For more information, visit the [User documentation](https://github.com/kyma-project/community/blob/main/docs/guidelines/content-guidelines/01-user-docs.md) guide.
1+
<!-- markdown-link-check-disable -->
2+
* [Back to Kyma Home](/)
3+
* [Kyma CLI](/cli/user/README.md)
4+
* [Tutorials](/cli/user/tutorials/README.md)
5+
* [Adding and Deleting a Kyma Module Using Kyma CLI](/cli/user/tutorials/01-10-add-delete-modules)
6+
* [Setting Your Module to the Managed and Unmanaged State in Kyma CLI](/cli/user/tutorials/01-11-manage-unmanage-modules)
7+
* [Commands](/cli/user/gen-docs/README.md)
8+
<!-- markdown-link-check-enable -->
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Adding and Deleting a Kyma Module Using Kyma CLI
2+
This tutorial shows how you can add and delete a new module using Kyma CLI.
3+
4+
> [!WARNING]
5+
> Modules added without any specified form of the custom resource have the policy field set to `Ignore`.
6+
## Procedure
7+
8+
### Adding a New Module
9+
10+
To add a new module with the default policy set to `CreateAndDelete`, use the following command:
11+
12+
```
13+
kyma alpha module add {MODULE-NAME} --default-cr
14+
```
15+
To add a module with a different CR, use the `--cr-path={CR-FILEPATH}` flag:
16+
```
17+
kyma alpha module add {MODULE-NAME} --cr-path={CR-PATH-FILEPATH}
18+
```
19+
20+
You can also specify which channel the module should use with the `-c {CHANNEL-NAME}` flag:
21+
```
22+
kyma alpha module add {MODULE-NAME} -c {CHANNEL-NAME} --default-cr
23+
```
24+
### Deleting an Existing Module
25+
26+
To delete an existing module, use the following command:
27+
28+
```
29+
kyma alpha module delete {MODULE-NAME}
30+
```
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Setting Your Module to the Managed and Unmanaged State in Kyma CLI
2+
3+
In some cases, for example, for testing, you may need to modify your module beyond what is supported by its configuration. By default, when a module is in the managed state, Kyma Control Plane governs its Kubernetes resources, reverting any manual changes during the next reconciliation loop.
4+
5+
To modify Kubernetes objects directly without them being reverted, you must set the module to the unmanaged state. In this state, reconciliation is disabled, ensuring your manual changes are preserved.
6+
7+
> [!CAUTION]
8+
> Setting your module to the unmanaged state may lead to instability and data loss within your cluster. It may also be impossible to revert the changes. In addition, we don't guarantee any service level agreement (SLA) or provide updates and maintenance for the module.
9+
10+
11+
## Procedure
12+
13+
### Setting a Module to the Managed State
14+
15+
16+
To set a module to the managed state, use the following command:
17+
18+
```
19+
kyma alpha module manage {MODULE-NAME}
20+
```
21+
Even if the module is already in the managed state, you can change its policy by adding the optional flag ``--policy {POLICY-NAME}``. The default policy is ``CreateAndDelete``.
22+
23+
### Setting a Module to the Unmanaged State
24+
25+
To set a module to the unmanaged state, use the following command:
26+
27+
```
28+
kyma alpha module unmanage {MODULE-NAME}
29+
```
30+
31+
> [!CAUTION]
32+
> Depending on the introduced changes, bringing back the module to the managed state might not be possible.

docs/user/tutorials/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Tutorials
2+
3+
This section will help you understand Kyma CLI and how to use it in different scenarios.

0 commit comments

Comments
 (0)