command-line-interface Questions
1
I'm trying to install Google Cloud CLI in my MacBook pro (M1). I have downloaded the M1 version of gCLI SDK for installation.
A bit about my environment:
python version 3.9.5 (environment managed ...
Eveleen asked 21/11, 2022 at 21:21
4
I would like to use the GitHub "releases" feature to tell my production server when should it update its code base from GitHub.
I do not want it to grab on each push, but just when a new ...
Ginnifer asked 20/1, 2016 at 12:11
4
In Visual Studio Code when I open the application I have to re-open the integrated terminal window every time.
Do you know the steps to have the CLI pane open as soon as the application loa...
Evanesce asked 5/2, 2018 at 16:17
10
Solved
I installed vue-cli running the following command:
npm install -g @vue/cli
/Users/me/npm/bin/vue -> /Users/me/npm/lib/node_modules/@vue/cli/bin/vue.js
/Users/me/npm/lib
└── @vue/[email pr...
Unperforated asked 23/6, 2018 at 22:45
3
Solved
Following instructions found here (and elsewhere) I added '%USERPROFILE%\AppData\Roaming\Python\Python37\Scripts\aws' to Path (tried with and without \aws at the end)
I clicked OK everywhere and...
Cnidoblast asked 16/4, 2019 at 16:33
2
Solved
I know I can brew ls to get a summary of everything I have installed using Homebrew. I was recently cleaning up some unused packages and was a bit surprised that mysql was taking up 1.7Gb.
Is the...
Cabe asked 1/12, 2016 at 20:4
27
Solved
I've generated a Dockerfile with Visual Studio. It runs in Visual Studio just fine and now I'm trying to build it from Windows itself (docker build ., and I tried many combinations). Yet I get the ...
Excavator asked 10/2, 2021 at 22:32
2
Solved
I'm having a conundrum with the Python Click library when parsing some CLI options.
I would like an option to act as a flag by itself, but optionally accept string values. E.g.:
$ myscript ⇒ opt...
Veiled asked 18/3, 2020 at 14:50
2
Solved
Since composer 2.2 the setting allow-plugins will be compulsory I’ve tried to push this setting through the composer config command in the CLI but with no luck.
I’ve tried a few commands like:
com...
Parrish asked 4/1, 2022 at 15:2
5
I have installed the command line tools of android, correctly configured all environment variables.
When I am creating a virtual device with this command:
avdmanager create avd -n test -k "sys...
Omniscient asked 12/3, 2021 at 9:10
16
Solved
When I pull a clean Alphine Linux Docker image, install aws-cli on it and try to authenticate myself with aws ecr get-authorization-token --region eu-central-1 I keep getting the following error:
...
Farrar asked 28/1, 2018 at 15:48
2
Solved
I found the question How to install Firefox addon from command line in scripts? that seems to work for Firefox extensions (i.e. ones with an install.rdf file) but what about WebExtensions (extensio...
Divisible asked 9/6, 2016 at 14:32
2
Solved
I'm using Python 3.2 on Ubuntu 11.10 (Linux). A piece of my new code looks like this:
text = input("TEXT=")
Is it possible to get some predefined string after the prompt, so I can adjust it if ne...
Woodchuck asked 14/12, 2011 at 13:19
3
Solved
suggest I have a file example as follows:
c
a
b
a
b
d
and I want to change the first occurance of a to e. Then I do this:
sed -i 's/a/e/' example
and all a changed to e.
So is there any way ...
Chaumont asked 10/11, 2011 at 14:45
5
I have a function which is wrapped as a command using click. So it looks like this:
@click.command()
@click.option('-w', '--width', type=int, help="Some helping message", default=0)
[... some othe...
Considered asked 5/2, 2018 at 9:40
2
I'm attempting to copy/paste some long, multiple line command line commands into a Windows 10 Command Prompt.
Linux uses the "\" character for this, so for example in Linux you could copy/paste th...
Muir asked 9/1, 2018 at 17:24
25
Solved
I successfully shelled to a Docker container using:
docker exec -i -t 69f1711a205e bash
Now I need to edit file and I don't have any editors inside:
root@69f1711a205e:/# nano
bash: nano: comman...
Tartarous asked 15/6, 2015 at 19:15
4
Solved
I'm trying to get the version of the Jenkins war deployed to /usr/share/jenkins/jenkins.war. I try running:
local version=$(java -jar /usr/share/jenkins/jenkins.war --version)
Unfortunately this...
Erotica asked 4/1, 2016 at 5:47
6
Solved
Now that .NET 6.0 is out, what appears to have be a radical update to the default CLI project template is the absence of the familiar boilerplate being reduced to the following:
// See https://aka....
Promulgate asked 28/11, 2021 at 10:31
24
Solved
How can I change the current running project to another project in GCP (Google Cloud Platform) account using cli commands other than using gcloud init manually?
gcloud projects list will list the p...
Complimentary asked 16/10, 2017 at 12:56
2
Solved
I'm attempting to write a unit test for an Oclif hook that contains a simple prompt. I want to test the output of the hook, given a 'Y' or 'N' response to the prompt.
import {Hook} from '@ocli...
Baywood asked 27/6, 2019 at 19:15
5
Solved
I am working on Asp.Net Mvc project with .Net Core 2.2. I can not run the last modified source code from command line/powershell. I tried manually calling dotnet clean and dotnet build before dotne...
Philomena asked 16/4, 2020 at 15:21
1
What would be the most idiomatic way to write tests for a CLI program using clap? I'm currently doing it like this:
#[derive(Debug, Parser)]
#[clap(author, version, about)]
pub struct StructArgs {
...
Presidency asked 31/5, 2022 at 16:40
5
Solved
I'd like to create a Python CLI with an item selection interface that allows users to choose an item from a list. Something like:
Select a fruit (up/down to select and enter to confirm):
[x] Apple
...
Scalawag asked 10/7, 2017 at 22:22
7
Solved
I'm trying to use vim-material theme from https://github.com/kaicataldo/material.vim
Below is what happens when i run neovim in tmux
Below is what it should look like
What i've tried so far:
...
Brabazon asked 19/2, 2020 at 21:39
© 2022 - 2025 — McMap. All rights reserved.