Skip to content

When you have to deal with a complex application settings, enter manually this variable into the the Octopus UI can be painful. Also mistake or bad copy paste can happen. This tool allow you to export your appsettings json variable into your octopus project.

Notifications You must be signed in to change notification settings

etiennepierrot/octopus-config-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Octopus Config Exporter

CLI NuGet

Why this tool?

When you have to deal with a complex application settings, enter manually this variable into the the Octopus UI can be painful. Also mistake or bad copy paste can happen. This tool allow you to export your appsettings json variable into your octopus project.

WARNING: if you are dealing with sensitive value like password, credentials. Don't put this value in your appsettings file (that maybe can be commited into your VCS), instead just put a placeholder value that you can replace later in the octopus UI.

Prerequisites

.NET 6 SDK or later

Installation

dotnet tool install --global Octopus.Config.Exporter.Cli

How to use it

 USAGE: octopus-config-exporter [--help] --octopusserver <server> --octopusapikey <apiKey>
                                --octopusproject <projectName> [--prefix <prefix>] [--scope <prefix>]
                                [--nosecure] <path>

CONFIGFILE:

    <path>                specify a json config file to export

OPTIONS:

    --octopusserver <server>
                          specify a the address of the octopus server (can also be set with OCTOPUS_SERVER
                          environnment variable)
    --octopusapikey <apiKey>
                          specify your api key (can also be set with OCTOPUS_API_KEY environnment variable)
    --octopusproject <projectName>
                          specify the project name (can also be set with OCTOPUS_PROJECT_NAME environnment
                          variable)
    --prefix <prefix>     specify the prefix of Env Var (can also be set with OCTOPUS_PREFIX environnment
                          variable)
    --scope <prefix>      scope for applying config
    --nosecure            display sensitive data
    --help                display this list of options.

WARNING

Datetime variable didn't work correctly.

About

When you have to deal with a complex application settings, enter manually this variable into the the Octopus UI can be painful. Also mistake or bad copy paste can happen. This tool allow you to export your appsettings json variable into your octopus project.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages