Skip to content

Commit f35c69b

Browse files
author
Juan Jesús Padrón Hernández
committed
fix(sca): pr changes
1 parent e7601bb commit f35c69b

16 files changed

Lines changed: 567 additions & 13 deletions

‎docs/stackit.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ stackit [flags]
2727
### SEE ALSO
2828

2929
* [stackit affinity-group](./stackit_affinity-group.md) - Manage server affinity groups
30+
* [stackit alpha](./stackit_alpha.md) - Contains alpha STACKIT CLI commands
3031
* [stackit auth](./stackit_auth.md) - Authenticates the STACKIT CLI
3132
* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
3233
* [stackit config](./stackit_config.md) - Provides functionality for CLI configuration options

‎docs/stackit_alpha.md‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## stackit alpha
2+
3+
Contains alpha STACKIT CLI commands
4+
5+
### Synopsis
6+
7+
Contains alpha STACKIT CLI commands.
8+
The commands under this group are still in an alpha state, and functionality may be incomplete or have breaking changes.
9+
10+
```
11+
stackit alpha [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
See the currently available alpha commands
18+
$ stackit alpha --help
19+
20+
Execute a alpha command
21+
$ stackit alpha MY_COMMAND
22+
```
23+
24+
### Options
25+
26+
```
27+
-h, --help Help for "stackit alpha"
28+
```
29+
30+
### Options inherited from parent commands
31+
32+
```
33+
-y, --assume-yes If set, skips all confirmation prompts
34+
--async If set, runs the command asynchronously
35+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
36+
-p, --project-id string Project ID
37+
--region string Target region for region-specific requests
38+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
39+
```
40+
41+
### SEE ALSO
42+
43+
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
44+
* [stackit alpha sca](./stackit_alpha_sca.md) - Provides functionality for SCA
45+

‎docs/stackit_alpha_sca.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## stackit alpha sca
2+
3+
Provides functionality for SCA
4+
5+
### Synopsis
6+
7+
Provides functionality for STACKIT Container Applications (SCA).
8+
9+
```
10+
stackit alpha sca [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit alpha sca"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit alpha](./stackit_alpha.md) - Contains alpha STACKIT CLI commands
33+
* [stackit alpha sca application](./stackit_alpha_sca_application.md) - Provides functionality for SCA applications
34+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit alpha sca application
2+
3+
Provides functionality for SCA applications
4+
5+
### Synopsis
6+
7+
Provides functionality for STACKIT Container Applications (SCA) cluster.
8+
9+
```
10+
stackit alpha sca application [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit alpha sca application"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit alpha sca](./stackit_alpha_sca.md) - Provides functionality for SCA
33+
* [stackit alpha sca application create](./stackit_alpha_sca_application_create.md) - Create a SCA application
34+
* [stackit alpha sca application create-from-payload](./stackit_alpha_sca_application_create-from-payload.md) - Create a SCA application from payload
35+
* [stackit alpha sca application delete](./stackit_alpha_sca_application_delete.md) - Delete a SCA application
36+
* [stackit alpha sca application describe](./stackit_alpha_sca_application_describe.md) - Show details of a SCA application
37+
* [stackit alpha sca application generate-payload](./stackit_alpha_sca_application_generate-payload.md) - Generates a payload to create/update SCA applications
38+
* [stackit alpha sca application list](./stackit_alpha_sca_application_list.md) - Lists all SCA applications
39+
* [stackit alpha sca application update](./stackit_alpha_sca_application_update.md) - Update a SCA application
40+
* [stackit alpha sca application update-from-payload](./stackit_alpha_sca_application_update-from-payload.md) - Update a SCA application from payload
41+
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
## stackit alpha sca application create-from-payload
2+
3+
Create a SCA application from payload
4+
5+
### Synopsis
6+
7+
Create a STACKIT Container Applications (SCA) application from payload.
8+
The payload can be provided as a JSON string or a file path prefixed with "@".
9+
See https://docs.api.stackit.cloud/documentation/sca/version/v1alpha#tag/Applications/operation/Applications_CreateApplication for information regarding the payload structure.
10+
11+
```
12+
stackit alpha sca application create-from-payload [flags]
13+
```
14+
15+
### Examples
16+
17+
```
18+
Create a SCA application using an API payload sourced from the file "./payload.json"
19+
$ stackit alpha sca cluster create-from-payload --name application-name --payload @./payload.json
20+
21+
Create a SCA application using an API payload provided as a JSON string
22+
$ stackit alpha sca cluster create-from-payload --name application-name --payload "{...}"
23+
24+
Generate a payload with default values, and adapt it with custom values for the different configuration options
25+
$ stackit alpha sca application generate-payload --file-path ./payload.json
26+
<Modify payload in file, if needed>
27+
$ stackit alpha sca application create-from-payload --name application-name --payload @./payload.json
28+
```
29+
30+
### Options
31+
32+
```
33+
--environment-id string Environment ID (uses default environment if not set)
34+
-h, --help Help for "stackit alpha sca application create-from-payload"
35+
--name string Application display name
36+
--payload string Request payload (JSON). Can be a string or a file path, if prefixed with "@" (example: @./payload.json).
37+
```
38+
39+
### Options inherited from parent commands
40+
41+
```
42+
-y, --assume-yes If set, skips all confirmation prompts
43+
--async If set, runs the command asynchronously
44+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
45+
-p, --project-id string Project ID
46+
--region string Target region for region-specific requests
47+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
48+
```
49+
50+
### SEE ALSO
51+
52+
* [stackit alpha sca application](./stackit_alpha_sca_application.md) - Provides functionality for SCA applications
53+
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
## stackit alpha sca application create
2+
3+
Create a SCA application
4+
5+
### Synopsis
6+
7+
Create a STACKIT Container Applications (SCA) application.
8+
9+
```
10+
stackit alpha sca application create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a SCA application with name "application-name" and image "my-image" for an environment with ID "yyy"
17+
$ stackit alpha sca application create --name application-name --image my-image --environment-id yyy
18+
19+
Create a SCA application with name "application-name" and image "my-image" with 2 instances
20+
$ stackit alpha sca application create --name application-name --image my-image --instances 2
21+
22+
Create a SCA application with name "application-name" and image "my-image" exposing port 8888 of the container
23+
$ stackit alpha sca application create --name application-name --image my-image --external-port 8888
24+
25+
Create a SCA application with name "application-name" and image "my-image" disabling public networking
26+
$ stackit alpha sca application create --name application-name --image my-image --public=false
27+
28+
Create a SCA application with name "application-name" and image "my-image" and environment variables ENV1=value1 and ENV2=value2
29+
$ stackit alpha sca application create --name application-name --image my-image --environment-vars ENV1=value1,ENV2=value2
30+
```
31+
32+
### Options
33+
34+
```
35+
--args strings Arguments to pass to the application container command
36+
--commands strings Commands to execute in the application container
37+
--container-name string Container name (default "container-1")
38+
--cpu int32 The dedicated virtual CPU processing power allocated per container instance (default 1000)
39+
--environment-id string Environment ID (uses default environment if not set)
40+
--environment-vars stringToString Environment variables to inject into the application (default [])
41+
--external-port int32 Container external exposed port (default 8080)
42+
-h, --help Help for "stackit alpha sca application create"
43+
--http-rule-concurrency int32 Target number of in-flight requests to trigger autoscaling (if autoscaling is enabled)
44+
--http-rule-rps int32 Target number of requests per second to trigger autoscaling (if autoscaling is enabled)
45+
--image string Container image
46+
--instances int32 The number of application instances (if manually scaled) (default 1)
47+
--max-instances int32 The maximum number of application instances (if autoscaling is enabled)
48+
--memory int32 The total amount of memory (RAM) allocated per container instance (default 1024)
49+
--min-instances int32 The minimum number of application instances (if autoscaling is enabled) (default 1)
50+
--name string Application display name
51+
--public Exposes your application securely to the public internet via HTTPS endpoint (default true)
52+
--scale-to-zero Enable scale to zero (if autoscaling is enabled)
53+
--scaling-type string Scaling type, (one of: [manual, auto]) (default "manual")
54+
```
55+
56+
### Options inherited from parent commands
57+
58+
```
59+
-y, --assume-yes If set, skips all confirmation prompts
60+
--async If set, runs the command asynchronously
61+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
62+
-p, --project-id string Project ID
63+
--region string Target region for region-specific requests
64+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
65+
```
66+
67+
### SEE ALSO
68+
69+
* [stackit alpha sca application](./stackit_alpha_sca_application.md) - Provides functionality for SCA applications
70+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit alpha sca application delete
2+
3+
Delete a SCA application
4+
5+
### Synopsis
6+
7+
Delete a STACKIT Container Applications (SCA) application.
8+
9+
```
10+
stackit alpha sca application delete [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete a SCA application with ID "xxx" from an environment with ID "yyy"
17+
$ stackit alpha sca application delete xxx --environment-id yyy
18+
```
19+
20+
### Options
21+
22+
```
23+
--environment-id string Environment ID (uses default environment if not set)
24+
-h, --help Help for "stackit alpha sca application delete"
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
33+
-p, --project-id string Project ID
34+
--region string Target region for region-specific requests
35+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit alpha sca application](./stackit_alpha_sca_application.md) - Provides functionality for SCA applications
41+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## stackit alpha sca application describe
2+
3+
Show details of a SCA application
4+
5+
### Synopsis
6+
7+
Show details of a STACKIT Container Applications (SCA) application.
8+
9+
```
10+
stackit alpha sca application describe [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Get details of a SCA application with ID "xxx" from an environment with ID "yyy"
17+
$ stackit alpha sca application describe xxx --environment-id yyy
18+
19+
Get details of all SCA application with ID "xxx" from an environment with ID "yyy" in JSON format
20+
$ stackit alpha sca application describe xxx --environment-id yyy --output-format json
21+
```
22+
23+
### Options
24+
25+
```
26+
--environment-id string Environment ID (if not set uses default environment)
27+
-h, --help Help for "stackit alpha sca application describe"
28+
```
29+
30+
### Options inherited from parent commands
31+
32+
```
33+
-y, --assume-yes If set, skips all confirmation prompts
34+
--async If set, runs the command asynchronously
35+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
36+
-p, --project-id string Project ID
37+
--region string Target region for region-specific requests
38+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
39+
```
40+
41+
### SEE ALSO
42+
43+
* [stackit alpha sca application](./stackit_alpha_sca_application.md) - Provides functionality for SCA applications
44+
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
## stackit alpha sca application generate-payload
2+
3+
Generates a payload to create/update SCA applications
4+
5+
### Synopsis
6+
7+
Generates a JSON payload with values to be used as --payload input for application creation or update.
8+
See https://docs.api.stackit.cloud/documentation/sca/version/v1alpha#tag/Applications/operation/Applications_CreateApplication for information regarding the payload structure.
9+
10+
```
11+
stackit alpha sca application generate-payload [flags]
12+
```
13+
14+
### Examples
15+
16+
```
17+
Generate a payload with default values, and adapt it with custom values for the different configuration options
18+
$ stackit alpha sca application generate-payload --file-path ./payload.json
19+
<Modify payload in file, if needed>
20+
$ stackit alpha sca application create-from-payload --name application-name --payload @./payload.json
21+
22+
Generate a payload with values of an application, and adapt it with custom values for the different configuration options
23+
$ stackit alpha sca application generate-payload --application-id xxx --file-path ./payload.json
24+
<Modify payload in file>
25+
$ stackit alpha sca application update-from-payload --payload @./payload.json
26+
27+
Generate a payload with values of an application, and preview it in the terminal
28+
$ stackit alpha sca application generate-payload --application-id xxx
29+
```
30+
31+
### Options
32+
33+
```
34+
--application-id string
35+
--environment-id string
36+
-f, --file-path string If set, writes the payload to the given file. If unset, writes the payload to the standard output
37+
-h, --help Help for "stackit alpha sca application generate-payload"
38+
```
39+
40+
### Options inherited from parent commands
41+
42+
```
43+
-y, --assume-yes If set, skips all confirmation prompts
44+
--async If set, runs the command asynchronously
45+
-o, --output-format string Output format, (one of: [json, pretty, none, yaml])
46+
-p, --project-id string Project ID
47+
--region string Target region for region-specific requests
48+
--verbosity string Verbosity of the CLI, (one of: [debug, info, warning, error]) (default "info")
49+
```
50+
51+
### SEE ALSO
52+
53+
* [stackit alpha sca application](./stackit_alpha_sca_application.md) - Provides functionality for SCA applications
54+

0 commit comments

Comments
 (0)