-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #891 from cr7pt0gr4ph7/pull-request/improve-docs
Fix #848: Improve the documentation for the commands
- Loading branch information
Showing
19 changed files
with
170 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
Paket will then ask for username and password. | ||
## Adding credentials | ||
|
||
This credentials will be used if no username and password for the source are configured in the [`paket.dependencies` file](nuget-dependencies.html). | ||
```batchfile | ||
paket config add-credentials SOURCEURL | ||
``` | ||
|
||
The configuration file can be found in: | ||
Paket will then ask you for the username and password that will be used for the specified `SOURCEURL`. | ||
|
||
The credentials you enter here will then be used if no username and password for the source are configured in the [`paket.dependencies` file](nuget-dependencies.html). | ||
|
||
The configuration file can be found at: | ||
|
||
let AppDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) | ||
let PaketConfigFolder = Path.Combine(AppDataFolder, "Paket") | ||
let PaketConfigFile = Path.Combine(PaketConfigFolder, "paket.config") | ||
let PaketConfigFile = Path.Combine(PaketConfigFolder, "paket.config") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
## Sample | ||
|
||
Running the command: | ||
|
||
paket find-package-versions name FAKE -s max 10 | ||
|
||
[lang=batchfile] | ||
paket find-package-versions name FAKE -s max 10 | ||
|
||
will result in: | ||
|
||
![alt text](img/paket-find-package-versions.png "paket find-package-versions command") | ||
![alt text](img/paket-find-package-versions.png "paket find-package-versions command") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# [after-command] | ||
|
||
If the paket.dependencies file has been changed since the last update of the paket.lock file (e.g. added dependencies or changed version requirements), | ||
Paket will update the paket.lock file to make it match paket.dependencies again. | ||
|
||
Unlike [`paket update`](paket-update.html), [`paket install`](paket-install.html) will only look for | ||
new versions of dependencies that have been modified in paket.dependencies, | ||
and use the version from paket.lock for all other dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# [after-command] | ||
|
||
`paket restore` fails with an error if the paket.lock file does not exist. | ||
No packages are downloaded in that case. Please see `paket install` and `paket update` to learn how to create the paket.lock file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
## Sample | ||
|
||
Running the command: | ||
|
||
paket show-installed-packages --all -s | ||
|
||
[lang=batchfile] | ||
paket show-installed-packages --all -s | ||
|
||
will result in: | ||
|
||
![alt text](img/paket-show-installed-packages.png "paket show-installed-packages command") | ||
![alt text](img/paket-show-installed-packages.png "paket show-installed-packages command") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,44 @@ | ||
## Updating all packages | ||
|
||
If you do not specify a package, then all packages from paket.dependencies are updated. | ||
|
||
[lang=batchfile] | ||
paket update [--force|-f] [--hard] [--redirects] [--no-install] | ||
|
||
First, the current [`paket.lock` file](lock-file.html) is deleted. `paket update` then recomputes the current dependency resolution, | ||
as explained under [Package resolution algorithm](http://fsprojects.github.io/Paket/resolver.html), and writes it to paket.lock. | ||
It then proceeds to download the packages and to install them into the projects. | ||
|
||
Please see [`paket install`](paket-install.html) if you want to keep the current versions from your paket.lock file. | ||
|
||
### Options: | ||
|
||
`--force [-f]`: Forces the download and reinstallation of all packages. | ||
|
||
`--hard`: Replaces package references within project files even if they are not yet adhering to the Paket's conventions (and hence considered manually managed). See [convert from NuGet](paket-convert-from-nuget.html). | ||
|
||
`--redirects`: Creates binding redirects for the NuGet packages. | ||
|
||
`--no-install`: Skips paket install --hard process afterward generation of [`paket.lock` file](lock-file.html). | ||
|
||
|
||
## Updating a single package | ||
|
||
It's also possible to update only a single package and to keep all other dependencies fixed: | ||
|
||
[lang=batchfile] | ||
$ paket update nuget PACKAGENAME [version VERSION] [--force] [--hard] | ||
paket update nuget PACKAGENAME [version VERSION] [--force|-f] [--hard] [--redirects] [--no-install] | ||
|
||
### Options: | ||
|
||
`nuget <string>`: Nuget package id | ||
|
||
`version <string>`: Allows to specify version of the package. | ||
|
||
`--force [-f]`: Forces the download and reinstallation of all packages. | ||
|
||
Options: | ||
`--hard`: Replaces package references within project files even if they are not yet adhering to the Paket's conventions (and hence considered manually managed). See [convert from NuGet](paket-convert-from-nuget.html). | ||
|
||
`--force`: Forces the download and reinstallation of all packages. | ||
`--redirects`: Creates binding redirects for the NuGet packages. | ||
|
||
`--hard`: Replaces package references within project files even if they are not yet adhering to to Paket's conventions (and hence considered manually managed). See [convert from NuGet](paket-convert-from-nuget.html). | ||
`--no-install`: Skips paket install --hard process afterward generation of [`paket.lock` file](lock-file.html). |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.