Skip to content

Commit ef55e51

Browse files
authored
Merge pull request #5201 from platformsh/cli-commands-doc-page
[CLI-BOT] Update on doc pages for CLI commands
2 parents 5dafb23 + caab969 commit ef55e51

File tree

2 files changed

+50
-66
lines changed

2 files changed

+50
-66
lines changed

sites/platform/src/administration/cli/reference.md

Lines changed: 25 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ showTitle: false
1313

1414
<!-- vale off -->
1515

16-
# Upsun CLI (Platform.sh compatibility) 5.6.0
16+
# Upsun CLI (Platform.sh compatibility) 5.7.2
1717

1818
- [Installation](/administration/cli#1-install)
1919
- [Open an issue](https://github.com/platformsh/cli/issues)
@@ -182,10 +182,6 @@ showTitle: false
182182
* [`repo:ls`](#repols)
183183
* [`repo:read`](#reporead)
184184

185-
**resources**
186-
187-
* [`resources:build:get`](#resourcesbuildget)
188-
189185
**route**
190186

191187
* [`route:get`](#routeget)
@@ -841,6 +837,11 @@ platform activity:list --type push --start 2015-03-15
841837
platform activity:list --limit 25 -i
842838
```
843839

840+
* Include the activity type in the table:
841+
```
842+
platform activity:list --columns +type
843+
```
844+
844845
## `activity:log`
845846

846847
Display the log for an activity
@@ -3480,7 +3481,7 @@ Aliases: `push`
34803481
### Usage
34813482

34823483
```
3483-
platform push [--target TARGET] [-f|--force] [--force-with-lease] [-u|--set-upstream] [--activate] [--parent PARENT] [--type TYPE] [--no-clone-parent] [-W|--no-wait] [--wait] [-p|--project PROJECT] [-e|--environment ENVIRONMENT] [--] [<source>]
3484+
platform push [--target TARGET] [-f|--force] [--force-with-lease] [-u|--set-upstream] [--activate] [--parent PARENT] [--type TYPE] [--no-clone-parent] [-s|--deploy-strategy DEPLOY-STRATEGY] [-W|--no-wait] [--wait] [-p|--project PROJECT] [-e|--environment ENVIRONMENT] [--] [<source>]
34843485
```
34853486

34863487
#### Arguments
@@ -3514,6 +3515,9 @@ platform push [--target TARGET] [-f|--force] [--force-with-lease] [-u|--set-upst
35143515
* `--no-clone-parent`
35153516
Do not clone the parent branch's data (only used with --activate)
35163517

3518+
* `--deploy-strategy` (`-s`) (expects a value)
3519+
Set the deployment strategy, rolling or stopstart (default)
3520+
35173521
* `--no-wait` (`-W`)
35183522
Do not wait for the operation to complete
35193523

@@ -5049,7 +5053,7 @@ platform metrics [-B|--bytes] [-r|--range RANGE] [-i|--interval INTERVAL] [--to
50495053
The output format: table, csv, tsv, or plain
50505054

50515055
* `--columns` (`-c`) (expects a value)
5052-
Columns to display. Available columns: timestamp*, service*, cpu_percent*, mem_percent*, disk_percent*, tmp_disk_percent*, cpu_limit, cpu_used, disk_limit, disk_used, inodes_limit, inodes_percent, inodes_used, mem_limit, mem_used, tmp_disk_limit, tmp_disk_used, tmp_inodes_limit, tmp_inodes_percent, tmp_inodes_used, type (* = default columns). The character "+" can be used as a placeholder for the default columns. The % or * characters may be used as a wildcard. Values may be split by commas (e.g. "a,b,c") and/or whitespace.
5056+
Columns to display. Available columns: timestamp*, service*, cpu_percent*, mem_percent*, disk_percent*, inodes_percent*, tmp_disk_percent*, tmp_inodes_percent*, cpu_limit, cpu_used, disk_limit, disk_used, inodes_limit, inodes_used, mem_limit, mem_used, tmp_disk_limit, tmp_disk_used, tmp_inodes_limit, tmp_inodes_used, type (* = default columns). The character "+" can be used as a placeholder for the default columns. The % or * characters may be used as a wildcard. Values may be split by commas (e.g. "a,b,c") and/or whitespace.
50535057

50545058
* `--no-header`
50555059
Do not output the table header
@@ -5082,9 +5086,9 @@ platform metrics [-B|--bytes] [-r|--range RANGE] [-i|--interval INTERVAL] [--to
50825086
platform metrics:all
50835087
```
50845088

5085-
* Show metrics in five-minute intervals over the last hour:
5089+
* Show metrics over the last hour:
50865090
```
5087-
platform metrics:all -i 5m -r 1h
5091+
platform metrics:all -r 1h
50885092
```
50895093

50905094
* Show metrics for all SQL services:
@@ -5169,14 +5173,17 @@ Aliases: `disk`
51695173
### Usage
51705174

51715175
```
5172-
platform disk [-B|--bytes] [-r|--range RANGE] [-i|--interval INTERVAL] [--to TO] [-1|--latest] [-s|--service SERVICE] [--type TYPE] [--tmp] [-p|--project PROJECT] [-e|--environment ENVIRONMENT] [--format FORMAT] [-c|--columns COLUMNS] [--no-header] [--date-fmt DATE-FMT]
5176+
platform disk [-B|--bytes] [--tmp] [-r|--range RANGE] [-i|--interval INTERVAL] [--to TO] [-1|--latest] [-s|--service SERVICE] [--type TYPE] [-p|--project PROJECT] [-e|--environment ENVIRONMENT] [--format FORMAT] [-c|--columns COLUMNS] [--no-header] [--date-fmt DATE-FMT]
51735177
```
51745178

51755179
#### Options
51765180

51775181
* `--bytes` (`-B`)
51785182
Show sizes in bytes
51795183

5184+
* `--tmp`
5185+
Report temporary disk usage (shows columns: timestamp, service, tmp_used, tmp_limit, tmp_percent, tmp_ipercent)
5186+
51805187
* `--range` (`-r`) (expects a value)
51815188
The time range. Metrics will be loaded for this duration until the end time (--to). You can specify units: hours (h), minutes (m), or seconds (s). Minimum 5m, maximum 8h or more (depending on the project), default 10m.
51825189

@@ -5195,9 +5202,6 @@ platform disk [-B|--bytes] [-r|--range RANGE] [-i|--interval INTERVAL] [--to TO]
51955202
* `--type` (expects a value)
51965203
Filter by service type (if --service is not provided). The version is not required. The % or * characters may be used as a wildcard.
51975204

5198-
* `--tmp`
5199-
Report temporary disk usage (shows columns: timestamp, service, tmp_used, tmp_limit, tmp_percent, tmp_ipercent)
5200-
52015205
* `--project` (`-p`) (expects a value)
52025206
The project ID or URL
52035207

@@ -6581,6 +6585,9 @@ You can review the digest at any time by running: platform init --digest
65816585
* `--ai` (expects a value)
65826586
Use AI configuration
65836587

6588+
* `--context` (expects a value)
6589+
Add extra context for AI configuration
6590+
65846591
* `--digest`
65856592
Only show the repository digest (the AI configuration input), without sending it
65866593

@@ -6611,6 +6618,11 @@ platform project:init
66116618
platform project:init --ai=false
66126619
```
66136620

6621+
* Add context for AI configuration:
6622+
```
6623+
platform project:init --ai --context='Use PostgreSQL for the database'
6624+
```
6625+
66146626
## `project:list`
66156627

66166628
Get a list of all active projects
@@ -6887,50 +6899,6 @@ platform read [-c|--commit COMMIT] [-p|--project PROJECT] [-e|--environment ENVI
68876899
* `--no-interaction`
68886900
Do not ask any interactive questions; accept default values. Equivalent to using the environment variable: PLATFORMSH_CLI_NO_INTERACTION=1
68896901

6890-
## `resources:build:get`
6891-
6892-
View the build resources of a project
6893-
6894-
Aliases: `build-resources:get`, `build-resources`
6895-
6896-
### Usage
6897-
6898-
```
6899-
platform build-resources:get [-p|--project PROJECT] [--format FORMAT] [-c|--columns COLUMNS] [--no-header]
6900-
```
6901-
6902-
#### Options
6903-
6904-
* `--project` (`-p`) (expects a value)
6905-
The project ID or URL
6906-
6907-
* `--format` (expects a value)
6908-
The output format: table, csv, tsv, or plain
6909-
6910-
* `--columns` (`-c`) (expects a value)
6911-
Columns to display. Available columns: cpu, memory. The % or * characters may be used as a wildcard. Values may be split by commas (e.g. "a,b,c") and/or whitespace.
6912-
6913-
* `--no-header`
6914-
Do not output the table header
6915-
6916-
* `--help` (`-h`)
6917-
Display this help message
6918-
6919-
* `--version` (`-V`)
6920-
Display this application version
6921-
6922-
* `--verbose` (`-v|-vv|-vvv`)
6923-
Increase the verbosity of messages
6924-
6925-
* `--quiet` (`-q`)
6926-
Only print necessary output; suppress other messages and errors. This implies --no-interaction. It is ignored in verbose mode.
6927-
6928-
* `--yes` (`-y`)
6929-
Answer "yes" to confirmation questions; accept the default value for other questions; disable interaction
6930-
6931-
* `--no-interaction`
6932-
Do not ask any interactive questions; accept default values. Equivalent to using the environment variable: PLATFORMSH_CLI_NO_INTERACTION=1
6933-
69346902
## `route:get`
69356903

69366904
View detailed information about a route

sites/upsun/src/administration/cli/reference.md

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ showTitle: false
1313

1414
<!-- vale off -->
1515

16-
# Upsun CLI 5.6.0
16+
# Upsun CLI 5.7.2
1717

1818
- [Installation](/administration/cli#1-install)
1919
- [Open an issue](https://github.com/platformsh/cli/issues)
@@ -844,6 +844,11 @@ upsun activity:list --type push --start 2015-03-15
844844
upsun activity:list --limit 25 -i
845845
```
846846

847+
* Include the activity type in the table:
848+
```
849+
upsun activity:list --columns +type
850+
```
851+
847852
## `activity:log`
848853

849854
Display the log for an activity
@@ -3497,7 +3502,7 @@ Aliases: `push`
34973502
### Usage
34983503

34993504
```
3500-
upsun push [--target TARGET] [-f|--force] [--force-with-lease] [-u|--set-upstream] [--activate] [--parent PARENT] [--type TYPE] [--no-clone-parent] [--resources-init RESOURCES-INIT] [-W|--no-wait] [--wait] [-p|--project PROJECT] [-e|--environment ENVIRONMENT] [--] [<source>]
3505+
upsun push [--target TARGET] [-f|--force] [--force-with-lease] [-u|--set-upstream] [--activate] [--parent PARENT] [--type TYPE] [--no-clone-parent] [-s|--deploy-strategy DEPLOY-STRATEGY] [--resources-init RESOURCES-INIT] [-W|--no-wait] [--wait] [-p|--project PROJECT] [-e|--environment ENVIRONMENT] [--] [<source>]
35013506
```
35023507

35033508
#### Arguments
@@ -3531,6 +3536,9 @@ upsun push [--target TARGET] [-f|--force] [--force-with-lease] [-u|--set-upstrea
35313536
* `--no-clone-parent`
35323537
Do not clone the parent branch's data (only used with --activate)
35333538

3539+
* `--deploy-strategy` (`-s`) (expects a value)
3540+
Set the deployment strategy, rolling or stopstart (default)
3541+
35343542
* `--resources-init` (expects a value)
35353543
Set the resources to use for new services: parent, default, minimum, or manual. Currently the default is "default" but this will change to "parent" in future.
35363544

@@ -4930,7 +4938,7 @@ upsun metrics [-B|--bytes] [-r|--range RANGE] [-i|--interval INTERVAL] [--to TO]
49304938
The output format: table, csv, tsv, or plain
49314939

49324940
* `--columns` (`-c`) (expects a value)
4933-
Columns to display. Available columns: timestamp*, service*, cpu_percent*, mem_percent*, disk_percent*, tmp_disk_percent*, cpu_limit, cpu_used, disk_limit, disk_used, inodes_limit, inodes_percent, inodes_used, mem_limit, mem_used, tmp_disk_limit, tmp_disk_used, tmp_inodes_limit, tmp_inodes_percent, tmp_inodes_used, type (* = default columns). The character "+" can be used as a placeholder for the default columns. The % or * characters may be used as a wildcard. Values may be split by commas (e.g. "a,b,c") and/or whitespace.
4941+
Columns to display. Available columns: timestamp*, service*, cpu_percent*, mem_percent*, disk_percent*, inodes_percent*, tmp_disk_percent*, tmp_inodes_percent*, cpu_limit, cpu_used, disk_limit, disk_used, inodes_limit, inodes_used, mem_limit, mem_used, tmp_disk_limit, tmp_disk_used, tmp_inodes_limit, tmp_inodes_used, type (* = default columns). The character "+" can be used as a placeholder for the default columns. The % or * characters may be used as a wildcard. Values may be split by commas (e.g. "a,b,c") and/or whitespace.
49344942

49354943
* `--no-header`
49364944
Do not output the table header
@@ -4963,9 +4971,9 @@ upsun metrics [-B|--bytes] [-r|--range RANGE] [-i|--interval INTERVAL] [--to TO]
49634971
upsun metrics:all
49644972
```
49654973

4966-
* Show metrics in five-minute intervals over the last hour:
4974+
* Show metrics over the last hour:
49674975
```
4968-
upsun metrics:all -i 5m -r 1h
4976+
upsun metrics:all -r 1h
49694977
```
49704978

49714979
* Show metrics for all SQL services:
@@ -5050,14 +5058,17 @@ Aliases: `disk`
50505058
### Usage
50515059

50525060
```
5053-
upsun disk [-B|--bytes] [-r|--range RANGE] [-i|--interval INTERVAL] [--to TO] [-1|--latest] [-s|--service SERVICE] [--type TYPE] [--tmp] [-p|--project PROJECT] [-e|--environment ENVIRONMENT] [--format FORMAT] [-c|--columns COLUMNS] [--no-header] [--date-fmt DATE-FMT]
5061+
upsun disk [-B|--bytes] [--tmp] [-r|--range RANGE] [-i|--interval INTERVAL] [--to TO] [-1|--latest] [-s|--service SERVICE] [--type TYPE] [-p|--project PROJECT] [-e|--environment ENVIRONMENT] [--format FORMAT] [-c|--columns COLUMNS] [--no-header] [--date-fmt DATE-FMT]
50545062
```
50555063

50565064
#### Options
50575065

50585066
* `--bytes` (`-B`)
50595067
Show sizes in bytes
50605068

5069+
* `--tmp`
5070+
Report temporary disk usage (shows columns: timestamp, service, tmp_used, tmp_limit, tmp_percent, tmp_ipercent)
5071+
50615072
* `--range` (`-r`) (expects a value)
50625073
The time range. Metrics will be loaded for this duration until the end time (--to). You can specify units: hours (h), minutes (m), or seconds (s). Minimum 5m, maximum 8h or more (depending on the project), default 10m.
50635074

@@ -5076,9 +5087,6 @@ upsun disk [-B|--bytes] [-r|--range RANGE] [-i|--interval INTERVAL] [--to TO] [-
50765087
* `--type` (expects a value)
50775088
Filter by service type (if --service is not provided). The version is not required. The % or * characters may be used as a wildcard.
50785089

5079-
* `--tmp`
5080-
Report temporary disk usage (shows columns: timestamp, service, tmp_used, tmp_limit, tmp_percent, tmp_ipercent)
5081-
50825090
* `--project` (`-p`) (expects a value)
50835091
The project ID or URL
50845092

@@ -6498,6 +6506,9 @@ You can review the digest at any time by running: upsun init --digest
64986506
* `--ai` (expects a value)
64996507
Use AI configuration
65006508

6509+
* `--context` (expects a value)
6510+
Add extra context for AI configuration
6511+
65016512
* `--digest`
65026513
Only show the repository digest (the AI configuration input), without sending it
65036514

@@ -6528,6 +6539,11 @@ upsun project:init
65286539
upsun project:init --ai=false
65296540
```
65306541

6542+
* Add context for AI configuration:
6543+
```
6544+
upsun project:init --ai --context='Use PostgreSQL for the database'
6545+
```
6546+
65316547
## `project:list`
65326548

65336549
Get a list of all active projects

0 commit comments

Comments
 (0)