Skip to main content

Questions tagged [command-line-tool]

A command line tool is a console based application either run in MS-DOS or a terminal (Command prompt for windows, and terminal for linux and mac)

command-line-tool
Filter by
Sorted by
Tagged with
1030 votes
30 answers
663k views

xcode-select active developer directory error

Saw the following error when running an npm install which required node-gyp... but could be triggered by anything which requires xcode-select. xcode-select: error: tool 'xcodebuild' requires Xcode, ...
tjmehta's user avatar
  • 30.2k
556 votes
16 answers
798k views

How to install Xcode Command Line Tools

How do I get the command-line build tools installed with the current Xcode/Mac OS X v10.8 (Mountain Lion) or later? Unlike Xcode there is no installer, it's just a bundle. It looks like all the ...
Scott Wisniewski's user avatar
335 votes
15 answers
180k views

What is a faster alternative to Python's http.server (or SimpleHTTPServer)?

Python's http.server (or SimpleHTTPServer for Python 2) is a great way of serve the contents of the current directory from the command line: python -m http.server However, as far as web servers go, ...
Drew Noakes's user avatar
80 votes
3 answers
151k views

Xcode 6.1 - How to uninstall command line tools?

I installed Xcode command line tool by issuing xcode-select --install; now I want to uninstall it (without uninstalling Xcode). I've tried sudo /Developer/Library/uninstall-devtools --mode=all but ...
TomNg's user avatar
  • 1,967
50 votes
5 answers
28k views

"pod init" creates error that says "You need at least git version 1.8.5 to use CocoaPods"

I was not able to install any pod in my system. Hence, I removed cocoapods from my Mac and then reinstalled it. The process was successful but when I run the command pod init following error shows up ...
Ishika's user avatar
  • 2,195
50 votes
5 answers
38k views

Error Message "Xcode alone is not sufficient on Sierra"

I'd like to install openCV to vectorize image, but there's a series error message regarding Xcode and Ruby. First, I use terminal to install openCV, brew install opencv. Then, I got error message ...
Ying's user avatar
  • 1,924
49 votes
10 answers
38k views

svn client binaries for windows

Where are the Windows binaries for the command-line version of SVN? Everywhere I search, it has to be some company's fancy client software with an installer. I'm working on a machine where I don't ...
hasen's user avatar
  • 165k
39 votes
8 answers
19k views

command line tools for new 10.9 OSX for ruby gems?

After installing OSX Mavericks 10.9 demo, Im getting this after running bundle Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/sandric/.rvm/rubies/...
sandric's user avatar
  • 2,410
38 votes
10 answers
21k views

How can I add macOS "Tags" to files programmatically?

Since Mavericks, OS X has had the ability to tag & colour files in Finder. Is there any way to add tags to files through Cocoa APIs or via a shell command?
nacross's user avatar
  • 2,033
37 votes
6 answers
96k views

Install gnuplot 5.0.1 on OSX

I downloaded the source files for gnuplot 5.0.1 (gnuplot-5.0.1.tar.gz) from the source forge page. I also installed the Command Line Tools on my OS X 10.7.5 so that I have gcc and make in the /usr/bin ...
dada's user avatar
  • 1,493
35 votes
4 answers
105k views

Can't install Command Line Tool, "xcode-select --install" doesn't work

I don't know how to install the Command Line Tools on OSX Mavericks. Or better: I know how to do it (I just did it on another MacBook), but something goes wrong this time. What happened: I Install ...
Giovanni's user avatar
  • 493
35 votes
4 answers
7k views

How to debug python CLI that takes stdin?

I'm trying to debug a Python CLI I wrote that can take its arguments from stdin. A simple test case would have the output of echo "test" | python mytool.py be equivalent to the output of python ...
whereswalden's user avatar
  • 4,899
27 votes
1 answer
10k views

Mac OS app, sandbox with command line tool?

I've made an app which includes a command-line tool. I have enabled the app's sandbox, and tested that it works. I've also code-signed both the app and the command line tool. But when I upload the ...
dinosaur's user avatar
  • 648
24 votes
2 answers
8k views

Publish to Google Play through command line

Is there any option to publish Android Application to Google Play using command line tool ? I have signed my application but I can't use web browser to publish it.
Adam Śliwakowski's user avatar
23 votes
6 answers
35k views

macOS 10.14(beta) How to install Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta

As the Title of my question, I don't know how to install the Command_Line_Tools_macOS_10.14_for_Xcode_10_Beta for my mac, please help. What I did: run command "brew install carthage" to install the ...
Raymond Liao's user avatar
  • 1,795
20 votes
7 answers
84k views

Node-sass is not recognized by command line

I'm trying to set up node-sass, following the instructions on CSS-Tricks. Node and npm are installed correctly, and the node-sass installation worked too. When I go to run node-sass --output-style ...
Sam Woolerton's user avatar
19 votes
9 answers
13k views

Pod file not being initialized?

When i try to initialize pod file to use cocoapods via terminal, it gives me this error. How to fix it. /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.2.0/lib/cocoapods/command.rb:128:in `...
Usama bin Attique's user avatar
18 votes
2 answers
7k views

Read a file in a macOS Command Line Tool project

I've added a few JSON files to my macOS Command Line Tool project, but I can't seem to find them the usual way. if let path = Bundle.main.path(forResource: "Data", ofType: "json") { if let ...
XmasRights's user avatar
  • 1,499
16 votes
2 answers
3k views

Keep command line tool alive

How would a keep a command-line tool running for ever. This is my code: #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { @autoreleasepool { [[...
Tyilo's user avatar
  • 29.8k
15 votes
3 answers
4k views

Writing XCTestCase for Mac OS Command Line Tool

I am trying to unit test a command line tool written for Mac OS. When I first create the project, XCode does not generate a tests group in the project navigator. When I try to add a new test target, ...
Jonathan Chen's user avatar
15 votes
6 answers
76k views

PSEXEC - "The Handle is invalid" When running the command as System User

This is the command that works fine if run from a user-spawned command prompt: PSEXEC \\xxx.xxx.xxx.xxx -u xxxx -p xxxx -accepteula cmd /c "TYPE C:\Pyxislog\PYXIS01.log|Find/i "%ID%"" >nul ...
bill's user avatar
  • 741
14 votes
1 answer
14k views

Superimposing two videos onto a static image?

I have two videos that I'd like to combine into a single video, in which both videos would sit on top of a static background image. (Think something like this.) My requirements are that the software I ...
Archagon's user avatar
  • 2,500
14 votes
2 answers
6k views

xcode command line tools not able to locate git

On Big Sur, I had XCode CLT installed, but not xcode itself. Git was working fine. Then I installed XCode and now when I try to run git I get the following message: git: error: Failed to determine ...
Kardasis's user avatar
  • 931
13 votes
1 answer
5k views

How to deploy a Mac Command Line Tool

I've created a console application using the Xcode OS X Command Line Tool project template. When everything is said and done, where are the actual "Release" binaries placed on my machine? After ...
5StringRyan's user avatar
  • 3,634
12 votes
1 answer
23k views

"No module named x.__main__; 'x' is a package and cannot be directly executed" when using entry_points / console_scripts

I have this CLI tool called Rackfocus. I've published to PyPI, and I'm reasonably sure it worked just fine before. When I try to run it with current versions of Python on Mac, I get the error: No ...
Antrikshy's user avatar
  • 3,058
11 votes
2 answers
16k views

OSX: Execute same command on all files within a folder

i am using a command-line tool called TMX (https://github.com/tonybeltramelli/TMXResolutionTool) I want to execute this command on every .png file in a certain folder. How can i do that? This is how ...
Eyeball's user avatar
  • 3,307
11 votes
1 answer
12k views

clang: error: unable to locate xcodebuild

I am using a mac version 10.13.6. I want to compile C programs through the terminal. I've downloaded Xcode and the command line tools. When I type clang --version in the terminal, I get the following ...
ctt25's user avatar
  • 121
10 votes
2 answers
10k views

How to generate a Curve25519 key pair in Terminal?

How can we generate a Curve25519 key pair from the command line? We have a MacBook Air with Homebrew installed. Should we use OpenSSL or another command line tool? How do we use that tool to ...
ma11hew28's user avatar
  • 125k
10 votes
2 answers
392 views

How do I use raku -e and -n with multiple file glob

I'd like to do the following in raku on windows raku -n -e ".say if /mydatabegin/;" *.file Failed to open file C:\..\*.file: Invalid argument The glob isn't interpreted as a glob. I assume ...
Gerard ONeill's user avatar
9 votes
1 answer
14k views

First line of batch file fails - is not recognized as an internal or external command, operable program or batch file

on Windows 7 in VS2012, I have setup an External Tool to call a bat file (let’s call it BatA.bat). In the external tool, I am passing in $(ItemDir) as the one and only Argument and I have the Initial ...
Scott Software's user avatar
9 votes
1 answer
9k views

How do you create new windows workspace with TFS command line client that is running on unix

How would I work with the TFS command line client that is running on a aix/unix box to run the tf commands. For example I'm unable to create local windows workspaces that connect to the tfs version ...
jjohnston's user avatar
9 votes
1 answer
2k views

Ruby OptionParser: how to handle arguments without a prefix (like a required filename)

I am working with OptionParser for the first time. What I would like to know, is how I can make OptionParser handle arguments that are not prefixed with a certain flagname. I want to be able to write ...
Qqwy's user avatar
  • 5,519
9 votes
2 answers
1k views

Cocoa wrapper for an interactive Unix command

Ok, so I know you can make an NSTask to run command line tools with Objective-C: NSTask *task; task = [[NSTask alloc] init]; [task setLaunchPath: @"/usr/bin/gdb"]; [task launch]; I'm just wondering ...
brendanzab's user avatar
9 votes
0 answers
404 views

How to set the XCode FILEHEADER macro when using Swift PM?

I am working on a Swift package command line tool that has a third-party dependency. It has been working great just opening the repo folder and using SwiftPM, except that I don't seem to have control ...
Travis Prescott's user avatar
9 votes
3 answers
2k views

Xcode 4.4 : Preferences : Downloads : Components : Command Line Tools fails with "Failed with HTTP status 403: forbidden"

does anyone know what i might have to change (permissions on a particular file; clearing out a Keychain Access item) to resolve an issue when i attempt to install command line tools inside of my ...
john.k.doe's user avatar
  • 7,563
8 votes
1 answer
3k views

Missing info.plist file for C++ command line tool application within Xcode

I want to create a camera calibration application with opencv for a university course. I have created a command line tool application on macOS High Sierra. Unfortunately it came without an info.plist ...
CoderOfTheForce's user avatar
8 votes
1 answer
11k views

How to add Core Foundation framework in Xcode 4 to a bare Command Line Tool if frameworks list is empty?

I created a new command line tool (the way to create a Mac OS X command line app) using Xcode 4.5, but I now want to add a framework to it. The frameworks list in the build phases is empty. I can ...
Warren  P's user avatar
  • 67.9k
7 votes
3 answers
4k views

How to set up working logic unit tests target in Xcode 4.5 "Command Line Tool" project?

Having trouble getting unit tests set up for a specific scenario. Here's what I'm trying: In Xcode 4.5, I created a simple OSX "Command Line Tool" application project (Foundation). Note that Xcode ...
Chris W. Rea's user avatar
  • 5,471
6 votes
2 answers
8k views

How to append same string in many files names in mac at once?

I just need to append the string "eng" to many files names in same directory without changing its extension in MAC TERMINAL. I searched it for long time, i found mv command to rename files at once. ...
VivekParamasivam's user avatar
6 votes
2 answers
9k views

Installing command line tools Xcode 5

I have tried and tried (looked at many headings for this) and I still don't have an answer to my problem. I am trying to install the Pebble SDK 1.12 and install command line tools of Xcode 5. ...
Peter Kaminski's user avatar
6 votes
2 answers
3k views

How to copy bundle resources for command line tool project in Xcode?

I've been trying to access a file in my command line tool Xcode project but program isn't able to find the file path. I'm assuming it's because the file isn't being copied to my project. I've gone to ...
leedex's user avatar
  • 1,003
6 votes
4 answers
3k views

Pod init error tool 'xcodebuild' requires Xcode

Im trying to run pod init command on my new project. It has never happened to me before. The things I have tried to fix it are: Closing Xcode Creating a new project Restarting my computer The error ...
Pablo Marrufo's user avatar
6 votes
0 answers
2k views

Mac OS 10.9 fatal error: 'tr1/unordered_map' file not found

I installed command line tools using xcode-select --install. If I do cd /Library/Developer/CommandLineTools/usr/bin, I can see gcc listed there. I am trying to install an external application on ...
AMisra's user avatar
  • 1,889
5 votes
1 answer
1k views

Xcode build fails and repetitive requires command line developer tools install

I have updated Xcode to Version 13.4.1 (13F100), Then tried to run a flutter project Launching lib/main.dart on iPhone SE (3rd generation) in debug mode... Xcode build done. ...
hossameldinmi's user avatar
5 votes
1 answer
1k views

Terminate subprocesses of macOS command line tool in Swift

I'm writing a macOS command line tool in swift which executes shell commands: let process = Process() process.launchPath = "/bin/sleep" process.arguments = ["100"] process.launch() process....
YourMJK's user avatar
  • 1,569
5 votes
1 answer
6k views

How to calculate SFV-style CRC32 in Linux commandline?

Is there an equivalent to md5sum/sha1sum in Linux for calculating SFV-style CRC32s? I checked out cksum, but it seems to be calculating a different sum (perhaps a different polynomial? or I'm ...
Henry Tung's user avatar
5 votes
0 answers
1k views

building for iOS Simulator, but linking against dylib built for MacOSX file

This is a strange problem. My XCode version is 6.3.2. After I installed the command line tools, I could not compile any more. Any compilation that need to link with a dylib will cause the error like: ...
Holmes Conan's user avatar
  • 1,230
5 votes
0 answers
1k views

Add xcode-select to PATH vs. Install Xcode Command Line Tools?

Now with Xcode 4.5, is it OK to just add the following line to my ~/.bash_profile rather than installing the Xcode Command Line Tools? export PATH="$PATH:`xcode-select -print-path`/usr/bin:`xcode-...
ma11hew28's user avatar
  • 125k
4 votes
9 answers
25k views

'apkanalyzer' is not recognized as an internal or external command

I often compare my new build apk size with the production build and I am looking for options to automate this activity such that it compares both new and prod apk sizes and reports me. I am aware of ...
Sudar's user avatar
  • 101
4 votes
3 answers
23k views

How to use leaks command-line tool to find memory leaks?

leaks command-line tool will report the address of the leaked memory the size of the leak (in bytes) the contents of the leaked buffer like the following: Process: checker [84357] Path: ...
KIYZ's user avatar
  • 462

1
2 3 4 5
7