Caros, acredito que a instalação não ocorreu bem. Quando digito choco, nada acontece. Digitei choco -version e a resposta é a seguinte:
C:\Users\Débora λ choco -version Parsing -version resulted in error (converted to warning): Cannot bundle unregistered option '-e'. This is a listing of all of the different things you can pass to choco.
Commands
- list - lists remote or local packages
- search - searches remote or local packages (alias for list)
- info - retrieves package information. Shorthand for choco search pkgname --exact --verbose
- install - installs packages from various sources
- pin - suppress upgrades for a package
- outdated - retrieves packages that are outdated. Similar to upgrade all --noop
- upgrade - upgrades packages from various sources
- uninstall - uninstalls a package
- pack - packages up a nuspec to a compiled nupkg
- push - pushes a compiled nupkg
- new - generates files necessary for a chocolatey package from a template
- sources - view and configure default sources (alias for source)
- source - view and configure default sources
- config - Retrieve and configure config file settings
- features - view and configure choco features (alias for feature)
- feature - view and configure choco features
- setapikey - retrieves or saves an apikey for a particular source (alias for apikey)
- apikey - retrieves or saves an apikey for a particular source
- unpackself - have chocolatey set itself up
- version - [DEPRECATED] will be removed in v1 - use
choco outdated
orcup <pkg|all> -whatif
instead - update - [DEPRECATED] RESERVED for future use (you are looking for upgrade, these are not the droids you are looking for)
Please run chocolatey with choco command -help
for specific help on
each command.
How To Pass Options / Switches
You can pass options and switches in the following ways:
- Unless stated otherwise, an option/switch should only be passed one time. Otherwise you may find weird/non-supported behavior.
-
,/
, or--
(one character switches should not use--
)- Option Bundling / Bundled Options: One character switches can be
bundled. e.g.
-d
(debug),-f
(force),-v
(verbose), and-y
(confirm yes) can be bundled as-dfvy
. - NOTE: If
debug
orverbose
are bundled with local options (not the global ones above), some logging may not show up until after the local options are parsed. - Use Equals: You can also include or not include an equals sign
=
between options and values. - Quote Values: When you need to quote an entire argument, such as
when using spaces, please use a combination of double quotes and
apostrophes (
"'value'"
). In cmd.exe you can just use double quotes ("value"
) but in powershell.exe you should use backticks (`"value`"
) or apostrophes ('value'
). Using the combination allows for both shells to work without issue, except for when the next section applies. - Periods in PowerShell: If you need to pass a period as part of a value or a path, PowerShell doesn't always handle it well. Please quote those values using "Quote Values" section above.
- Pass quotes in arguments: When you need to pass quoted values to
to something like a native installer, you are in for a world of fun. In
cmd.exe you must pass it like this:
-ia "/yo=""Spaces spaces"""
. In PowerShell.exe, you must pass it like this:-ia '/yo=""Spaces spaces""'
. No other combination will work. In PowerShell.exe if you are on version v3+, you can try--%
before-ia
to just pass the args through as is, which means it should not require any special workarounds. - Options and switches apply to all items passed, so if you are
installing multiple packages, and you use
--version=1.0.0
, choco is going to look for and try to install version 1.0.0 of every package passed. So please split out multiple package calls when wanting to pass specific options.
Termina com: Chocolatey v0.10.11
O que faço?