Skip to content

Commit 2d59733

Browse files
authored
Merge pull request #139 from migtools/cli-guide-rewrite
[MTA 7.3.1] CLI guide restrucures/rewrites + MTA-5731
2 parents 484db0d + 4ce37d8 commit 2d59733

File tree

47 files changed

+1346
-758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1346
-758
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2025-03-17
3+
4+
ifdef::context[:parent-context-of-analyzing-applications-mta-cli: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
ifndef::context[]
9+
[id="analyzing-applications-mta-cli"]
10+
endif::[]
11+
ifdef::context[]
12+
[id="analyzing-applications-mta-cli_{context}"]
13+
endif::[]
14+
= Analyzing Java applications with {ProductShortName} command-line interface
15+
16+
:context: analyzing-applications-mta-cli
17+
18+
Depending on your scenario, you can use the {ProductFullName} {CLINameTitle} to perform the following actions:
19+
20+
* Run the analysis against a single application.
21+
* Run the analysis against multiple applications:
22+
** In {ProductShortName} versions earlier than 7.1.0, you can enter a series of `--analyze` commands, each against an application and each generating a separate report. For more information, see xref:analyzing-single-app-wth-mta-cli_analyzing-applications-mta-cli[Running the {ProductShortName} {CLINameTitle} against an application].
23+
** In {ProductShortName} version 7.1.0 and later, you can use the `--bulk` option to analyze multiple applications at once and generate a single report. Note that this feature is a Developer Preview feature only. For more information, see xref:analyzing-multiple-apps-with-mta-cli_analyzing-applications-mta-cli[Analyzing multiple applications].
24+
25+
[IMPORTANT]
26+
====
27+
Starting from {ProductShortName} version 7.2.0, you can run the application analysis for Java applications in the containerless mode. Note that this option is set by default and is used automatically only if all requirements are met. For more information, see xref:running-the-containerless-mta-cli_analyzing-applications-mta-cli[Analyzing an application in the containerless mode].
28+
29+
However, if you want to analyze applications in languages other than Java or, for example, use xref:performing-transformation_cli-guide[transformation commands], you still need to use containers.
30+
====
31+
32+
{ProductShortName} CLI supports running source code and binary analysis by using `analyzer-lsp`. `analyzer-lsp` is a tool that evaluates rules by using language providers.
33+
34+
include::topics/mta-cli/proc_analyzing-single-app-with-mta-cli.adoc[leveloffset=+1]
35+
36+
include::topics/mta-cli/proc_analyzing-multiple-apps-with-mta-cli.adoc[leveloffset=+1]
37+
38+
include::topics/mta-cli/proc_running-the-containerless-mta-cli.adoc[leveloffset=+1]
39+
40+
include::topics/mta-cli/ref_mta-cli-analyze-flags.adoc[leveloffset=+1]
41+
42+
[role="_additional-resources"]
43+
44+
ifdef::parent-context-of-analyzing-applications-mta-cli[:context: {parent-context-of-analyzing-applications-mta-cli}]
45+
ifndef::parent-context-of-analyzing-applications-mta-cli[:!context:]
46+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2025-04-09
3+
4+
ifdef::context[:parent-context-of-analyzing-multi-language-applications: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
ifndef::context[]
9+
[id="analyzing-nonjava-applications"]
10+
endif::[]
11+
ifdef::context[]
12+
[id="analyzing-nonjava-applications_{context}"]
13+
endif::[]
14+
= Analyzing applications written in languages other than Java with {ProductShortName} command-line interface
15+
16+
:context: analyzing-nonjava-applications
17+
18+
Starting from {ProductFullName} version 7.1.0, you can run the application analysis on applications written in languages other than Java. You can perform the analysis either of the following ways:
19+
20+
* Select a supported language provider to run the analysis for.
21+
* Overwrite the existing supported language provider with your own unsupported language provider, and then run the analysis on it.
22+
23+
24+
IMPORTANT: Analyzing applications written in languages other than Java is only possible in container mode. You can use the containerless CLI only for Java applications. For more information, see xref:running-the-containerless-mta-cli_analyzing-applications-mta-cli[Analyzing an application in containerless mode].
25+
26+
27+
include::topics/mta-cli/proc_analyze-selected-provider.adoc[leveloffset=+1]
28+
29+
include::topics/mta-cli/proc_analyze-unsupported-provider.adoc[leveloffset=+1]
30+
31+
32+
ifdef::parent-context-of-analyzing-multi-language-applications[:context: {parent-context-of-analyzing-multi-language-applications}]
33+
ifndef::parent-context-of-analyzing-multi-language-applications[:!context:]
34+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2025-05-28
3+
4+
ifdef::context[:parent-context-of-generating-assets: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
ifndef::context[]
9+
[id="generating-assets"]
10+
endif::[]
11+
ifdef::context[]
12+
[id="generating-assets_{context}"]
13+
endif::[]
14+
= Generating platform assets for application deployment
15+
16+
:context: generating-assets
17+
18+
Starting from {ProductShortName} version 7.3.0, you can use the `discover` and `generate` commands in containerless mode to automatically generate the manifests needed to deploy a Cloud Foundry (CF) application in the {ocp-short}:
19+
20+
* Use the `discover` command to generate the discovery manifest in the YAML format from the CF application manifest. The discovery manifest preserves the specifications found in the CF manifest that define the metadata, runtime, and platform configurations.
21+
* Use the `generate` command to generate the deployment manifest for {ocp} deployments by using the discovery manifest. The deployment manifest is generated by using a templating engine, such as Helm, that converts the discovery manifest into a Kubernetes-native format. You can also use this command to generate non-Kubernetes manifests, such as a Dockerfile or a configuration file.
22+
23+
:FeatureName: Generating platform assets for application deployment
24+
include::topics/snippets/developer-preview-admonition.adoc[]
25+
26+
.Benefits of generating deployment assets
27+
28+
Generating deployment assets has the following benefits:
29+
30+
* Generating the Kubernetes and non-Kubernetes deployment manifests.
31+
* Generating deployment manifests by using familiar template engines, for example, Helm, that are widely used for Kubernetes deployments.
32+
* Adhering to Kubernetes best practices when preparing the deployment manifest by using Helm templates.
33+
34+
35+
36+
include::topics/mta-cli/proc_generating-discovery-manifest.adoc[leveloffset=+1]
37+
38+
include::topics/mta-cli/proc_generating-deployment-manifest.adoc[leveloffset=+1]
39+
40+
include::topics/mta-cli/ref_discover-generate-command-options.adoc[leveloffset=+1]
41+
42+
include::topics/mta-cli/ref_assets-generation-example.adoc[leveloffset=+1]
43+
44+
45+
46+
ifdef::parent-context-of-generating-assets[:context: {parent-context-of-generating-assets}]
47+
ifndef::parent-context-of-generating-assets[:!context:]
48+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2025-03-14
3+
4+
ifdef::context[:parent-context-of-installing-mta-cli: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
ifndef::context[]
9+
[id="installing-mta-cli"]
10+
endif::[]
11+
ifdef::context[]
12+
[id="installing-mta-cli_{context}"]
13+
endif::[]
14+
= Installing {ProductShortName} command-line interface
15+
16+
:context: installing-mta-cli
17+
18+
You can install the {ProductFullName} command-line interface (CLI) on Linux, Windows, or macOS operating systems.
19+
20+
NOTE: You can also install the CLI for use with Docker on Windows. Note, however, that this is a Developer Preview feature only.
21+
22+
include::topics/mta-cli/proc_installing-cli-zip.adoc[leveloffset=+1]
23+
24+
include::topics/mta-cli/proc_installing-mta-disconnected-environment.adoc[leveloffset=+1]
25+
26+
include::topics/mta-cli/proc_installing-cli-for-docker.adoc[leveloffset=+1]
27+
28+
29+
ifdef::parent-context-of-installing-mta-cli[:context: {parent-context-of-installing-mta-cli}]
30+
ifndef::parent-context-of-installing-mta-cli[:!context:]
31+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2025-04-08
3+
4+
ifdef::context[:parent-context-of-performing-transformation: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
ifndef::context[]
9+
[id="performing-transformation"]
10+
endif::[]
11+
ifdef::context[]
12+
[id="performing-transformation_{context}"]
13+
endif::[]
14+
= Performing a transformation with the {ProductShortName} command-line interface
15+
16+
17+
:context: performing-transformation
18+
19+
You can use transformation to perform the following actions:
20+
21+
* Transform Java applications source code by using the `transform openrewrite` command.
22+
* Convert XML rules to YAML rules by using the `transform rules` command.
23+
24+
IMPORTANT: Performing transformation requires the container runtime to be configured.
25+
26+
27+
include::topics/mta-cli/proc_transforming-application-source-code.adoc[leveloffset=+1]
28+
29+
include::topics/mta-cli/ref_available-openrewrite-recipes.adoc[leveloffset=+1]
30+
31+
include::topics/mta-cli/ref_openrewrite-command-options.adoc[leveloffset=+1]
32+
33+
include::topics/mta-cli/proc_converting-xml-to-yaml.adoc[leveloffset=+1]
34+
35+
include::topics/mta-cli/ref_rules-command-options.adoc[leveloffset=+1]
36+
37+
ifdef::parent-context-of-performing-transformation[:context: {parent-context-of-performing-transformation}]
38+
ifndef::parent-context-of-performing-transformation[:!context:]
39+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2025-05-28
3+
4+
ifdef::context[:parent-context-of-reference-material: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
ifndef::context[]
9+
[id="reference-material"]
10+
endif::[]
11+
ifdef::context[]
12+
[id="reference-material_{context}"]
13+
[appendix,id="reference-material"]
14+
endif::[]
15+
= Reference material
16+
17+
:context: reference-material
18+
19+
The following is information that you might find useful when using the {ProductFullName} CLI.
20+
21+
// {ProductShortName} Command-line Arguments
22+
//include::topics/mta-cli-args.adoc[leveloffset=+2]
23+
24+
// Added in 4.3.0: list of supported Tech Tags
25+
include::topics/mta-cli/ref_mta-tech-tags.adoc[leveloffset=+1]
26+
27+
// Rule Story Points
28+
include::assembly_rule-story-points.adoc[leveloffset=+1]
29+
30+
31+
32+
ifdef::parent-context-of-reference-material[:context: {parent-context-of-reference-material}]
33+
ifndef::parent-context-of-reference-material[:!context:]
34+

assemblies/cli-guide/assembly_reviewing-analysis-reports.adoc

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@ endif::[]
1616

1717
After analyzing an application, you can access an analysis report to check the details of the application migration effort.
1818

19-
include::topics/proc_accessing-analysis-report.adoc[leveloffset=+1]
19+
include::topics/mta-cli/proc_accessing-analysis-report.adoc[leveloffset=+1]
2020

21-
include::topics/ref_analysis-report-sections.adoc[leveloffset=+1]
21+
include::topics/mta-cli/ref_analysis-report-sections.adoc[leveloffset=+1]
2222

23-
////
24-
[role="_additional-resources"]
25-
== Additional resources
26-
27-
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]
28-
* xref:some-module_{context}[]
29-
////
23+
include::topics/mta-cli/proc_reviewing-analysis-issues-and-incidents.adoc[leveloffset=+1]
3024

3125
ifdef::parent-context-of-reviewing-analysis-reports[:context: {parent-context-of-reviewing-analysis-reports}]
3226
ifndef::parent-context-of-reviewing-analysis-reports[:!context:]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:_newdoc-version: 2.18.3
2+
:_template-generated: 2025-05-28
3+
4+
ifdef::context[:parent-context-of-rule-story-points: {context}]
5+
6+
:_mod-docs-content-type: ASSEMBLY
7+
8+
ifndef::context[]
9+
[id="rule-story-points"]
10+
endif::[]
11+
ifdef::context[]
12+
[id="rule-story-points_{context}"]
13+
endif::[]
14+
= Rule story points
15+
16+
:context: rule-story-points
17+
18+
_Story points_ are an abstract metric commonly used in Agile software development to estimate the level of effort required to implement a feature or change.
19+
20+
The {ProductName} uses story points to express the level of effort needed to migrate particular application constructs, and the application as a whole. It does not necessarily translate to man-hours, but the value must be consistent across tasks.
21+
22+
include::topics/mta-cli/ref_effort-level-estimation.adoc[leveloffset=+1]
23+
24+
include::topics/mta-cli/ref_migration-tasks-categories.adoc[leveloffset=+1]
25+
26+
27+
ifdef::parent-context-of-rule-story-points[:context: {parent-context-of-rule-story-points}]
28+
ifndef::parent-context-of-rule-story-points[:!context:]
29+

0 commit comments

Comments
 (0)