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
160
votes
20 answers

Laravel 5 – Clear Cache in Shared Hosting Server

The question is pretty clear. php artisan cache:clear Is there any workaround to clear the cache like the above command but without using CLI. I am using a popular shared hosting service, but as per my plan, I don't have control panel access. I…
Duke
  • 35,420
  • 13
  • 53
  • 70
153
votes
11 answers

How to change Firebase user login identity from command line (CLI)?

I'm trying to login to Firebase using login credentials of, let's say, User-Alice. But when I go through the authorization procedure I get a message saying I'm logged in as User-Bob. This is not mentioned anywhere in the documentation nor does it…
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207
152
votes
8 answers

Attach to a processes output for viewing

How would I 'attach' a console/terminal-view to an applications output so I can see what it may be saying? How would I detach from an applications output without killing the application? Normally if you fire up a talkative application using the…
aggitan
  • 2,094
  • 5
  • 19
  • 22
147
votes
7 answers

Change working directory in my current shell context when running Node script

I am trying to change the working directory of my Node.js script when it is run from a bin script. I have something like the following: #!/usr/bin/env node process.chdir('/Users') When I then run this file with ./bin/nodefile, it exits, but the…
Jonovono
  • 1,979
  • 7
  • 30
  • 53
147
votes
7 answers

Add text at the end of each line

I'm on Linux command line and I have file with 127.0.0.1 128.0.0.0 121.121.33.111 I want 127.0.0.1:80 128.0.0.0:80 121.121.33.111:80 I remember my colleagues were using sed for that, but after reading sed manual still not clear how to do it on…
user2275580
  • 1,479
  • 2
  • 10
  • 3
136
votes
13 answers

Does PHP have threading?

I found this PECL package called threads, but there is not a release yet. And nothing is coming up on the PHP website.
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
136
votes
3 answers

Node js Get folder path from a file

Is there a way to get the path to a folder that holds a particular file. fs.realpathSync('config.json', []); returns something like G:\node-demos\7-node-module\demo\config.json I just need G:\node-demos\7-node-module\demo\…
blessanm86
  • 31,439
  • 14
  • 68
  • 79
134
votes
10 answers

How can I beautify JavaScript code using Command Line?

I am writing a batch script in order to beautify JavaScript code. It needs to work on both Windows and Linux. How can I beautify JavaScript code using the command line tools?
grom
  • 15,842
  • 19
  • 64
  • 67
125
votes
2 answers

How to remove globally a package from Composer?

I ran this command to install globally PHPUnit: composer global require 'phpunit/phpunit=3.7.*' Now I want to uninstall globally PHPUnit. Any ideas?
winkster
  • 1,353
  • 2
  • 8
  • 5
123
votes
28 answers

How do I delete a versioned bucket in AWS S3 using the CLI?

I have tried both s3cmd: $ s3cmd -r -f -v del s3://my-versioned-bucket/ And the AWS CLI: $ aws s3 rm s3://my-versioned-bucket/ --recursive But both of these commands simply add DELETE markers to S3. The command for removing a bucket also doesn't…
119
votes
7 answers

How can I split my Click commands, each with a set of sub-commands, into multiple files?

I have one large click application that I've developed, but navigating through the different commands/subcommands is getting rough. How do I organize my commands into separate files? Is it possible to organize commands and their subcommands into…
Brad T
  • 1,523
  • 2
  • 12
  • 14
119
votes
9 answers

How do I list all installed NuGet packages?

How does one list all locally installed NuGet packages? Is there a NuGet equivalent of RPM -qa? Within Chocolatey there is the chocolatey list -localonly, but for the life of me I cannot find the NuGet equivalent of that command.
Rhodope
  • 1,191
  • 2
  • 7
  • 3
116
votes
3 answers

Redirect stdout pipe of child process in Go

I'm writing a program in Go that executes a server like program (also Go). Now I want to have the stdout of the child program in my terminal window where I started the parent program. One way to do this is with the cmd.Output() function, but this…
mbert
  • 1,495
  • 2
  • 11
  • 17
109
votes
22 answers

Fatal error: Maximum execution time of 300 seconds exceeded

I keep getting this PHP error: Fatal error: Maximum execution time of 300 seconds exceeded I have tried setting my max_execution_time and my max_input_time settings in php.ini (both apache and cli) to 0, -1 and 4000 seconds each. And i still get…
dez
  • 2,195
  • 6
  • 25
  • 29
108
votes
6 answers

envsubst: command not found on Mac OS X 10.8

When I try to run a script that contains the envsubst command, I get this error. Looking online, this seems to be a standard bash command, so I am not sure what to install in order to get it to work.
Andrew
  • 6,295
  • 11
  • 56
  • 95