You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've conducted some benchmarks using a similar environment to yours, and the results suggest that the issue might not stem directly from the Contentful CLI. Here's what I found:
Benchmarks
I ran hyperfine to measure the execution time of the contentful --help command in your environment, e.g. hyperfine --warmup 1 --runs 10 'contentful --help'
Run 1
Node: v22.4.0
NPM: 10.8.1
Benchmark 1: contentful --help
Time (mean ± σ): 252.3 ms ± 2.5 ms [User: 243.4 ms, System: 45.7 ms]
Range (min … max): 249.7 ms … 257.7 ms 10 runs
Run 2
Node: v23.5.0
NPM: 11.0.0
Benchmark 1: contentful --help
Time (mean ± σ): 281.0 ms ± 2.0 ms [User: 271.8 ms, System: 53.1 ms]
Range (min … max): 279.1 ms … 285.2 ms 10 runs
Using a newer setup (Node v23.5.0, NPM 11.0.0), I observed slightly higher execution times, but nothing close to the 30+ seconds delay you're reporting.
Further Troubleshooting
Network Influence: Could your WSL2 environment be experiencing networking issues? Sometimes, CLI commands check for updates or dependencies that require internet access. You might try running the command offline (e.g., disconnect from the network) to confirm this.
Filesystem Performance: WSL2 occasionally suffers from filesystem latency. Does the issue persist if you run the CLI in a non-WSL Linux environment or directly on a physical Linux machine?
Global Dependencies: Ensure no conflicting or outdated global dependencies are interfering. A clean installation of Node/NPM with a fresh global setup might help isolate the issue.
Execution of any basic commands, like
-v
or--help
, is taking longer than 30 sec.Expected Behavior
Response should be immediate.
Actual Behavior
Context
I'm not logged in.
Environment
The text was updated successfully, but these errors were encountered: