Static GitHub Issues

[539] Allow calling nuxt without `pages` directory

prev: Async requests on generated output
next: Unexpected token export

I'm trying to discover nuxt CLI capabilities as for every other npm lib (I wanted to know whether there is possibility to point to nuxt.config.js from other place). So I try: 1. ./node_modules/.bin/nuxt --help (with nuxt in dependencies in package.json) 2. nuxt --help (with nuxt installed globally) In both cases I get:

> No `pages` directory found. Did you mean to run `nuxt` in the parent (`../`) directory?

and nothing more :-(

It would be great to have possibility to call nuxt from any place, so it would fail on nuxt build maybe, but not on nuxt --help etc.

BTW: I have pages directory same directory as where I run nuxt --help, but same error appears... But it's outside the scope of this issue.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c468">#c468</a>)</em></sub></div>