Skip to content

Instantly share code, notes, and snippets.

@xavierdecoster
Last active July 12, 2022 12:43
Show Gist options
  • Select an option

  • Save xavierdecoster/3205826 to your computer and use it in GitHub Desktop.

Select an option

Save xavierdecoster/3205826 to your computer and use it in GitHub Desktop.

Revisions

  1. xavierdecoster revised this gist Jun 15, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion register a myget feed.markdown
    Original file line number Diff line number Diff line change
    @@ -23,5 +23,5 @@ To be able to share credentials, use the -StorePasswordInClearText option:

    ```
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath]
    nuget add|update -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText
    nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText
    ```
  2. xavierdecoster revised this gist May 25, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions register a myget feed.markdown
    Original file line number Diff line number Diff line change
    @@ -5,14 +5,14 @@ Run this from a commandline where you have access to nuget.exe (or set the path

    ```
    nuget setapikey [apikey] -source [feedUrl]
    nuget sources add -Name [name] -source [feedUrl] -User [username] -pass [password]
    nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password]
    ```

    ### Store credentials in specific nuget.config (non-transferable)

    ```
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath]
    nuget sources add -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath]
    nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath]
    ```

    ### Store credentials in specific nuget.config (transferable)
    @@ -23,5 +23,5 @@ To be able to share credentials, use the -StorePasswordInClearText option:

    ```
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath]
    nuget add -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText
    nuget add|update -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText
    ```
  3. Xavier Decoster revised this gist Jan 25, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion register a myget feed.markdown
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,6 @@ Don't bother putting the above nuget.config files into source control as they'll
    To be able to share credentials, use the -StorePasswordInClearText option:

    ```
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath] -StorePasswordInClearText
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath]
    nuget add -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText
    ```
  4. Xavier Decoster revised this gist Jan 25, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions register a myget feed.markdown
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,21 @@
    Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey].
    Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).

    # Store credentials in machine-level nuget.config (non-transferable)
    ### Store credentials in machine-level nuget.config (non-transferable)

    ```
    nuget setapikey [apikey] -source [feedUrl]
    nuget sources add -Name [name] -source [feedUrl] -User [username] -pass [password]
    ```

    # Store credentials in specific nuget.config (non-transferable)
    ### Store credentials in specific nuget.config (non-transferable)

    ```
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath]
    nuget sources add -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath]
    ```

    # Store credentials in specific nuget.config (transferable)
    ### Store credentials in specific nuget.config (transferable)

    Don't bother putting the above nuget.config files into source control as they'll only work on the machine and the account that created the configs.

  5. Xavier Decoster renamed this gist Jan 25, 2014. 1 changed file with 0 additions and 0 deletions.
  6. Xavier Decoster revised this gist Jan 25, 2014. 1 changed file with 16 additions and 8 deletions.
    24 changes: 16 additions & 8 deletions register a myget feed
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,27 @@
    # Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey].
    # Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).
    Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey].
    Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).

    # Store credentials in machine-level nuget.config (non-transferable)

    ```
    nuget setapikey [apikey] -source [feedUrl]
    nuget sources add -Name [name] -source [feedUrl] -User [username] -pass [password]
    ```

    # This at least ensures that this authentication information for your feed is stored in your machine-level nuget.config.
    # Store credentials in specific nuget.config (non-transferable)

    # Optionally, you can target a different nuget.config file using the -ConfigFile option.
    ```
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath]
    nuget sources add -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath]
    ```

    # Store credentials in specific nuget.config (transferable)

    # Note: the above will encrypt your credentials using machine specific info.
    # Don't bother putting these into source control as it'll only work on the machine and the account that created the configs.
    Don't bother putting the above nuget.config files into source control as they'll only work on the machine and the account that created the configs.

    # To be able to share credentials, use the -StorePasswordInClearText option:
    To be able to share credentials, use the -StorePasswordInClearText option:

    ```
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath] -StorePasswordInClearText
    nuget add -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText

    ```
  7. Xavier Decoster revised this gist Jan 25, 2014. 1 changed file with 14 additions and 3 deletions.
    17 changes: 14 additions & 3 deletions register a myget feed
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,19 @@
    # Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey].
    # Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).

    nuget sources add -name [name] -source [feedUrl]
    nuget setapikey [apikey] -source [feedUrl]
    nuget sources update -Name [name] -User [username] -pass [password]
    nuget sources add -Name [name] -source [feedUrl] -User [username] -pass [password]

    # This at least ensures that this authentication information for your feed is stored in your machine-level nuget.config.

    # Optionally, you can target a different nuget.config file using the -ConfigFile option.
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath]
    nuget sources add -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath]

    # Note: the above will encrypt your credentials using machine specific info.
    # Don't bother putting these into source control as it'll only work on the machine and the account that created the configs.

    # To be able to share credentials, use the -StorePasswordInClearText option:
    nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath] -StorePasswordInClearText
    nuget add -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText

    # This at least ensures that this authentication information for your feed is stored in your machine-level nuget.config.
  8. xavierdecoster revised this gist Oct 28, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions register a myget feed
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey].
    Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).
    # Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey].
    # Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).

    nuget sources add -name [name] -source [feedUrl]
    nuget setapikey [apikey] -source [feedUrl]
    nuget sources update -Name [name] -User [username] -pass [password]

    This at least ensures that this authentication information for your feed is stored in your machine-level nuget.config.
    # This at least ensures that this authentication information for your feed is stored in your machine-level nuget.config.
  9. xavierdecoster renamed this gist Oct 28, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  10. Xavier Decoster created this gist Jul 30, 2012.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey].
    Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).

    nuget sources add -name [name] -source [feedUrl]
    nuget setapikey [apikey] -source [feedUrl]
    nuget sources update -Name [name] -User [username] -pass [password]

    This at least ensures that this authentication information for your feed is stored in your machine-level nuget.config.