File tree Expand file tree Collapse file tree 5 files changed +79
-8
lines changed
Expand file tree Collapse file tree 5 files changed +79
-8
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ Manage and debug resources deployed in Codesphere via command line.
2929* [ cs log] ( cs_log.md ) - Retrieve run logs from services
3030* [ cs monitor] ( cs_monitor.md ) - Monitor a command and report health information
3131* [ cs open] ( cs_open.md ) - Open the Codesphere IDE
32+ * [ cs scale] ( cs_scale.md ) - Scale Codesphere resources
3233* [ cs set-env] ( cs_set-env.md ) - Set environment variables
3334* [ cs start] ( cs_start.md ) - Start workspace pipeline
3435* [ cs sync] ( cs_sync.md ) - Sync Codesphere resources
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ Manage and debug resources deployed in Codesphere via command line.
2929* [ cs log] ( cs_log.md ) - Retrieve run logs from services
3030* [ cs monitor] ( cs_monitor.md ) - Monitor a command and report health information
3131* [ cs open] ( cs_open.md ) - Open the Codesphere IDE
32+ * [ cs scale] ( cs_scale.md ) - Scale Codesphere resources
3233* [ cs set-env] ( cs_set-env.md ) - Set environment variables
3334* [ cs start] ( cs_start.md ) - Start workspace pipeline
3435* [ cs sync] ( cs_sync.md ) - Sync Codesphere resources
Original file line number Diff line number Diff line change 1+ ## cs scale
2+
3+ Scale Codesphere resources
4+
5+ ### Synopsis
6+
7+ Scale Codesphere resources, like landscape services of a workspace.
8+
9+ ### Options
10+
11+ ```
12+ -h, --help help for scale
13+ ```
14+
15+ ### Options inherited from parent commands
16+
17+ ```
18+ -a, --api string URL of Codesphere API (can also be CS_API)
19+ -t, --team int Team ID (relevant for some commands, can also be CS_TEAM_ID) (default -1)
20+ -v, --verbose Verbose output
21+ -w, --workspace int Workspace ID (relevant for some commands, can also be CS_WORKSPACE_ID) (default -1)
22+ ```
23+
24+ ### SEE ALSO
25+
26+ * [ cs] ( cs.md ) - The Codesphere CLI
27+ * [ cs scale workspace] ( cs_scale_workspace.md ) - Scale landscape services of a workspace
28+
Original file line number Diff line number Diff line change 1+ ## cs scale workspace
2+
3+ Scale landscape services of a workspace
4+
5+ ### Synopsis
6+
7+ Scale landscape services of a workspace by specifying service name and replica count.
8+
9+ ```
10+ cs scale workspace [flags]
11+ ```
12+
13+ ### Examples
14+
15+ ```
16+ # scale frontend to 2 and backend to 3 replicas
17+ $ cs scale workspace --service frontend=2 --service backend=3
18+
19+ # scale web service to 1 replica on workspace 1234
20+ $ cs scale workspace -w 1234 --service web=1
21+
22+ # scale api service to 0 replicas
23+ $ cs scale workspace --service api=0
24+ ```
25+
26+ ### Options
27+
28+ ```
29+ -h, --help help for workspace
30+ --service stringArray Service to scale (format: 'service=replicas'), can be specified multiple times
31+ ```
32+
33+ ### Options inherited from parent commands
34+
35+ ```
36+ -a, --api string URL of Codesphere API (can also be CS_API)
37+ -t, --team int Team ID (relevant for some commands, can also be CS_TEAM_ID) (default -1)
38+ -v, --verbose Verbose output
39+ -w, --workspace int Workspace ID (relevant for some commands, can also be CS_WORKSPACE_ID) (default -1)
40+ ```
41+
42+ ### SEE ALSO
43+
44+ * [ cs scale] ( cs_scale.md ) - Scale Codesphere resources
45+
Original file line number Diff line number Diff line change @@ -27,19 +27,15 @@ $ cs wake-up -w 1234 --sync-landscape
2727
2828# wake up workspace and deploy landscape with prod profile
2929$ cs wake-up -w 1234 --sync-landscape --profile prod
30-
31- # wake up workspace and scale specific services
32- $ cs wake-up -w 1234 --scale-services web=1,api=2
3330```
3431
3532### Options
3633
3734```
38- -h, --help help for wake-up
39- -p, --profile string CI profile to use for landscape deploy (e.g. 'prod' for ci.prod.yml)
40- --scale-services string Scale specific landscape services (format: 'service=replicas,service2=replicas')
41- --sync-landscape Deploy landscape from CI profile after waking up
42- --timeout duration Timeout for waking up the workspace (default 2m0s)
35+ -h, --help help for wake-up
36+ -p, --profile string CI profile to use for landscape deploy (e.g. 'prod' for ci.prod.yml)
37+ --sync-landscape Deploy landscape from CI profile after waking up
38+ --timeout duration Timeout for waking up the workspace (default 2m0s)
4339```
4440
4541### Options inherited from parent commands
You can’t perform that action at this time.
0 commit comments