@powersync/cli-plugin-docker 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/docker/configure.d.ts +0 -2
- package/dist/commands/docker/configure.js +0 -1
- package/dist/commands/docker/index.d.ts +0 -4
- package/dist/commands/docker/index.js +0 -3
- package/dist/commands/docker/reset.d.ts +0 -4
- package/dist/commands/docker/reset.js +1 -4
- package/dist/commands/docker/start.d.ts +0 -4
- package/dist/commands/docker/start.js +1 -4
- package/dist/commands/docker/stop.d.ts +0 -2
- package/dist/commands/docker/stop.js +1 -2
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
|
@@ -5,8 +5,6 @@ export default class DockerConfigure extends DockerCommand {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
database: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
7
|
storage: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
-
'api-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
-
directory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
8
|
};
|
|
11
9
|
static summary: string;
|
|
12
10
|
run(): Promise<void>;
|
|
@@ -37,7 +37,6 @@ export default class DockerConfigure extends DockerCommand {
|
|
|
37
37
|
'<%= config.bin %> <%= command.id %> --database=postgres --storage=postgres'
|
|
38
38
|
];
|
|
39
39
|
static flags = {
|
|
40
|
-
...DockerCommand.flags,
|
|
41
40
|
database: Flags.string({
|
|
42
41
|
description: 'Database module for replication source. Omit to be prompted.',
|
|
43
42
|
options: [...TEMPLATES[DockerModuleType.SOURCE_DATABASE].map((t) => t.name), NONE_OPTION],
|
|
@@ -2,10 +2,6 @@ import { DockerCommand } from '../../DockerCommand.js';
|
|
|
2
2
|
export default class Docker extends DockerCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
|
-
static flags: {
|
|
6
|
-
'api-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
-
directory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
-
};
|
|
9
5
|
static hidden: boolean;
|
|
10
6
|
static summary: string;
|
|
11
7
|
run(): Promise<void>;
|
|
@@ -2,9 +2,6 @@ import { DockerCommand } from '../../DockerCommand.js';
|
|
|
2
2
|
export default class Docker extends DockerCommand {
|
|
3
3
|
static description = 'Scaffold and run a self-hosted PowerSync stack via Docker. Use `docker configure` to create powersync/docker/, then `docker reset` (stop+remove then start) or `docker start` / `docker stop`.';
|
|
4
4
|
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
5
|
-
static flags = {
|
|
6
|
-
...DockerCommand.flags
|
|
7
|
-
};
|
|
8
5
|
static hidden = true;
|
|
9
6
|
static summary = '[Self-hosted only] Manage self-hosted PowerSync with Docker Compose (configure, reset, start, stop).';
|
|
10
7
|
async run() {
|
|
@@ -2,10 +2,6 @@ import { DockerCommand } from '../../DockerCommand.js';
|
|
|
2
2
|
export default class DockerReset extends DockerCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
|
-
static flags: {
|
|
6
|
-
'api-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
-
directory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
-
};
|
|
9
5
|
static summary: string;
|
|
10
6
|
run(): Promise<void>;
|
|
11
7
|
}
|
|
@@ -4,13 +4,10 @@ import { DockerCommand } from '../../DockerCommand.js';
|
|
|
4
4
|
export default class DockerReset extends DockerCommand {
|
|
5
5
|
static description = 'Run `docker compose down` then `docker compose up -d --wait`: stops and removes containers, then starts the stack and waits for services (including PowerSync) to be healthy. Use when you want a clean bring-up (e.g. after config changes). Use `powersync status` to debug running instances.';
|
|
6
6
|
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
7
|
-
static flags = {
|
|
8
|
-
...DockerCommand.flags
|
|
9
|
-
};
|
|
10
7
|
static summary = 'Reset the self-hosted PowerSync stack (stop and remove, then start).';
|
|
11
8
|
async run() {
|
|
12
9
|
const { flags } = await this.parse(DockerReset);
|
|
13
|
-
const { projectDirectory } = this.loadProject(flags, {
|
|
10
|
+
const { projectDirectory } = await this.loadProject(flags, {
|
|
14
11
|
configFileRequired: true
|
|
15
12
|
});
|
|
16
13
|
const projectName = getDockerProjectName(projectDirectory);
|
|
@@ -2,10 +2,6 @@ import { DockerCommand } from '../../DockerCommand.js';
|
|
|
2
2
|
export default class DockerStart extends DockerCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
|
-
static flags: {
|
|
6
|
-
'api-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
-
directory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
-
};
|
|
9
5
|
static summary: string;
|
|
10
6
|
run(): Promise<void>;
|
|
11
7
|
}
|
|
@@ -4,13 +4,10 @@ import { DockerCommand } from '../../DockerCommand.js';
|
|
|
4
4
|
export default class DockerStart extends DockerCommand {
|
|
5
5
|
static description = 'Runs `docker compose up -d --wait` for the project docker/ compose file; waits for services (including PowerSync) to be healthy. Use `powersync status` to debug running instances.';
|
|
6
6
|
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
7
|
-
static flags = {
|
|
8
|
-
...DockerCommand.flags
|
|
9
|
-
};
|
|
10
7
|
static summary = 'Start the self-hosted PowerSync stack via Docker Compose.';
|
|
11
8
|
async run() {
|
|
12
9
|
const { flags } = await this.parse(DockerStart);
|
|
13
|
-
const { projectDirectory } = this.loadProject(flags, {
|
|
10
|
+
const { projectDirectory } = await this.loadProject(flags, {
|
|
14
11
|
configFileRequired: true
|
|
15
12
|
});
|
|
16
13
|
const projectName = getDockerProjectName(projectDirectory);
|
|
@@ -6,8 +6,6 @@ export default class DockerStop extends DockerCommand {
|
|
|
6
6
|
'project-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
7
|
remove: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
8
|
'remove-volumes': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
-
'api-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
-
directory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
9
|
};
|
|
12
10
|
static summary: string;
|
|
13
11
|
run(): Promise<void>;
|
|
@@ -8,7 +8,6 @@ export default class DockerStop extends DockerCommand {
|
|
|
8
8
|
'<%= config.bin %> <%= command.id %> --project-name=powersync_myapp --remove'
|
|
9
9
|
];
|
|
10
10
|
static flags = {
|
|
11
|
-
...DockerCommand.flags,
|
|
12
11
|
'project-name': Flags.string({
|
|
13
12
|
description: 'Docker Compose project name to stop (e.g. powersync_myapp). If omitted and run from a project directory, uses plugins.docker.project_name from cli.yaml. Pass this to stop from any directory without loading the project.'
|
|
14
13
|
}),
|
|
@@ -26,7 +25,7 @@ export default class DockerStop extends DockerCommand {
|
|
|
26
25
|
const { flags } = await this.parse(DockerStop);
|
|
27
26
|
let projectName = flags['project-name'];
|
|
28
27
|
if (projectName == null || projectName === '') {
|
|
29
|
-
const { projectDirectory } = this.loadProject(flags, {
|
|
28
|
+
const { projectDirectory } = await this.loadProject(flags, {
|
|
30
29
|
configFileRequired: true
|
|
31
30
|
});
|
|
32
31
|
projectName = getDockerProjectName(projectDirectory) ?? undefined;
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/cli-plugin-docker",
|
|
3
3
|
"description": "PowerSync CLI plugin: reset, start, and stop self-hosted instances using Docker Compose",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.4",
|
|
5
5
|
"author": "POWERSYNC",
|
|
6
6
|
"license": "FSL-1.1-ALv2",
|
|
7
7
|
"type": "module",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@inquirer/prompts": "^7.2.0",
|
|
26
26
|
"@oclif/core": "^4",
|
|
27
|
-
"@powersync/service-schema": "^1.20.
|
|
27
|
+
"@powersync/service-schema": "^1.20.2",
|
|
28
28
|
"@powersync/service-types": "^0.15.0",
|
|
29
29
|
"yaml": "^2",
|
|
30
|
-
"@powersync/cli-core": "0.9.
|
|
31
|
-
"@powersync/cli-schemas": "0.9.
|
|
30
|
+
"@powersync/cli-core": "0.9.4",
|
|
31
|
+
"@powersync/cli-schemas": "0.9.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^24",
|