Skip to content

Commit cc201e8

Browse files
cleanup
1 parent 5ff5b14 commit cc201e8

2 files changed

Lines changed: 32 additions & 23 deletions

File tree

cli/README.md

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,15 @@ _See code: [src/commands/configure/ide.ts](https://github.com/powersync-ja/power
397397
```
398398
USAGE
399399
$ powersync deploy [--deploy-timeout <value>] [--directory <value>] [--instance-id <value> --project-id
400-
<value>] [--org-id <value>] [--skip-sync-config-validation]
400+
<value>] [--org-id <value>] [--skip-validations <value> | --validate-only <value>]
401401

402402
FLAGS
403-
--deploy-timeout=<value> [default: 300] Seconds to wait after scheduling a deploy before timing out while
404-
polling status (default 300 seconds).
405-
--skip-sync-config-validation Skip sync config validation and continue with the deploy.
403+
--deploy-timeout=<value> [default: 300] Seconds to wait after scheduling a deploy before timing out while polling
404+
status (default 300 seconds).
405+
--skip-validations=<value> Comma-separated list of validation tests to skip. Options: configuration, connections,
406+
sync-config. Example: --skip-validations="configuration"
407+
--validate-only=<value> Comma-separated list of validation tests to run, skipping all others. Options:
408+
configuration, connections, sync-config. Example: --validate-only="configuration"
406409

407410
PROJECT FLAGS
408411
--directory=<value> [default: powersync] Directory containing PowerSync config. Defaults to "powersync". This is
@@ -437,12 +440,16 @@ _See code: [src/commands/deploy/index.ts](https://github.com/powersync-ja/powers
437440
438441
```
439442
USAGE
440-
$ powersync deploy service-config [--deploy-timeout <value>] [--directory <value>] [--instance-id <value> --project-id
441-
<value>] [--org-id <value>]
443+
$ powersync deploy service-config [--skip-validations <value> | --validate-only <value>] [--deploy-timeout <value>]
444+
[--directory <value>] [--instance-id <value> --project-id <value>] [--org-id <value>]
442445

443446
FLAGS
444-
--deploy-timeout=<value> [default: 300] Seconds to wait after scheduling a deploy before timing out while polling
445-
status (default 300 seconds).
447+
--deploy-timeout=<value> [default: 300] Seconds to wait after scheduling a deploy before timing out while polling
448+
status (default 300 seconds).
449+
--skip-validations=<value> Comma-separated list of validation tests to skip. Options: configuration, connections.
450+
Example: --skip-validations="configuration"
451+
--validate-only=<value> Comma-separated list of validation tests to run, skipping all others. Options:
452+
configuration, connections. Example: --validate-only="configuration"
446453

447454
PROJECT FLAGS
448455
--directory=<value> [default: powersync] Directory containing PowerSync config. Defaults to "powersync". This is
@@ -475,12 +482,13 @@ _See code: [src/commands/deploy/service-config.ts](https://github.com/powersync-
475482
```
476483
USAGE
477484
$ powersync deploy sync-config [--deploy-timeout <value>] [--directory <value>] [--instance-id <value> --project-id
478-
<value>] [--org-id <value>] [--skip-sync-config-validation] [--sync-config-file-path <value>]
485+
<value>] [--org-id <value>] [--skip-validations <value> | ] [--sync-config-file-path <value>]
479486

480487
FLAGS
481488
--deploy-timeout=<value> [default: 300] Seconds to wait after scheduling a deploy before timing out while
482489
polling status (default 300 seconds).
483-
--skip-sync-config-validation Skip sync config validation and continue with the deploy.
490+
--skip-validations=<value> Comma-separated list of validation tests to skip. Options: sync-config. Example:
491+
--skip-validations="sync-config"
484492
--sync-config-file-path=<value> Path to a sync config file. If provided, this file will be validated and deployed
485493
instead of the default sync-config.yaml.
486494

@@ -1439,6 +1447,12 @@ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
14391447
```
14401448
USAGE
14411449
$ powersync pull instance [--directory <value>] [--instance-id <value> --project-id <value>] [--org-id <value>]
1450+
[--overwrite]
1451+
1452+
FLAGS
1453+
--overwrite Overwrite existing service.yaml and sync-config.yaml if they exist. By default, if these files already
1454+
exist, the fetched configs will be written to service-fetched.yaml and sync-fetched.yaml to avoid
1455+
overwriting local changes.
14421456

14431457
PROJECT FLAGS
14441458
--directory=<value> [default: powersync] Directory containing PowerSync config. Defaults to "powersync". This is
@@ -1556,12 +1570,16 @@ Validate config schema, connections, and sync config before deploy.
15561570
15571571
```
15581572
USAGE
1559-
$ powersync validate [--output human|json|yaml] [--api-url <value> | --instance-id <value> | --org-id
1560-
<value> | --project-id <value>] [--directory <value>]
1573+
$ powersync validate [--output human|json|yaml] [--skip-validations <value> | --validate-only <value>]
1574+
[--api-url <value> | --instance-id <value> | --org-id <value> | --project-id <value>] [--directory <value>]
15611575

15621576
FLAGS
1563-
--output=<option> [default: human] Output format: human-readable, json, or yaml.
1564-
<options: human|json|yaml>
1577+
--output=<option> [default: human] Output format: human-readable, json, or yaml.
1578+
<options: human|json|yaml>
1579+
--skip-validations=<value> Comma-separated list of validation tests to skip. Options: configuration, connections,
1580+
sync-config. Example: --skip-validations="configuration"
1581+
--validate-only=<value> Comma-separated list of validation tests to run, skipping all others. Options:
1582+
configuration, connections, sync-config. Example: --validate-only="configuration"
15651583

15661584
SELF_HOSTED_PROJECT FLAGS
15671585
--api-url=<value> [Self-hosted] PowerSync API URL. When set, context is treated as self-hosted (exclusive with

cli/src/api/validations/validation-utils.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,3 @@ export function renderDiagnosticForHumanOutput(diagnostic: string, level: 'error
166166

167167
return lines;
168168
}
169-
170-
/**
171-
* Renders a warning into two lines for human output:
172-
* 1) gray source fragment
173-
* 2) yellow `[warning] line:column` prefix followed by plain message text
174-
*/
175-
export function renderWarningForHumanOutput(warning: string): string[] {
176-
return renderDiagnosticForHumanOutput(warning, 'warning');
177-
}

0 commit comments

Comments
 (0)