Skip to content

🎥 Make videos programmatically with React

order of help

Jonny Burger3d6f4e20dfa9
diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts
index c9e43833ca..3ed5e42cd8 100644
--- a/packages/cli/src/index.ts
+++ b/packages/cli/src/index.ts
@@ -51,13 +51,9 @@ import {
export const cli = async () => {
const [command, ...args] = parsedCli._;
- if (parsedCli.help) {
- printHelp('info');
- process.exit(0);
- }
const remotionRoot = RenderInternals.findRemotionRoot();
- if (command !== VERSIONS_COMMAND) {
+ if (command !== VERSIONS_COMMAND && !parsedCli.help) {
await validateVersionsBeforeCommand(remotionRoot, 'info');
}
@@ -150,6 +146,8 @@ export const cli = async () => {
} else if (command === 'help') {
printHelp(logLevel);
process.exit(0);
+ } else if (parsedCli.help) {
+ printHelp(logLevel);
} else {
if (command) {
Log.error({indent: false, logLevel}, `Command ${command} not found.`);
diff --git a/packages/cli/src/print-help.ts b/packages/cli/src/print-help.ts
index 219c27f156..2d9e68c1f9 100644
--- a/packages/cli/src/print-help.ts
+++ b/packages/cli/src/print-help.ts
@@ -147,6 +147,16 @@ export const printHelp = (logLevel: LogLevel) => {
chalk.gray('https://www.remotion.dev/docs/cli/add'),
);
+ Log.info({indent: false, logLevel});
+ Log.info(
+ {indent: false, logLevel},
+ chalk.blue('remotion skills ') + chalk.gray('<add | update>'),
+ );
+ Log.info(
+ {indent: false, logLevel},
+ 'Install or update skills from remotion-dev/skills.',
+ );
+
Log.info({indent: false, logLevel});
Log.info(
{indent: false, logLevel},
diff --git a/packages/cli/src/skills.ts b/packages/cli/src/skills.ts
index f41c557fae..4b9027b424 100644
--- a/packages/cli/src/skills.ts
+++ b/packages/cli/src/skills.ts
@@ -25,8 +25,8 @@ export const printSkillsHelp = (logLevel: LogLevel) => {
);
};
-export const skillsCommand = async (args: string[], logLevel: LogLevel) => {
- const subcommand = args[0]; // add | update
+export const skillsCommand = (args: string[], logLevel: LogLevel) => {
+ const subcommand = args[0];
const restArgs = args.slice(1);
if (!subcommand || !['add', 'update'].includes(subcommand)) {