@remotion/cloudrun 4.0.521 → 4.0.523
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/cli/args.js +1 -0
- package/dist/cli/commands/command-names.d.ts +15 -0
- package/dist/cli/commands/command-names.js +18 -0
- package/dist/cli/commands/permissions.d.ts +1 -1
- package/dist/cli/commands/permissions.js +2 -1
- package/dist/cli/commands/regions.d.ts +1 -1
- package/dist/cli/commands/regions.js +2 -1
- package/dist/cli/commands/render/index.d.ts +1 -1
- package/dist/cli/commands/render/index.js +4 -2
- package/dist/cli/commands/services/deploy.d.ts +1 -1
- package/dist/cli/commands/services/deploy.js +2 -1
- package/dist/cli/commands/services/index.d.ts +1 -1
- package/dist/cli/commands/services/index.js +8 -6
- package/dist/cli/commands/services/ls.d.ts +1 -1
- package/dist/cli/commands/services/ls.js +2 -1
- package/dist/cli/commands/services/rm.d.ts +1 -1
- package/dist/cli/commands/services/rm.js +2 -1
- package/dist/cli/commands/services/rmall.d.ts +1 -1
- package/dist/cli/commands/services/rmall.js +2 -1
- package/dist/cli/commands/sites/create.d.ts +1 -1
- package/dist/cli/commands/sites/create.js +6 -2
- package/dist/cli/commands/sites/index.d.ts +1 -1
- package/dist/cli/commands/sites/index.js +8 -6
- package/dist/cli/commands/sites/ls.d.ts +1 -1
- package/dist/cli/commands/sites/ls.js +2 -1
- package/dist/cli/commands/sites/rm.d.ts +1 -1
- package/dist/cli/commands/sites/rm.js +2 -1
- package/dist/cli/commands/sites/rmall.d.ts +1 -1
- package/dist/cli/commands/sites/rmall.js +2 -1
- package/dist/cli/commands/still.d.ts +1 -1
- package/dist/cli/commands/still.js +4 -2
- package/dist/cli/help.d.ts +2 -1
- package/dist/cli/help.js +340 -32
- package/dist/cli/index.js +2 -2
- package/dist/index.d.ts +5 -5
- package/package.json +11 -7
package/dist/cli/args.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const CLOUDRUN_BINARY_NAME = "remotion cloudrun";
|
|
2
|
+
export declare const PERMISSIONS_COMMAND = "permissions";
|
|
3
|
+
export declare const REGIONS_COMMAND = "regions";
|
|
4
|
+
export declare const RENDER_COMMAND = "render";
|
|
5
|
+
export declare const SERVICES_COMMAND = "services";
|
|
6
|
+
export declare const STILL_COMMAND = "still";
|
|
7
|
+
export declare const SITES_COMMAND = "sites";
|
|
8
|
+
export declare const CLOUD_RUN_DEPLOY_SUBCOMMAND = "deploy";
|
|
9
|
+
export declare const SERVICES_LS_SUBCOMMAND = "ls";
|
|
10
|
+
export declare const SERVICES_RM_SUBCOMMAND = "rm";
|
|
11
|
+
export declare const SERVICES_RMALL_SUBCOMMAND = "rmall";
|
|
12
|
+
export declare const SITES_CREATE_SUBCOMMAND = "create";
|
|
13
|
+
export declare const SITES_LS_SUBCOMMAND = "ls";
|
|
14
|
+
export declare const SITES_RM_COMMAND = "rm";
|
|
15
|
+
export declare const SITES_RMALL_COMMAND = "rmall";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SITES_RMALL_COMMAND = exports.SITES_RM_COMMAND = exports.SITES_LS_SUBCOMMAND = exports.SITES_CREATE_SUBCOMMAND = exports.SERVICES_RMALL_SUBCOMMAND = exports.SERVICES_RM_SUBCOMMAND = exports.SERVICES_LS_SUBCOMMAND = exports.CLOUD_RUN_DEPLOY_SUBCOMMAND = exports.SITES_COMMAND = exports.STILL_COMMAND = exports.SERVICES_COMMAND = exports.RENDER_COMMAND = exports.REGIONS_COMMAND = exports.PERMISSIONS_COMMAND = exports.CLOUDRUN_BINARY_NAME = void 0;
|
|
4
|
+
exports.CLOUDRUN_BINARY_NAME = 'remotion cloudrun';
|
|
5
|
+
exports.PERMISSIONS_COMMAND = 'permissions';
|
|
6
|
+
exports.REGIONS_COMMAND = 'regions';
|
|
7
|
+
exports.RENDER_COMMAND = 'render';
|
|
8
|
+
exports.SERVICES_COMMAND = 'services';
|
|
9
|
+
exports.STILL_COMMAND = 'still';
|
|
10
|
+
exports.SITES_COMMAND = 'sites';
|
|
11
|
+
exports.CLOUD_RUN_DEPLOY_SUBCOMMAND = 'deploy';
|
|
12
|
+
exports.SERVICES_LS_SUBCOMMAND = 'ls';
|
|
13
|
+
exports.SERVICES_RM_SUBCOMMAND = 'rm';
|
|
14
|
+
exports.SERVICES_RMALL_SUBCOMMAND = 'rmall';
|
|
15
|
+
exports.SITES_CREATE_SUBCOMMAND = 'create';
|
|
16
|
+
exports.SITES_LS_SUBCOMMAND = 'ls';
|
|
17
|
+
exports.SITES_RM_COMMAND = 'rm';
|
|
18
|
+
exports.SITES_RMALL_COMMAND = 'rmall';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { PERMISSIONS_COMMAND } from './command-names';
|
|
2
2
|
export declare const permissionsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -5,7 +5,8 @@ const cli_1 = require("@remotion/cli");
|
|
|
5
5
|
const testPermissions_1 = require("../../api/iam-validation/testPermissions");
|
|
6
6
|
const is_in_cloud_task_1 = require("../../functions/helpers/is-in-cloud-task");
|
|
7
7
|
const log_1 = require("../log");
|
|
8
|
-
|
|
8
|
+
const command_names_1 = require("./command-names");
|
|
9
|
+
Object.defineProperty(exports, "PERMISSIONS_COMMAND", { enumerable: true, get: function () { return command_names_1.PERMISSIONS_COMMAND; } });
|
|
9
10
|
const permissionsCommand = async (logLevel) => {
|
|
10
11
|
try {
|
|
11
12
|
log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.blueBright(`Checking permissions for ${process.env.REMOTION_GCP_CLIENT_EMAIL} in project ${(0, is_in_cloud_task_1.getProjectId)()}.`));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { REGIONS_COMMAND } from './command-names';
|
|
2
2
|
export declare const regionsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.regionsCommand = exports.REGIONS_COMMAND = void 0;
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
5
|
const regions_1 = require("../../regions");
|
|
6
|
-
|
|
6
|
+
const command_names_1 = require("./command-names");
|
|
7
|
+
Object.defineProperty(exports, "REGIONS_COMMAND", { enumerable: true, get: function () { return command_names_1.REGIONS_COMMAND; } });
|
|
7
8
|
const regionsCommand = (logLevel) => {
|
|
8
9
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, regions_1.GCP_REGIONS.join(' '));
|
|
9
10
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { RENDER_COMMAND } from '../command-names';
|
|
2
2
|
export declare const renderCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -12,12 +12,14 @@ const validate_serveurl_1 = require("../../../shared/validate-serveurl");
|
|
|
12
12
|
const args_1 = require("../../args");
|
|
13
13
|
const cloudrun_crash_logs_1 = require("../../helpers/cloudrun-crash-logs");
|
|
14
14
|
const log_1 = require("../../log");
|
|
15
|
+
const command_names_1 = require("../command-names");
|
|
15
16
|
const renderArgsCheck_1 = require("./helpers/renderArgsCheck");
|
|
16
|
-
|
|
17
|
+
const command_names_2 = require("../command-names");
|
|
18
|
+
Object.defineProperty(exports, "RENDER_COMMAND", { enumerable: true, get: function () { return command_names_2.RENDER_COMMAND; } });
|
|
17
19
|
const { audioBitrateOption, x264Option, offthreadVideoCacheSizeInBytesOption, offthreadVideoThreadsOption, scaleOption, crfOption, gopSizeOption, jpegQualityOption, videoBitrateOption, enforceAudioOption, mutedOption, colorSpaceOption, numberOfGifLoopsOption, enableMultiprocessOnLinuxOption, glOption, headlessOption, encodingMaxRateOption, encodingBufferSizeOption, delayRenderTimeoutInMillisecondsOption, binariesDirectoryOption, metadataOption, mediaCacheSizeInBytesOption, darkModeOption, pixelFormatOption, browserExecutableOption, everyNthFrameOption, proResProfileOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, sampleRateOption, concurrencyOption, } = client_1.BrowserSafeApis.options;
|
|
18
20
|
const renderCommand = async (args, remotionRoot, logLevel) => {
|
|
19
21
|
var _a, _b, _c;
|
|
20
|
-
const { serveUrl, cloudRunUrl, outName, forceBucketName, downloadName, privacy, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(
|
|
22
|
+
const { serveUrl, cloudRunUrl, outName, forceBucketName, downloadName, privacy, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(command_names_1.RENDER_COMMAND, args, logLevel);
|
|
21
23
|
const { value: codec, source: codecReason } = client_1.BrowserSafeApis.options.videoCodecOption.getValue({
|
|
22
24
|
commandLine: cli_1.CliInternals.parsedCli,
|
|
23
25
|
}, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { CLOUD_RUN_DEPLOY_SUBCOMMAND } from '../command-names';
|
|
2
2
|
export declare const cloudRunDeploySubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -14,7 +14,8 @@ const get_gcp_region_1 = require("../../get-gcp-region");
|
|
|
14
14
|
const make_console_url_1 = require("../../helpers/make-console-url");
|
|
15
15
|
const quit_1 = require("../../helpers/quit");
|
|
16
16
|
const log_1 = require("../../log");
|
|
17
|
-
|
|
17
|
+
const command_names_1 = require("../command-names");
|
|
18
|
+
Object.defineProperty(exports, "CLOUD_RUN_DEPLOY_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.CLOUD_RUN_DEPLOY_SUBCOMMAND; } });
|
|
18
19
|
const cloudRunDeploySubcommand = async (logLevel) => {
|
|
19
20
|
var _a, _b, _c, _d, _e, _f;
|
|
20
21
|
const region = (0, get_gcp_region_1.getGcpRegion)();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ServiceInfo } from '../../../api/get-service-info';
|
|
2
|
-
export
|
|
2
|
+
export { SERVICES_COMMAND } from '../command-names';
|
|
3
3
|
export declare const LEFT_COL = 20;
|
|
4
4
|
export declare const displayServiceInfo: (service: ServiceInfo) => string;
|
|
5
5
|
export declare const servicesCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void> | undefined;
|
|
@@ -5,11 +5,13 @@ const cli_1 = require("@remotion/cli");
|
|
|
5
5
|
const constants_1 = require("../../../shared/constants");
|
|
6
6
|
const quit_1 = require("../../helpers/quit");
|
|
7
7
|
const log_1 = require("../../log");
|
|
8
|
+
const command_names_1 = require("../command-names");
|
|
8
9
|
const deploy_1 = require("./deploy");
|
|
9
10
|
const ls_1 = require("./ls");
|
|
10
11
|
const rm_1 = require("./rm");
|
|
11
12
|
const rmall_1 = require("./rmall");
|
|
12
|
-
|
|
13
|
+
const command_names_2 = require("../command-names");
|
|
14
|
+
Object.defineProperty(exports, "SERVICES_COMMAND", { enumerable: true, get: function () { return command_names_2.SERVICES_COMMAND; } });
|
|
13
15
|
exports.LEFT_COL = 20;
|
|
14
16
|
const displayServiceInfo = (service) => {
|
|
15
17
|
return [
|
|
@@ -25,20 +27,20 @@ const displayServiceInfo = (service) => {
|
|
|
25
27
|
};
|
|
26
28
|
exports.displayServiceInfo = displayServiceInfo;
|
|
27
29
|
const printCloudRunHelp = (logLevel) => {
|
|
28
|
-
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
30
|
+
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SERVICES_COMMAND} <subcommand>`);
|
|
29
31
|
log_1.Log.info({ indent: false, logLevel });
|
|
30
32
|
log_1.Log.info({ indent: false, logLevel }, 'Available subcommands:');
|
|
31
33
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, '');
|
|
32
|
-
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
34
|
+
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SERVICES_COMMAND} ${ls_1.SERVICES_LS_SUBCOMMAND}`);
|
|
33
35
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Lists the services currently deployed'));
|
|
34
36
|
log_1.Log.info({ indent: false, logLevel }, '');
|
|
35
|
-
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
37
|
+
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SERVICES_COMMAND} ${deploy_1.CLOUD_RUN_DEPLOY_SUBCOMMAND}`);
|
|
36
38
|
log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Deploy a new Cloud Run service'));
|
|
37
39
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, '');
|
|
38
|
-
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
40
|
+
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SERVICES_COMMAND} ${rm_1.SERVICES_RM_SUBCOMMAND} <service-name>`);
|
|
39
41
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Delete a Cloud Run service'));
|
|
40
42
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, '');
|
|
41
|
-
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
43
|
+
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SERVICES_COMMAND} ${rmall_1.SERVICES_RMALL_SUBCOMMAND}`);
|
|
42
44
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Delete all services in selected region'));
|
|
43
45
|
};
|
|
44
46
|
const servicesCommand = (args, logLevel) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SERVICES_LS_SUBCOMMAND } from '../command-names';
|
|
2
2
|
export declare const servicesLsCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -6,7 +6,8 @@ const _1 = require(".");
|
|
|
6
6
|
const get_services_1 = require("../../../api/get-services");
|
|
7
7
|
const get_gcp_region_1 = require("../../get-gcp-region");
|
|
8
8
|
const log_1 = require("../../log");
|
|
9
|
-
|
|
9
|
+
const command_names_1 = require("../command-names");
|
|
10
|
+
Object.defineProperty(exports, "SERVICES_LS_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SERVICES_LS_SUBCOMMAND; } });
|
|
10
11
|
const servicesLsCommand = async (logLevel) => {
|
|
11
12
|
const region = (0, get_gcp_region_1.getGcpRegion)();
|
|
12
13
|
const fetchingOutput = cli_1.CliInternals.createOverwriteableCliOutput({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SERVICES_RM_SUBCOMMAND } from '../command-names';
|
|
2
2
|
export declare const servicesRmCommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -11,7 +11,8 @@ const quit_1 = require("../../helpers/quit");
|
|
|
11
11
|
const log_1 = require("../../log");
|
|
12
12
|
const index_1 = require("./index");
|
|
13
13
|
const ls_1 = require("./ls");
|
|
14
|
-
|
|
14
|
+
const command_names_1 = require("../command-names");
|
|
15
|
+
Object.defineProperty(exports, "SERVICES_RM_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SERVICES_RM_SUBCOMMAND; } });
|
|
15
16
|
const servicesRmCommand = async (args, logLevel) => {
|
|
16
17
|
if (args.length === 0) {
|
|
17
18
|
log_1.Log.error({ indent: false, logLevel }, 'No service name passed.');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SERVICES_RMALL_SUBCOMMAND } from '../command-names';
|
|
2
2
|
export declare const servicesRmallCommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -8,7 +8,8 @@ const get_gcp_region_1 = require("../../get-gcp-region");
|
|
|
8
8
|
const confirm_1 = require("../../helpers/confirm");
|
|
9
9
|
const log_1 = require("../../log");
|
|
10
10
|
const index_1 = require("./index");
|
|
11
|
-
|
|
11
|
+
const command_names_1 = require("../command-names");
|
|
12
|
+
Object.defineProperty(exports, "SERVICES_RMALL_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SERVICES_RMALL_SUBCOMMAND; } });
|
|
12
13
|
const servicesRmallCommand = async (logLevel) => {
|
|
13
14
|
const region = (0, get_gcp_region_1.getGcpRegion)();
|
|
14
15
|
const fetchingOutput = cli_1.CliInternals.createOverwriteableCliOutput({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SITES_CREATE_SUBCOMMAND } from '../command-names';
|
|
2
2
|
export declare const sitesCreateSubcommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -16,8 +16,9 @@ const get_gcp_region_1 = require("../../get-gcp-region");
|
|
|
16
16
|
const progress_bar_1 = require("../../helpers/progress-bar");
|
|
17
17
|
const quit_1 = require("../../helpers/quit");
|
|
18
18
|
const log_1 = require("../../log");
|
|
19
|
-
const { disableGitSourceOption, askAIOption, keyboardShortcutsOption } = client_1.BrowserSafeApis.options;
|
|
20
|
-
|
|
19
|
+
const { disableGitSourceOption, askAIOption, keyboardShortcutsOption, rspackOption, } = client_1.BrowserSafeApis.options;
|
|
20
|
+
const command_names_1 = require("../command-names");
|
|
21
|
+
Object.defineProperty(exports, "SITES_CREATE_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SITES_CREATE_SUBCOMMAND; } });
|
|
21
22
|
const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
22
23
|
var _a, _b, _c;
|
|
23
24
|
const { file, reason } = cli_1.CliInternals.findEntryPoint({
|
|
@@ -130,6 +131,9 @@ const sitesCreateSubcommand = async (args, remotionRoot, logLevel) => {
|
|
|
130
131
|
enableCaching: client_1.BrowserSafeApis.options.bundleCacheOption.getValue({
|
|
131
132
|
commandLine: cli_1.CliInternals.parsedCli,
|
|
132
133
|
}).value,
|
|
134
|
+
rspack: rspackOption.getValue({
|
|
135
|
+
commandLine: cli_1.CliInternals.parsedCli,
|
|
136
|
+
}).value,
|
|
133
137
|
bundlerOverride: config_1.ConfigInternals.getBundlerOverrideFn(),
|
|
134
138
|
rspackOverride: config_1.ConfigInternals.getRspackOverrideFn(),
|
|
135
139
|
webpackOverride: (_b = config_1.ConfigInternals.getWebpackOverrideFn()) !== null && _b !== void 0 ? _b : ((f) => f),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Site } from '../../../api/get-sites';
|
|
2
|
-
export
|
|
2
|
+
export { SITES_COMMAND } from '../command-names';
|
|
3
3
|
export declare const displaySiteInfo: (site: Site) => string;
|
|
4
4
|
export declare const sitesCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void | boolean> | undefined;
|
|
@@ -5,11 +5,13 @@ const cli_1 = require("@remotion/cli");
|
|
|
5
5
|
const constants_1 = require("../../../shared/constants");
|
|
6
6
|
const quit_1 = require("../../helpers/quit");
|
|
7
7
|
const log_1 = require("../../log");
|
|
8
|
+
const command_names_1 = require("../command-names");
|
|
8
9
|
const create_1 = require("./create");
|
|
9
10
|
const ls_1 = require("./ls");
|
|
10
11
|
const rm_1 = require("./rm");
|
|
11
12
|
const rmall_1 = require("./rmall");
|
|
12
|
-
|
|
13
|
+
const command_names_2 = require("../command-names");
|
|
14
|
+
Object.defineProperty(exports, "SITES_COMMAND", { enumerable: true, get: function () { return command_names_2.SITES_COMMAND; } });
|
|
13
15
|
const displaySiteInfo = (site) => {
|
|
14
16
|
return [
|
|
15
17
|
'Site: '.padEnd(cli_1.CliInternals.LABEL_WIDTH, ' ') + ' ' + site.id,
|
|
@@ -20,20 +22,20 @@ const displaySiteInfo = (site) => {
|
|
|
20
22
|
};
|
|
21
23
|
exports.displaySiteInfo = displaySiteInfo;
|
|
22
24
|
const printSitesHelp = (logLevel) => {
|
|
23
|
-
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
25
|
+
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SITES_COMMAND} <subcommand>`);
|
|
24
26
|
log_1.Log.info({ indent: false, logLevel });
|
|
25
27
|
log_1.Log.info({ indent: false, logLevel }, 'Available subcommands:');
|
|
26
28
|
log_1.Log.info({ indent: false, logLevel }, '');
|
|
27
|
-
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
29
|
+
log_1.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SITES_COMMAND} ${create_1.SITES_CREATE_SUBCOMMAND}`);
|
|
28
30
|
log_1.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Creates a new site based on a Remotion project'));
|
|
29
31
|
cli_1.CliInternals.Log.info({ indent: false, logLevel });
|
|
30
|
-
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
32
|
+
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SITES_COMMAND} ${ls_1.SITES_LS_SUBCOMMAND}`);
|
|
31
33
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Lists the sites currently deployed'));
|
|
32
34
|
cli_1.CliInternals.Log.info({ indent: false, logLevel });
|
|
33
|
-
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
35
|
+
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SITES_COMMAND} ${rm_1.SITES_RM_COMMAND} <site-id>`);
|
|
34
36
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Remove a site from the Cloud Storage bucket.'));
|
|
35
37
|
cli_1.CliInternals.Log.info({ indent: false, logLevel });
|
|
36
|
-
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${
|
|
38
|
+
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${constants_1.BINARY_NAME} ${command_names_1.SITES_COMMAND} ${rmall_1.SITES_RMALL_COMMAND}`);
|
|
37
39
|
cli_1.CliInternals.Log.info({ indent: false, logLevel }, cli_1.CliInternals.chalk.gray('Remove all sites from the Cloud Storage bucket.'));
|
|
38
40
|
};
|
|
39
41
|
const sitesCommand = (args, remotionRoot, logLevel) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SITES_LS_SUBCOMMAND } from '../command-names';
|
|
2
2
|
export declare const sitesLsSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void | boolean>;
|
|
@@ -7,7 +7,8 @@ const get_sites_1 = require("../../../api/get-sites");
|
|
|
7
7
|
const args_1 = require("../../args");
|
|
8
8
|
const get_gcp_region_1 = require("../../get-gcp-region");
|
|
9
9
|
const log_1 = require("../../log");
|
|
10
|
-
|
|
10
|
+
const command_names_1 = require("../command-names");
|
|
11
|
+
Object.defineProperty(exports, "SITES_LS_SUBCOMMAND", { enumerable: true, get: function () { return command_names_1.SITES_LS_SUBCOMMAND; } });
|
|
11
12
|
const sitesLsSubcommand = async (logLevel) => {
|
|
12
13
|
// check if --allRegions flag is provided
|
|
13
14
|
// if so, list all sites
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SITES_RM_COMMAND } from '../command-names';
|
|
2
2
|
export declare const sitesRmSubcommand: (args: string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -11,7 +11,8 @@ const confirm_1 = require("../../helpers/confirm");
|
|
|
11
11
|
const quit_1 = require("../../helpers/quit");
|
|
12
12
|
const log_1 = require("../../log");
|
|
13
13
|
const ls_1 = require("./ls");
|
|
14
|
-
|
|
14
|
+
const command_names_1 = require("../command-names");
|
|
15
|
+
Object.defineProperty(exports, "SITES_RM_COMMAND", { enumerable: true, get: function () { return command_names_1.SITES_RM_COMMAND; } });
|
|
15
16
|
const sitesRmSubcommand = async (args, logLevel) => {
|
|
16
17
|
if (args.length === 0) {
|
|
17
18
|
log_1.Log.error({ indent: false, logLevel }, 'No site name was passed. Run the command again and pass another argument <site-name>.');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { SITES_RMALL_COMMAND } from '../command-names';
|
|
2
2
|
export declare const sitesRmallSubcommand: (logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -8,7 +8,8 @@ const args_1 = require("../../args");
|
|
|
8
8
|
const get_gcp_region_1 = require("../../get-gcp-region");
|
|
9
9
|
const confirm_1 = require("../../helpers/confirm");
|
|
10
10
|
const log_1 = require("../../log");
|
|
11
|
-
|
|
11
|
+
const command_names_1 = require("../command-names");
|
|
12
|
+
Object.defineProperty(exports, "SITES_RMALL_COMMAND", { enumerable: true, get: function () { return command_names_1.SITES_RMALL_COMMAND; } });
|
|
12
13
|
const sitesRmallSubcommand = async (logLevel) => {
|
|
13
14
|
const allRegions = args_1.parsedCloudrunCli['all-regions'];
|
|
14
15
|
const region = allRegions ? 'all regions' : (0, get_gcp_region_1.getGcpRegion)();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { STILL_COMMAND } from './command-names';
|
|
2
2
|
export declare const stillCommand: (args: string[], remotionRoot: string, logLevel: "error" | "info" | "trace" | "verbose" | "warn") => Promise<void>;
|
|
@@ -11,11 +11,13 @@ const render_still_on_cloudrun_1 = require("../../api/render-still-on-cloudrun")
|
|
|
11
11
|
const validate_serveurl_1 = require("../../shared/validate-serveurl");
|
|
12
12
|
const cloudrun_crash_logs_1 = require("../helpers/cloudrun-crash-logs");
|
|
13
13
|
const log_1 = require("../log");
|
|
14
|
+
const command_names_1 = require("./command-names");
|
|
14
15
|
const renderArgsCheck_1 = require("./render/helpers/renderArgsCheck");
|
|
15
|
-
|
|
16
|
+
const command_names_2 = require("./command-names");
|
|
17
|
+
Object.defineProperty(exports, "STILL_COMMAND", { enumerable: true, get: function () { return command_names_2.STILL_COMMAND; } });
|
|
16
18
|
const { offthreadVideoCacheSizeInBytesOption, scaleOption, jpegQualityOption, enableMultiprocessOnLinuxOption, glOption, delayRenderTimeoutInMillisecondsOption, headlessOption, binariesDirectoryOption, mediaCacheSizeInBytesOption, darkModeOption, browserExecutableOption, userAgentOption, disableWebSecurityOption, ignoreCertificateErrorsOption, overrideHeightOption, overrideWidthOption, overrideFpsOption, overrideDurationOption, } = client_1.BrowserSafeApis.options;
|
|
17
19
|
const stillCommand = async (args, remotionRoot, logLevel) => {
|
|
18
|
-
const { serveUrl, cloudRunUrl, outName, forceBucketName, privacy, downloadName, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(
|
|
20
|
+
const { serveUrl, cloudRunUrl, outName, forceBucketName, privacy, downloadName, region, } = await (0, renderArgsCheck_1.renderArgsCheck)(command_names_1.STILL_COMMAND, args, logLevel);
|
|
19
21
|
const { envVariables, inputProps, stillFrame } = cli_1.CliInternals.getCliOptions({
|
|
20
22
|
isStill: true,
|
|
21
23
|
logLevel,
|
package/dist/cli/help.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const getCloudrunHelp: (selectedPath: readonly string[]) => string[];
|
|
2
|
+
export declare const printHelp: (selectedPath: readonly string[], logLevel: "error" | "info" | "trace" | "verbose" | "warn") => void;
|
package/dist/cli/help.js
CHANGED
|
@@ -1,38 +1,346 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.printHelp = void 0;
|
|
3
|
+
exports.printHelp = exports.getCloudrunHelp = void 0;
|
|
4
4
|
const cli_1 = require("@remotion/cli");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const regions_1 = require("./commands/regions");
|
|
8
|
-
const render_1 = require("./commands/render");
|
|
9
|
-
const services_1 = require("./commands/services");
|
|
10
|
-
const sites_1 = require("./commands/sites");
|
|
11
|
-
const still_1 = require("./commands/still");
|
|
12
|
-
const log_1 = require("./log");
|
|
5
|
+
const client_1 = require("@remotion/renderer/client");
|
|
6
|
+
const command_names_1 = require("./commands/command-names");
|
|
13
7
|
const packagejson = require('../../package.json');
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
8
|
+
const rendererOptions = Object.values(client_1.BrowserSafeApis.options);
|
|
9
|
+
const cloudrunOnlyOptions = {
|
|
10
|
+
region: {
|
|
11
|
+
flag: '--region <region>',
|
|
12
|
+
description: 'Select the GCP region.',
|
|
13
|
+
},
|
|
14
|
+
privacy: {
|
|
15
|
+
flag: '--privacy <public|private|no-acl>',
|
|
16
|
+
description: 'Set the privacy of the rendered output.',
|
|
17
|
+
},
|
|
18
|
+
'force-bucket-name': {
|
|
19
|
+
flag: '--force-bucket-name <bucket-name>',
|
|
20
|
+
description: 'Store the output in a specific Cloud Storage bucket.',
|
|
21
|
+
},
|
|
22
|
+
'out-name': {
|
|
23
|
+
flag: '--out-name <file-name>',
|
|
24
|
+
description: 'Set the output file name in Cloud Storage.',
|
|
25
|
+
},
|
|
26
|
+
'cloud-run-url': {
|
|
27
|
+
flag: '--cloud-run-url <url>',
|
|
28
|
+
description: 'Use a specific Cloud Run service URL.',
|
|
29
|
+
},
|
|
30
|
+
'service-name': {
|
|
31
|
+
flag: '--service-name <service-name>',
|
|
32
|
+
description: 'Use a specific deployed Cloud Run service.',
|
|
33
|
+
},
|
|
34
|
+
webhook: {
|
|
35
|
+
flag: '--webhook <url>',
|
|
36
|
+
description: 'POST render progress to this URL.',
|
|
37
|
+
},
|
|
38
|
+
'render-id-override': {
|
|
39
|
+
flag: '--render-id-override <id>',
|
|
40
|
+
description: 'Use a specific render ID.',
|
|
41
|
+
},
|
|
42
|
+
memoryLimit: {
|
|
43
|
+
flag: '--memoryLimit <limit>',
|
|
44
|
+
description: 'Set the maximum memory available to each service instance.',
|
|
45
|
+
},
|
|
46
|
+
cpuLimit: {
|
|
47
|
+
flag: '--cpuLimit <limit>',
|
|
48
|
+
description: 'Set the maximum CPU available to each service instance.',
|
|
49
|
+
},
|
|
50
|
+
minInstances: {
|
|
51
|
+
flag: '--minInstances <count>',
|
|
52
|
+
description: 'Set the minimum number of service instances.',
|
|
53
|
+
},
|
|
54
|
+
maxInstances: {
|
|
55
|
+
flag: '--maxInstances <count>',
|
|
56
|
+
description: 'Set the maximum number of service instances.',
|
|
57
|
+
},
|
|
58
|
+
timeoutSeconds: {
|
|
59
|
+
flag: '--timeoutSeconds <seconds>',
|
|
60
|
+
description: 'Set the request timeout for the service.',
|
|
61
|
+
},
|
|
62
|
+
onlyAllocateCpuDuringRequestProcessing: {
|
|
63
|
+
flag: '--onlyAllocateCpuDuringRequestProcessing',
|
|
64
|
+
description: 'Allocate CPU only while a request is being processed.',
|
|
65
|
+
},
|
|
66
|
+
quiet: {
|
|
67
|
+
flag: '--quiet, -q',
|
|
68
|
+
description: 'Reduce console output.',
|
|
69
|
+
},
|
|
70
|
+
force: {
|
|
71
|
+
flag: '--force, -f',
|
|
72
|
+
description: 'Skip deletion confirmation prompts.',
|
|
73
|
+
},
|
|
74
|
+
yes: {
|
|
75
|
+
flag: '--yes, -y',
|
|
76
|
+
description: 'Skip deletion confirmation prompts.',
|
|
77
|
+
},
|
|
78
|
+
'site-name': {
|
|
79
|
+
flag: '--site-name <name>',
|
|
80
|
+
description: 'Set the deployed site name.',
|
|
81
|
+
},
|
|
82
|
+
'all-regions': {
|
|
83
|
+
flag: '--all-regions',
|
|
84
|
+
description: 'Include sites from every region.',
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
const options = (flags, descriptionOverrides = {}) => {
|
|
88
|
+
return flags.map((flag) => {
|
|
89
|
+
var _a;
|
|
90
|
+
const cloudrunOnlyOption = cloudrunOnlyOptions[flag];
|
|
91
|
+
if (cloudrunOnlyOption) {
|
|
92
|
+
return {
|
|
93
|
+
...cloudrunOnlyOption,
|
|
94
|
+
description: (_a = descriptionOverrides[flag]) !== null && _a !== void 0 ? _a : cloudrunOnlyOption.description,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
const rendererOption = rendererOptions.find((candidate) => candidate.cliFlag === flag);
|
|
98
|
+
if (!rendererOption) {
|
|
99
|
+
throw new Error(`No Cloud Run CLI help metadata exists for --${flag}`);
|
|
100
|
+
}
|
|
101
|
+
return cli_1.CliInternals.makeCommandHelpOption({
|
|
102
|
+
option: rendererOption,
|
|
103
|
+
description: descriptionOverrides[flag],
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
const renderOptions = options([
|
|
108
|
+
'region',
|
|
109
|
+
'props',
|
|
110
|
+
'privacy',
|
|
111
|
+
'force-bucket-name',
|
|
112
|
+
'concurrency',
|
|
113
|
+
'height',
|
|
114
|
+
'width',
|
|
115
|
+
'fps',
|
|
116
|
+
'duration',
|
|
117
|
+
'jpeg-quality',
|
|
118
|
+
'image-format',
|
|
119
|
+
'scale',
|
|
120
|
+
'env-file',
|
|
121
|
+
'out-name',
|
|
122
|
+
'cloud-run-url',
|
|
123
|
+
'service-name',
|
|
124
|
+
'codec',
|
|
125
|
+
'audio-codec',
|
|
126
|
+
'audio-bitrate',
|
|
127
|
+
'video-bitrate',
|
|
128
|
+
'buffer-size',
|
|
129
|
+
'max-rate',
|
|
130
|
+
'webhook',
|
|
131
|
+
'render-id-override',
|
|
132
|
+
'prores-profile',
|
|
133
|
+
'x264-preset',
|
|
134
|
+
'gop',
|
|
135
|
+
'crf',
|
|
136
|
+
'pixel-format',
|
|
137
|
+
'every-nth-frame',
|
|
138
|
+
'number-of-gif-loops',
|
|
139
|
+
'frames',
|
|
140
|
+
'browser-executable',
|
|
141
|
+
'user-agent',
|
|
142
|
+
'disable-web-security',
|
|
143
|
+
'ignore-certificate-errors',
|
|
144
|
+
'enable-multiprocess-on-linux',
|
|
145
|
+
'gl',
|
|
146
|
+
'disable-headless',
|
|
147
|
+
'dark-mode',
|
|
148
|
+
'config',
|
|
149
|
+
'port',
|
|
150
|
+
'timeout',
|
|
151
|
+
'binaries-directory',
|
|
152
|
+
'muted',
|
|
153
|
+
'enforce-audio-track',
|
|
154
|
+
'quiet',
|
|
155
|
+
'media-cache-size-in-bytes',
|
|
156
|
+
'offthreadvideo-cache-size-in-bytes',
|
|
157
|
+
'offthreadvideo-video-threads',
|
|
158
|
+
'color-space',
|
|
159
|
+
'metadata',
|
|
160
|
+
'sample-rate',
|
|
161
|
+
], {
|
|
162
|
+
'image-format': 'Video Image Format',
|
|
163
|
+
port: 'Set the local server port when no composition ID is passed.',
|
|
164
|
+
});
|
|
165
|
+
const commandHelp = [
|
|
166
|
+
{
|
|
167
|
+
path: [],
|
|
168
|
+
args: ' <command>',
|
|
169
|
+
description: 'Control Remotion Cloud Run.',
|
|
170
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli',
|
|
171
|
+
options: [],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
path: [command_names_1.RENDER_COMMAND],
|
|
175
|
+
args: ' <serve-url|site-name> [<composition-id>] [<output-location>]',
|
|
176
|
+
description: 'Render Remotion media on GCP Cloud Run.',
|
|
177
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/render',
|
|
178
|
+
options: renderOptions,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
path: [command_names_1.STILL_COMMAND],
|
|
182
|
+
args: ' <serve-url|site-name> [<still-id>] [<output-location>]',
|
|
183
|
+
description: 'Render a Remotion still on GCP Cloud Run.',
|
|
184
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/still',
|
|
185
|
+
options: options([
|
|
186
|
+
'region',
|
|
187
|
+
'props',
|
|
188
|
+
'frame',
|
|
189
|
+
'privacy',
|
|
190
|
+
'force-bucket-name',
|
|
191
|
+
'height',
|
|
192
|
+
'width',
|
|
193
|
+
'fps',
|
|
194
|
+
'duration',
|
|
195
|
+
'jpeg-quality',
|
|
196
|
+
'image-format',
|
|
197
|
+
'scale',
|
|
198
|
+
'env-file',
|
|
199
|
+
'out-name',
|
|
200
|
+
'cloud-run-url',
|
|
201
|
+
'service-name',
|
|
202
|
+
'browser-executable',
|
|
203
|
+
'user-agent',
|
|
204
|
+
'disable-web-security',
|
|
205
|
+
'ignore-certificate-errors',
|
|
206
|
+
'enable-multiprocess-on-linux',
|
|
207
|
+
'gl',
|
|
208
|
+
'disable-headless',
|
|
209
|
+
'dark-mode',
|
|
210
|
+
'config',
|
|
211
|
+
'port',
|
|
212
|
+
'timeout',
|
|
213
|
+
'binaries-directory',
|
|
214
|
+
'quiet',
|
|
215
|
+
'media-cache-size-in-bytes',
|
|
216
|
+
'offthreadvideo-cache-size-in-bytes',
|
|
217
|
+
], {
|
|
218
|
+
port: 'Set the local server port when no composition ID is passed.',
|
|
219
|
+
}),
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
path: [command_names_1.SERVICES_COMMAND],
|
|
223
|
+
args: ' <command>',
|
|
224
|
+
description: 'Deploy and manage Cloud Run services on GCP.',
|
|
225
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services',
|
|
226
|
+
options: [],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
path: [command_names_1.SERVICES_COMMAND, command_names_1.CLOUD_RUN_DEPLOY_SUBCOMMAND],
|
|
230
|
+
args: '',
|
|
231
|
+
description: 'Deploy a new Cloud Run service.',
|
|
232
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services/deploy',
|
|
233
|
+
options: options([
|
|
234
|
+
'region',
|
|
235
|
+
'memoryLimit',
|
|
236
|
+
'cpuLimit',
|
|
237
|
+
'minInstances',
|
|
238
|
+
'maxInstances',
|
|
239
|
+
'timeoutSeconds',
|
|
240
|
+
'onlyAllocateCpuDuringRequestProcessing',
|
|
241
|
+
'quiet',
|
|
242
|
+
]),
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
path: [command_names_1.SERVICES_COMMAND, command_names_1.SERVICES_LS_SUBCOMMAND],
|
|
246
|
+
args: '',
|
|
247
|
+
description: 'List deployed Cloud Run services.',
|
|
248
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services/ls',
|
|
249
|
+
options: options(['region', 'quiet']),
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
path: [command_names_1.SERVICES_COMMAND, command_names_1.SERVICES_RM_SUBCOMMAND],
|
|
253
|
+
args: ' <service-name...>',
|
|
254
|
+
description: 'Delete one or more Cloud Run services.',
|
|
255
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services/rm',
|
|
256
|
+
options: options(['region', 'yes', 'force', 'quiet']),
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
path: [command_names_1.SERVICES_COMMAND, command_names_1.SERVICES_RMALL_SUBCOMMAND],
|
|
260
|
+
args: '',
|
|
261
|
+
description: 'Delete all Cloud Run services in the selected region.',
|
|
262
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/services/rmall',
|
|
263
|
+
options: options(['region', 'yes', 'force', 'quiet']),
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
path: [command_names_1.SITES_COMMAND],
|
|
267
|
+
args: ' <command>',
|
|
268
|
+
description: 'Deploy and manage Remotion projects.',
|
|
269
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites',
|
|
270
|
+
options: [],
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
path: [command_names_1.SITES_COMMAND, command_names_1.SITES_CREATE_SUBCOMMAND],
|
|
274
|
+
args: ' <entry-point>?',
|
|
275
|
+
description: 'Bundle and upload a Remotion project.',
|
|
276
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites/create',
|
|
277
|
+
options: options([
|
|
278
|
+
'region',
|
|
279
|
+
'site-name',
|
|
280
|
+
'privacy',
|
|
281
|
+
'config',
|
|
282
|
+
'disable-git-source',
|
|
283
|
+
'bundle-cache',
|
|
284
|
+
'rspack',
|
|
285
|
+
'disable-ask-ai',
|
|
286
|
+
'disable-keyboard-shortcuts',
|
|
287
|
+
'quiet',
|
|
288
|
+
], {
|
|
289
|
+
privacy: 'Set the privacy of the deployed site.',
|
|
290
|
+
}),
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
path: [command_names_1.SITES_COMMAND, command_names_1.SITES_LS_SUBCOMMAND],
|
|
294
|
+
args: '',
|
|
295
|
+
description: 'List deployed Remotion projects.',
|
|
296
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites/ls',
|
|
297
|
+
options: options(['region', 'all-regions', 'quiet']),
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
path: [command_names_1.SITES_COMMAND, command_names_1.SITES_RM_COMMAND],
|
|
301
|
+
args: ' <site-name...>',
|
|
302
|
+
description: 'Delete one or more deployed Remotion projects.',
|
|
303
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites/rm',
|
|
304
|
+
options: options(['region', 'yes', 'force', 'quiet']),
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
path: [command_names_1.SITES_COMMAND, command_names_1.SITES_RMALL_COMMAND],
|
|
308
|
+
args: '',
|
|
309
|
+
description: 'Delete all deployed Remotion projects.',
|
|
310
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/sites/rmall',
|
|
311
|
+
options: options(['region', 'all-regions', 'yes', 'force']),
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
path: [command_names_1.PERMISSIONS_COMMAND],
|
|
315
|
+
args: '',
|
|
316
|
+
description: 'View and validate required GCP permissions.',
|
|
317
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/permissions',
|
|
318
|
+
options: [],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
path: [command_names_1.REGIONS_COMMAND],
|
|
322
|
+
args: '',
|
|
323
|
+
description: 'Show the supported GCP regions.',
|
|
324
|
+
documentation: 'https://www.remotion.dev/docs/cloudrun/cli/regions',
|
|
325
|
+
options: [],
|
|
326
|
+
},
|
|
327
|
+
];
|
|
328
|
+
const getCloudrunHelp = (selectedPath) => {
|
|
329
|
+
return cli_1.CliInternals.getCommandHelp({
|
|
330
|
+
binaryName: command_names_1.CLOUDRUN_BINARY_NAME,
|
|
331
|
+
commands: commandHelp,
|
|
332
|
+
selectedPath,
|
|
333
|
+
rootDocumentation: 'https://www.remotion.dev/docs/cloudrun/cli',
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
exports.getCloudrunHelp = getCloudrunHelp;
|
|
337
|
+
const printHelp = (selectedPath, logLevel) => {
|
|
338
|
+
if (selectedPath.length === 0) {
|
|
339
|
+
cli_1.CliInternals.Log.info({ indent: false, logLevel }, `${command_names_1.CLOUDRUN_BINARY_NAME} ${packagejson.version} © ${new Date().getFullYear()} The Remotion developers`);
|
|
340
|
+
}
|
|
341
|
+
const lines = (0, exports.getCloudrunHelp)(selectedPath);
|
|
342
|
+
for (const line of selectedPath.length === 0 ? lines : lines.slice(1)) {
|
|
343
|
+
cli_1.CliInternals.Log.info({ indent: false, logLevel }, line);
|
|
344
|
+
}
|
|
37
345
|
};
|
|
38
346
|
exports.printHelp = printHelp;
|
package/dist/cli/index.js
CHANGED
|
@@ -15,7 +15,7 @@ const quit_1 = require("./helpers/quit");
|
|
|
15
15
|
const log_1 = require("./log");
|
|
16
16
|
const matchCommand = (args, remotionRoot, logLevel) => {
|
|
17
17
|
if (args_1.parsedCloudrunCli.help || args.length === 0 || args[0] === 'help') {
|
|
18
|
-
(0, help_1.printHelp)(logLevel);
|
|
18
|
+
(0, help_1.printHelp)(args[0] === 'help' ? args.slice(1) : args, logLevel);
|
|
19
19
|
(0, quit_1.quit)(0);
|
|
20
20
|
}
|
|
21
21
|
if (args[0] === render_1.RENDER_COMMAND) {
|
|
@@ -41,7 +41,7 @@ const matchCommand = (args, remotionRoot, logLevel) => {
|
|
|
41
41
|
log_1.Log.info({ indent: false, logLevel }, `Did you mean "service deploy"?`);
|
|
42
42
|
}
|
|
43
43
|
log_1.Log.error({ indent: false, logLevel }, `Command ${args[0]} not found.`);
|
|
44
|
-
(0, help_1.printHelp)(logLevel);
|
|
44
|
+
(0, help_1.printHelp)([], logLevel);
|
|
45
45
|
(0, quit_1.quit)(1);
|
|
46
46
|
};
|
|
47
47
|
const executeCommand = async (args, remotionRoot, logLevel) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -42,11 +42,6 @@ declare const renderStillOnCloudrun: (options: import("./client").RenderStillOnC
|
|
|
42
42
|
requestStartTime: string;
|
|
43
43
|
requestCrashTime: string;
|
|
44
44
|
requestElapsedTimeInSeconds: number;
|
|
45
|
-
} | {
|
|
46
|
-
type: "error";
|
|
47
|
-
message: string;
|
|
48
|
-
name: string;
|
|
49
|
-
stack: string;
|
|
50
45
|
} | {
|
|
51
46
|
type: "success";
|
|
52
47
|
publicUrl?: string | null | undefined;
|
|
@@ -55,6 +50,11 @@ declare const renderStillOnCloudrun: (options: import("./client").RenderStillOnC
|
|
|
55
50
|
bucketName: string;
|
|
56
51
|
renderId: string;
|
|
57
52
|
privacy: "project-private" | "public-read";
|
|
53
|
+
} | {
|
|
54
|
+
type: "error";
|
|
55
|
+
message: string;
|
|
56
|
+
name: string;
|
|
57
|
+
stack: string;
|
|
58
58
|
}>;
|
|
59
59
|
/**
|
|
60
60
|
* @deprecated Import this from `@remotion/lambda/client` instead
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/cloudrun"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/cloudrun",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.523",
|
|
7
7
|
"description": "Render Remotion videos on Google Cloud Run",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"@google-cloud/storage": "7.15.2",
|
|
21
21
|
"@google-cloud/resource-manager": "5.3.1",
|
|
22
22
|
"@google-cloud/logging": "11.2.0",
|
|
23
|
-
"@remotion/bundler": "4.0.
|
|
24
|
-
"@remotion/cli": "4.0.
|
|
25
|
-
"@remotion/renderer": "4.0.
|
|
23
|
+
"@remotion/bundler": "4.0.523",
|
|
24
|
+
"@remotion/cli": "4.0.523",
|
|
25
|
+
"@remotion/renderer": "4.0.523",
|
|
26
26
|
"google-auth-library": "8.7.0",
|
|
27
|
-
"remotion": "4.0.
|
|
27
|
+
"remotion": "4.0.523",
|
|
28
28
|
"zod": "4.5.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@remotion/compositor-linux-x64-gnu": "4.0.
|
|
31
|
+
"@remotion/compositor-linux-x64-gnu": "4.0.523",
|
|
32
32
|
"@types/minimist": "1.2.2",
|
|
33
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
33
|
+
"@remotion/eslint-config-internal": "4.0.523",
|
|
34
34
|
"eslint": "9.19.0",
|
|
35
35
|
"@types/node": "20.12.14",
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"./defaults": "./dist/defaults.js",
|
|
42
42
|
"./regions": "./dist/regions.js",
|
|
43
43
|
"./client": "./dist/client.js",
|
|
44
|
+
"./internal/help": "./dist/cli/help.js",
|
|
44
45
|
"./permissions.json": "./dist/shared/sa-permissions.json"
|
|
45
46
|
},
|
|
46
47
|
"typesVersions": {
|
|
@@ -53,6 +54,9 @@
|
|
|
53
54
|
],
|
|
54
55
|
"client": [
|
|
55
56
|
"dist/client.d.ts"
|
|
57
|
+
],
|
|
58
|
+
"internal/help": [
|
|
59
|
+
"dist/cli/help.d.ts"
|
|
56
60
|
]
|
|
57
61
|
}
|
|
58
62
|
},
|