Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

No commands available or listed. #12

Closed
adiba opened this issue Aug 22, 2022 · 5 comments · Fixed by #22
Closed

No commands available or listed. #12

adiba opened this issue Aug 22, 2022 · 5 comments · Fixed by #22
Assignees
Labels
Bug Something isn't working

Comments

@adiba
Copy link

adiba commented Aug 22, 2022

Note: I am running this on Windows.

Firstly, after installation, I get warnings about 2 vulnerabilities:

npm WARN deprecated @types/pino@7.0.5: This is a stub types definition. pino provides its own type definitions, so you do not need this installed.
npm WARN deprecated cli-ux@5.6.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

added 412 packages, and audited 413 packages in 1m

42 packages are looking for funding
  run `npm fund` for details

2 critical severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

Then, when I try to run a command using npx directusctl instance connect:

 ERROR 
  Unknown command: "directusctl instance connect"

When I run --help, no commands are listed:

 SYNOPSIS 

  directusctl <command> [options]

 COMMANDS 
  These are all the commands you can use to manage your project or
  installation


 OPTIONS 

  --help  boolean  Show help for the specified command

Thank you!

@rlora
Copy link

rlora commented Aug 23, 2022

Hello,

I'm experiencing the same in MacOS. Haven't use the CLI before so I don't have a past reference on how it should work. But it seems that the commands are missing.

Screen Shot 2022-08-22 at 9 02 01 PM

@br41nslug br41nslug added the Bug Something isn't working label Aug 23, 2022
@moritzgvt
Copy link

Same here on Mac.

For me the last stable version is @directus/cli@9.12.0.

After this the package is throwing an SyntaxError: Unexpected token 'const' as mentioned in this issue #1.

@maylukas
Copy link

Same problem with Directus CLI 9.14.2 on Mac OS

@badrange
Copy link

badrange commented Nov 3, 2022

I also have the same issue on Linux. I added the cli to the repository like this:

npm install @directus/cli

And get the same error when I try to run the cli like this: Unknown command: "directusctl instance"
and with npx: npx directusctl instance connect

Unknown command: "directusctl instance"

@lorenzogrv
Copy link

Same problem here, Linux Host, @directus/cli@9.14.2

It doesn't find commands globally installed neither locally installed within a project

I can help diagnosing with more information if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants