Intent.SoftwareFactory.CLI 4.2.4

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global Intent.SoftwareFactory.CLI --version 4.2.4
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Intent.SoftwareFactory.CLI --version 4.2.4
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Intent.SoftwareFactory.CLI&version=4.2.4
nuke :add-package Intent.SoftwareFactory.CLI --version 4.2.4

Software Factory CLI

A CLI (command line interface) version of the Intent Architect Software Factory.

Pre-requisites

Latest Long Term Support (LTS) version of .NET.

Installation

This CLI tool is available as a .NET Tool and can be installed with the following command:

dotnet tool install Intent.SoftwareFactory.CLI --global

[!NOTE] If dotnet tool install fails with an error to the effect of The required NuGet feed can't be accessed, perhaps because of an Internet connection problem. and it shows a private NuGet feed URL, you can try add the --ignore-failed-sources command line option (source).

You should see output to the effect of:

You can invoke the tool using the following command: intent-cli
Tool 'intent.softwarefactory.cli' (version 'x.x.x') was successfully installed.

Usage

intent-cli [command] [options]

Options

Option Description
--version Show version information
-?, -h, --help Show help and usage information
--error-logging-command <error-logging-command> Command to use for logging an error. Some continuous integration environments watch output for "commands" for logging of errors. Will be automatically configured when the process is detected to be running on the following kinds of build servers:<br />- Azure Pipelines<br /><br />See the documentation on Serilog.Expressions ExpressionTemplate for formatting options: https://github.com/serilog/serilog-expressions#formatting-with-expressiontemplate
--warning-logging-command <warning-logging-command> Command to use for logging a warning. Some continuous integration environments watch output for "commands" for logging of errors. Will be automatically configured when the process is detected to be running on the following kinds of build servers:<br />- Azure Pipelines<br /><br />See the documentation on Serilog.Expressions ExpressionTemplate for formatting options: https://github.com/serilog/serilog-expressions#formatting-with-expressiontemplate

Commands

Command Description
ensure-no-outstanding-changes <username> <password> <isln-path> Runs the Software Factory and if there are any outstanding changes it prints out an error and exits with a non-zero return code.

ensure-no-outstanding-changes command

Runs the Software Factory and if there are any outstanding changes it prints out an error and exits with a non-zero return code.

ensure-no-outstanding-changes usage

intent-cli ensure-no-outstanding-changes <username> <password> <isln-path> [options]

ensure-no-outstanding-changes arguments

Argument Description
<username> Username for an active Intent Architect account.
<password> Password for the Intent Architect account.
<isln-path> Path to the Intent Architect solution (.isln) file or folder containing a single .isln file.

ensure-no-outstanding-changes options

Option Description
--application-id <application-id> The Id of the Intent Architect application. If unspecified then all applications found in the .isln will be run.
--attach-debugger The Software Factory will pause at startup giving you chance to attach a .NET debugger.
-?, -h, --help Show help and usage information
--error-logging-command <error-logging-command> Command to use for logging an error. Some continuous integration environments watch output for "commands" for logging of errors. Will be automatically configured when the process is detected to be running on the following kinds of build servers:<br />- Azure Pipelines<br /><br />See the documentation on Serilog.Expressions ExpressionTemplate for formatting options: https://github.com/serilog/serilog-expressions#formatting-with-expressiontemplate
--warning-logging-command <warning-logging-command> Command to use for logging a warning. Some continuous integration environments watch output for "commands" for logging of errors. Will be automatically configured when the process is detected to be running on the following kinds of build servers:<br />- Azure Pipelines<br /><br />See the documentation on Serilog.Expressions ExpressionTemplate for formatting options: https://github.com/serilog/serilog-expressions#formatting-with-expressiontemplate

Example: Azure Pipelines

[!TIP] Install the Intent.ContinuousIntegration.AzurePipelines module into your Intent Architect application to have it automatically generate an azure-pipelines.yml file for you, refer its readme for more information.

Create a variable group with the Intent Architect account details

Create a variable group with the Intent Architect account details, for example:

Variable group with Intent Architect account details

Variable groups are defined globally for an Azure DevOps project, to be able to access a variable group for a particular pipeline, it needs to be linked to it.

Add the variable group and other variables to the pipeline YAML file

To make the variable group available to a stage within your pipeline, it will need to be added to its variables. You may also want to define variables for the other command line arguments and options:

variables:
- group: 'Intent Architect Credentials'
- name: 'intentSolutionPath'
  value: 'intent'

Create a step to install the CLI

- task: PowerShell@2
  displayName: 'Install Intent Architect Software Factory CLI'
  inputs:
    targetType: 'inline'
    pwsh: true
    script: 'dotnet tool install Intent.SoftwareFactory.CLI --global'

Create a step to run the CLI

- task: PowerShell@2
  displayName: 'run intent cli'
  env:
    INTENT_USER: $(intent-architect-user)
    INTENT_PASS: $(intent-architect-password)
    INTENT_SOLUTION_PATH: $(intentSolutionPath)
  inputs:
    targetType: 'inline'
    pwsh: true
    script: |
      intent-cli ensure-no-outstanding-changes "$Env:INTENT_USER" "$Env:INTENT_PASS" "$Env:INTENT_SOLUTION_PATH"

A complete YAML file

trigger:
  batch: 'true'
  branches:
    include:
    - '*'

pool:
  vmImage: 'ubuntu-latest'

variables:
- group: 'Intent Architect Credentials'
- name: 'intentSolutionPath'
  value: 'intent'

steps:

- task: PowerShell@2
  displayName: 'Install Intent Architect Software Factory CLI'
  inputs:
    targetType: 'inline'
    pwsh: true
    script: 'dotnet tool install Intent.SoftwareFactory.CLI --global'

- task: PowerShell@2
  displayName: 'run intent cli'
  env:
    INTENT_USER: $(intent-architect-user)
    INTENT_PASS: $(intent-architect-password)
    INTENT_SOLUTION_PATH: $(intentSolutionPath)
  inputs:
    targetType: 'inline'
    pwsh: true
    script: |
      intent-cli ensure-no-outstanding-changes "$Env:INTENT_USER" "$Env:INTENT_PASS" "$Env:INTENT_SOLUTION_PATH"

Run the pipeline

When you run the pipeline, it should now install the CLI and run it.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
4.2.5-pre.0 74 4/29/2024
4.2.4 416 4/12/2024
4.2.4-pre.1 98 4/7/2024
4.2.4-pre.0 54 4/5/2024
4.2.4-beta.6 37 4/5/2024
4.2.4-beta.5 67 4/4/2024
4.2.4-beta.4 92 4/2/2024
4.2.4-beta.3 50 4/2/2024
4.2.4-beta.2 73 4/1/2024
4.2.4-beta.1 61 3/27/2024
4.2.4-beta.0 96 3/26/2024
4.2.3 237 3/25/2024
4.2.3-pre.0 154 3/19/2024
4.2.2 213 3/12/2024
4.2.2-pre.0 51 3/11/2024
4.2.1 108 3/11/2024
4.2.1-pre.0 56 3/11/2024
4.2.0 121 3/10/2024
4.2.0-beta.8 58 3/8/2024
4.2.0-beta.7 53 3/8/2024
4.2.0-beta.6 117 3/5/2024
4.2.0-beta.5 62 3/5/2024
4.2.0-beta.4 86 2/29/2024
4.2.0-beta.3 345 2/14/2024
4.2.0-beta.2 48 2/14/2024
4.2.0-beta.1 66 2/14/2024
4.2.0-beta.0 138 2/9/2024
4.1.5 441 1/23/2024
4.1.5-pre.2 67 1/22/2024
4.1.5-pre.1 63 1/21/2024
4.1.5-pre.0 54 1/20/2024
4.1.4 288 1/17/2024
4.1.4-pre.0 71 1/16/2024
4.1.3 270 1/14/2024
4.1.3-pre.4 61 1/13/2024
4.1.3-pre.3 60 1/13/2024
4.1.3-pre.2 82 1/12/2024
4.1.3-pre.1 125 1/10/2024
4.1.3-pre.0 56 1/10/2024
4.1.2 321 1/8/2024
4.1.2-pre.6 106 1/6/2024
4.1.2-pre.5 69 1/5/2024
4.1.2-pre.4 77 1/5/2024
4.1.2-pre.3 88 1/3/2024
4.1.2-pre.2 76 1/2/2024
4.1.2-pre.1 94 12/31/2023
4.1.2-pre.0 79 12/28/2023
4.1.1 141 12/22/2023
4.1.1-pre.2 43 12/22/2023
4.1.1-pre.1 65 12/22/2023
4.1.1-pre.0 45 12/22/2023
4.1.0 106 12/20/2023
4.1.0-beta.21 268 12/10/2023
4.1.0-beta.20 175 12/6/2023
4.1.0-beta.19 49 12/5/2023
4.1.0-beta.18 79 12/4/2023
4.1.0-beta.17 71 12/2/2023
4.1.0-beta.16 87 11/30/2023
4.1.0-beta.15 55 11/29/2023
4.1.0-beta.14 80 11/28/2023
4.1.0-beta.12 117 11/24/2023
4.1.0-beta.11 123 11/22/2023
4.1.0-beta.10 102 11/19/2023
4.1.0-beta.9 112 11/15/2023
4.1.0-beta.8 143 11/7/2023
4.1.0-beta.7 94 11/6/2023
4.1.0-beta.6 59 11/3/2023
4.1.0-beta.5 65 11/3/2023
4.1.0-beta.4 77 11/2/2023
4.1.0-beta.3 74 11/2/2023
4.1.0-beta.2 157 10/29/2023
4.1.0-beta.1 55 10/28/2023
4.1.0-beta.0 126 10/25/2023
4.1.0-alpha.202312081616 49 12/8/2023
4.1.0-alpha.202312062101 45 12/7/2023
4.1.0-alpha.32 84 10/25/2023
4.1.0-alpha.31 56 10/24/2023
4.1.0-alpha.30 88 10/24/2023
4.1.0-alpha.29 53 10/23/2023
4.1.0-alpha.28 100 10/22/2023
4.1.0-alpha.27 112 10/17/2023
4.1.0-alpha.26 108 10/14/2023
4.1.0-alpha.25 80 10/12/2023
4.1.0-alpha.24 116 10/9/2023
4.1.0-alpha.23 74 10/8/2023
4.1.0-alpha.21 172 10/1/2023
4.1.0-alpha.20 67 9/30/2023
4.1.0-alpha.19 71 9/29/2023
4.1.0-alpha.17 97 9/28/2023
4.1.0-alpha.16 136 9/25/2023
4.1.0-alpha.15 75 9/24/2023
4.1.0-alpha.14 67 9/24/2023
4.1.0-alpha.13 73 9/23/2023
4.1.0-alpha.12 122 9/19/2023
4.1.0-alpha.11 88 9/19/2023
4.1.0-alpha.10 70 9/19/2023
4.1.0-alpha.9 88 9/17/2023
4.1.0-alpha.8 65 9/16/2023
4.1.0-alpha.6 157 9/9/2023
4.1.0-alpha.5 67 9/8/2023
4.1.0-alpha.4 120 9/5/2023
4.1.0-alpha.3 75 9/2/2023
4.1.0-alpha.2 92 8/26/2023
4.1.0-alpha.1 67 8/25/2023
4.1.0-alpha.0 72 8/24/2023
4.0.6 1,241 10/2/2023
4.0.5 91 9/28/2023
4.0.5-pre.3 61 9/19/2023
4.0.5-pre.2 58 9/18/2023
4.0.5-pre.1 187 9/15/2023
4.0.5-pre.0 66 9/15/2023
4.0.4 241 9/13/2023
4.0.4-pre.1 76 9/7/2023
4.0.4-pre.0 77 8/29/2023
4.0.4-alpha.2 202 8/21/2023
4.0.4-alpha.0 126 8/10/2023
4.0.3 957 8/3/2023
4.0.3-pre.7 115 7/27/2023
4.0.3-pre.6 84 7/26/2023
4.0.3-pre.5 91 7/24/2023
4.0.3-pre.4 97 7/23/2023
4.0.3-pre.3 87 7/23/2023
4.0.3-pre.2 80 7/22/2023
4.0.3-pre.1 104 7/19/2023
4.0.3-pre.0 108 7/17/2023
4.0.2 407 7/17/2023
4.0.2-pre.8 84 7/17/2023
4.0.2-pre.7 82 7/17/2023
4.0.2-pre.6 79 7/16/2023
4.0.2-pre.5 91 7/15/2023
4.0.2-pre.4 82 7/14/2023
4.0.2-pre.3 85 7/11/2023
4.0.2-pre.2 115 7/7/2023
4.0.2-pre.1 119 7/3/2023
4.0.1 1,030 6/9/2023
4.0.1-pre.14 79 6/8/2023
4.0.1-pre.13 83 6/6/2023
4.0.1-pre.12 72 6/5/2023
4.0.1-pre.11 86 6/1/2023
4.0.1-pre.10 74 5/31/2023
4.0.1-pre.9 74 5/30/2023
4.0.1-pre.8 88 5/26/2023
4.0.1-pre.7 84 5/25/2023
4.0.1-pre.6 75 5/25/2023
4.0.1-pre.5 100 5/20/2023
4.0.1-pre.4 77 5/19/2023
4.0.1-pre.3 80 5/17/2023
4.0.1-pre.2 102 5/12/2023
4.0.1-pre.1 111 5/10/2023
4.0.1-pre.0 80 5/10/2023
4.0.0 674 5/7/2023
4.0.0-test.11 126 4/28/2023
4.0.0-test.10 91 4/27/2023
4.0.0-beta.12 82 5/1/2023
4.0.0-beta.11 84 4/28/2023
4.0.0-beta.10 83 4/26/2023
4.0.0-beta.9 144 4/21/2023
4.0.0-beta.8 82 4/18/2023
4.0.0-beta.7 91 4/16/2023
4.0.0-beta.6 88 4/16/2023
4.0.0-beta.5 84 4/14/2023
4.0.0-beta.4 81 4/13/2023
4.0.0-beta.3 88 4/13/2023
4.0.0-beta.2 88 4/12/2023
4.0.0-beta.1 87 4/11/2023
4.0.0-beta.0 90 4/6/2023
4.0.0-alpha.18 83 4/5/2023
4.0.0-alpha.17 85 4/5/2023
4.0.0-alpha.15 85 4/5/2023
4.0.0-alpha.14 85 4/5/2023
4.0.0-alpha.13 91 4/4/2023
4.0.0-alpha.12 88 4/2/2023
4.0.0-alpha.11 89 4/1/2023
4.0.0-alpha.10 89 3/31/2023
4.0.0-alpha.9 98 3/27/2023
4.0.0-alpha.8 94 3/24/2023
4.0.0-alpha.7 99 3/22/2023
4.0.0-alpha.6 94 3/22/2023
4.0.0-alpha.5 89 3/19/2023
4.0.0-alpha.4 91 3/16/2023
4.0.0-alpha.3 89 3/14/2023
4.0.0-alpha.2 91 3/13/2023
4.0.0-alpha.1 81 3/12/2023
4.0.0-alpha.0 91 3/12/2023
3.4.5 487 4/14/2023
3.4.4 169 4/13/2023
3.4.3 148 4/11/2023
3.4.3-pre.2 91 4/3/2023
3.4.3-pre.1 97 3/23/2023
3.4.3-pre.0 94 3/14/2023
3.4.2 571 3/14/2023
3.4.2-pre.5 93 3/13/2023
3.4.2-pre.4 142 3/2/2023
3.4.2-pre.3 148 2/22/2023
3.4.2-pre.2 110 2/22/2023
3.4.2-pre.1 104 2/21/2023
3.4.2-pre.0 110 2/20/2023
3.4.1 222 2/20/2023
3.4.1-pre.9 110 2/15/2023
3.4.1-pre.8 96 2/15/2023
3.4.1-pre.7 116 2/12/2023
3.4.1-pre.6 97 2/11/2023
3.4.1-pre.5 108 2/10/2023
3.4.1-pre.4 116 2/4/2023
3.4.1-pre.3 146 1/25/2023
3.4.1-pre.2 145 1/18/2023
3.4.1-pre.1 132 1/12/2023
3.4.1-pre.0 111 1/12/2023
3.4.0 126 1/7/2023
3.4.0-pre.16 110 12/29/2022
3.4.0-pre.15 103 12/23/2022
3.4.0-pre.14 104 12/21/2022
3.4.0-pre.13 107 12/21/2022
3.4.0-pre.12 113 12/19/2022
3.4.0-pre.11 137 12/12/2022
3.4.0-pre.10 121 12/8/2022
3.4.0-pre.9 138 12/2/2022
3.4.0-pre.8 117 12/1/2022
3.4.0-pre.7 120 11/29/2022
3.4.0-pre.6 117 11/27/2022
3.4.0-pre.5 105 11/26/2022
3.4.0-pre.4 110 11/24/2022
3.4.0-pre.3 108 11/23/2022
3.4.0-pre.2 132 11/21/2022
3.4.0-pre.1 111 11/20/2022
3.4.0-pre.0 113 11/18/2022
3.3.20-pre.3 136 11/9/2022
3.3.20-pre.2 114 11/8/2022
3.3.20-pre.1 132 11/4/2022
3.3.20-pre.0 138 10/31/2022
3.3.19 153 10/21/2022
3.3.19-pre.2 140 10/20/2022
3.3.19-pre.1 126 10/17/2022
3.3.19-pre.0 116 10/14/2022
3.3.18 145 10/10/2022
3.3.18-pre.8 122 10/7/2022
3.3.18-pre.7 138 10/2/2022
3.3.18-pre.6 120 9/29/2022
3.3.18-pre.5 119 9/29/2022
3.3.18-pre.4 117 9/29/2022
3.3.18-pre.3 114 9/29/2022
3.3.18-pre.2 113 9/28/2022
3.3.18-pre.1 115 9/28/2022
3.3.17 160 9/26/2022
3.3.16 123 9/24/2022
3.3.16-pre.5 113 9/22/2022
3.3.16-pre.4 118 9/20/2022
3.3.16-pre.3 117 9/19/2022
3.3.16-pre.2 121 9/15/2022
3.3.16-pre.1 123 9/15/2022
3.3.16-pre.0 121 9/14/2022
3.3.15 181 9/11/2022
3.3.14 130 9/9/2022
3.3.14-test.0 128 9/6/2022
3.3.14-pre.1 127 9/7/2022
3.3.14-pre.0 132 8/26/2022
3.3.13 235 8/24/2022
3.3.13-pre.3 149 8/21/2022
3.3.13-pre.2 144 8/20/2022
3.3.13-pre.1 140 8/19/2022
3.3.13-pre.0 139 8/18/2022
3.3.12 163 8/15/2022
3.3.12-pre.5 143 8/14/2022
3.3.12-pre.4 147 8/14/2022
3.3.12-pre.3 151 8/12/2022
3.3.12-pre.2 153 8/9/2022
3.3.12-pre.1 143 8/9/2022
3.3.12-pre.0 147 8/9/2022
3.3.11 224 8/1/2022
3.3.10 158 7/31/2022
3.3.10-pre.6 155 7/31/2022
3.3.10-pre.5 147 7/27/2022
3.3.10-pre.4 141 7/25/2022
3.3.10-pre.3 149 7/24/2022
3.3.10-pre.2 150 7/19/2022
3.3.10-pre.1 151 7/18/2022
3.3.10-pre.0 165 7/12/2022
3.3.9 179 6/30/2022
3.3.8 187 6/15/2022
3.3.8-pre.3 151 6/15/2022
3.3.8-pre.2 165 6/8/2022
3.3.8-pre.1 158 6/6/2022
3.3.7 196 5/24/2022
3.3.6 172 5/24/2022
3.3.5 172 5/22/2022
3.3.4 182 5/16/2022
3.3.4-pre.1 165 5/12/2022
3.3.4-pre.0 170 5/11/2022
3.3.3 217 5/6/2022
3.3.3-cli-test.16 174 5/5/2022
3.3.3-cli-test.12 172 5/5/2022
3.3.3-cli-test.9 174 5/4/2022