Questions tagged [command-line-interface]

The interface to a program that consists entirely of text, as opposed to (although not necessarily mutually exclusive to) a GUI, or Graphical User Interface.

A command line interface (CLI) is an interface to a program based on a series of typed text lines, called commands, which follow a specific language structure. The command lines are then interpreted by a Command Language Interpreter (more commonly known as a Shell).

The CLI was a popular interface since the 1960's, and even with development of more modern UI experiences such as , it is still a ubiquitous interface today. Depending on the specific command language, the CLI could provide a quicker and more accurate way to perform commands compared to alternatives.

Useful Resources

9389 questions
3
votes
1 answer

Unknown compiler option 'files' launching ./node_modules/.bin/ng-xi18n

In order to translate my angular 4 app I'm trying to launch ./node_modules/.bin/ng-xi18n from the root directory but I'm facing a problem and here is my log : Error: Error Unknown compiler option 'files'. at UserError.Error (native) …
Danilo Dughetti
  • 1,360
  • 1
  • 11
  • 18
3
votes
2 answers

PHP cli command line safe_mode restriction

I'm using the Kohana framework (3.0.9), which generates daily logs. I want to mail the log file if one was made the day before CRON runs the script, but after days trying I can't figure out how to put off safe_mode in PHP CLI modus. When I'm running…
Jasper Briers
  • 555
  • 5
  • 12
3
votes
0 answers

Using SSL with the Flask CLI debug server?

I am creating a Flask app which uses Google OAuth to login user sessions which requires an SSL connection even for testing on my local system with a debug server. I see I can setup a debug SSL certificate if I start my application using the…
othalan
  • 81
  • 6
3
votes
2 answers

Yargs - How to provide custom error msg for omitted positional argument

I can't find a way to properly configure positional arguments. I have this code: #!/usr/bin/env node const create = (argv) => { console.log('create component with name:', argv.name) } const createBuilder = (yargs) => { yargs.positional('name',…
devboell
  • 1,180
  • 2
  • 16
  • 34
3
votes
1 answer

Changing Angular 5 publish url at runtime

I want to build an Angular 5 app once, and then publish it to different addresses, for example to: https://sub1.example.com/myapp1 https://sub2.example.com/myapp2 https://sub3.example.com/myapp3 By default, Angular will assume that all files are…
Nitramk
  • 1,542
  • 6
  • 25
  • 42
3
votes
1 answer

How to change a oldest version object to latest version object in aws s3 without deleting new versions

In aws s3 versioning enabled buckets we can upload same name objects, it preserved in buckets with version Id. If i upload 10 versions in a bucket the latest version is which was i upload last. If i want to make my 4th version as latest version, one…
Arun Kumar
  • 495
  • 9
  • 29
3
votes
2 answers

How to check the Azure Service Bus queue is empty?

I'm using azure service bus queues in my application and here my question is, is there a way how to check the message queue is empty so that I can shutdown my containers and vms to save cost. If there is way to get that please let me know,…
3
votes
1 answer

Requiring a positional argument with go-flags

I am writing a CLI tool in go and have chosen github.com/jessevdk/go-flags for the CLI arg parsing. I am trying to figure out the best way to make a positional arg mandatory. Currently, I have the following: func main() { args, err :=…
jordanm
  • 33,009
  • 7
  • 61
  • 76
3
votes
3 answers

Running AutoCAD from command line only

I would like to run an AutoCAD script, print the resulting drawing to PDF and exit AutoCAD, all without a single click (so we can schedule it on a server). Is that possible with AutoCAD?
dijxtra
  • 2,681
  • 4
  • 25
  • 37
3
votes
1 answer

How can I use an python-click argument from within a click option (check if variable exists in file)?

I want to pass a file (netCDF data file) as first argument and an option (-v) to indicate the variable(s) to read from this file to my script. I figured I'd need a custom callback to evaluate if this or these variable(s) is/are contained in the…
Christian
  • 95
  • 2
  • 7
3
votes
1 answer

How do I fix 'npm ERR! Test Fail' or get a verbose readout on the error so I can figure out how to resolve it?

I just completed a global install of nodemon, then I installed mocha dependencies but when I run 'npm test' in a separate tab, the test loads but fails completely and I receive the error message: 'npm ERR! Test Failed. See above for more details'.…
Rich
  • 39
  • 1
  • 4
3
votes
2 answers

C command line password

So I'm trying to create a C program where you must input the password on the command line, like ./login password1 And if the password is password1, it'll say something. If not, it prints another message. This is the code I have now: #include…
Jack Jacobsen
  • 93
  • 1
  • 1
  • 3
3
votes
1 answer

how to get post content with groovy listening on a port?

I wrote the following simple groovy code that handles a request. if (init) data = "" if (line.size() > 0) { data += "--> " + line + "\n" } else { println "HTTP/1.1 200 OK\n" println data println "----\n" return "success" } I then run…
Amir Raminfar
  • 33,777
  • 7
  • 93
  • 123
3
votes
2 answers

angular4 application is not working in smart tv's web browser(WebOSBrowser)

I tried to deploy my angular4 application in server and its working fine in desktop browsers as well as in mobile browser.Now I want to browse the application from a smart Tv , But its showing a blank page instead of application, what could be the…
vinod j
  • 83
  • 1
  • 12
3
votes
1 answer

Unable to execute PHP files from the command line

After I got an issue with Jenkins, that the deployment is hanging up on jobs, that need to execute PHP on the command line (pdepend, phpmd, phpcpd etc.), and noticed, that I also cannot re-install Composer or run tools like PHPLoc on the command…
automatix
  • 14,018
  • 26
  • 105
  • 230
1 2 3
99
100