nuxt/cli

Compatibility with `nuxi dev 3.6` args

Closed this issue · 0 comments

pi0 commented
  • Missing -o shortcut for --open
  • Missing -p shortcut for --port
  • Missing -h shotcut for --host (cannot do because -h is help alias in citty)
  • --ssl-cert / --ssl-key (to be deprecated)

npx nuxi@3.6 dev --help           
Nuxi 3.6.5                                                                                                                                        11:39:41 PM
> Usage: npx nuxi dev [rootDir] [--dotenv] [--log-level] [--clipboard] [--open, -o] [--port, -p] [--host, -h] [--https] [--ssl-cert] [--ssl-key]  11:39:41 PM

⋮ Run nuxt development server

Use npx nuxi [command] --help to see help for each command
npx nuxi@3.7 dev --help
Run nuxt development server (nuxi-ng dev)                                                                                                         11:40:52 PM

USAGE nuxi-ng dev [OPTIONS] [ROOTDIR]

ARGUMENTS

  ROOTDIR    Root Directory

OPTIONS

                 --cwd    Current working directory                                                                               
            --logLevel    Log level                                                                                               
                --port    Port to listen on (use PORT environment variable to override)                                           
                --host    Host to listen on (use HOST environment variable to override)                                           
           --clipboard    Copy the URL to the clipboard                                                                           
                --open    Open the URL in the browser                                                                             
               --https    Enable HTTPS                                                                                            
          --https.cert    Path to TLS certificate used with HTTPS in PEM format                                                   
           --https.key    Path to TLS key used with HTTPS in PEM format                                                           
           --https.pfx    Path to PKCS#12 (.p12/.pfx) keystore containing a TLS certificate and Key                               
    --https.passphrase    Passphrase used for TLS key or keystore                                                                 
  --https.validityDays    Validity in days of the autogenerated TLS certificate (https: true)                                     
       --https.domains    Comma seperated list of domains and IPs, the autogenerated certificate should be valid for (https: true)
           --publicURL    Displayed public URL (used for QR code)                                                                 
                  --qr    Display The QR code of public URL when available                                                        
              --public    Listen to all network interfaces                                                                        
              --tunnel    Open a tunnel using https://github.com/unjs/untun                                                       
              --dotenv    Path to .env file                                                                                       
               --clear    Clear console on restart                                                                                
             --sslCert    Path to SSL certificate                                                                                 
              --sslKey    Path to SSL key