7.1 Env Commands

Env commands interact with the default environment specified in the current global state. Because they require no additional parameters, these commands are useful when creating scripts.

Env CheckforUpdates

Using the default server specified in the global state, the CheckforUpdates command determines if the default environment specified in the global state contains any packages for which newer versions have been released. A list of packages with updated versions will be displayed.

Usage

Env CheckforUpdates

Example
ndicmd /i /gs Env CheckforUpdates

Env Delete

The Delete command completely removes the default environment specified in the global state environment from the system, excluding global packages. 

Usage

Env Delete

Example
ndicmd /i /gs Env Delete

Env Export

The Export command creates a MegaZarf file from the default environment specified in the global state, at the system directory "C:\Users\<Username>". 

Usage

Env Export [Name]

Example
ndicmd /i /gs Env Export
Parameters
  • Name (Optional) - If entered, the resulting MegaZarf file will use this name.

Env InstallSelectedReleases

The InstallSelectedReleases command installs all release versions, that have been selected using a preceding Query command, to the default environment specified by the global state.

Usage

Env InstallSelectedReleases

Example
ndicmd /i /gs Env InstallSelectedReleases

Env RemoveSelectedReleases

The RemoveSelectedReleases command uninstalls all releases that can be uninstalled, that have been selected with a preceding Query command, in the default environment specified by the global state.

Usage

Env RemoveSelectedReleases

Example
ndicmd /i /gs Env RemoveSelectedReleases

Env RollbackSelectedReleases

The RollbackSelectedReleases command performs a rollback operation on all releases, that have been selected with a preceding Query command, in the default environment specified by the global state.

Usage

Env RollbackSelectedReleases

Example
ndicmd /i /gs Env RollbackSelectedReleases

Env Update

The Update command updates packages in the default environment by using packages from the server specified in the global state. A release without a newer version will not be modified.

Usage

Env Update

Example
ndicmd /i /gs Env Update

Env UpdateSelectedReleases

The UpdateSelectedReleases command updates all releases, that have been previously selected with a preceding Query command and in the default default environment specified by the global state, to the latest available version. A release without a newer version will not be modified.

Usage

Env UpdateSelectedReleases

Example
ndicmd /i /gs Env UpdateSelectedReleases

 


CONFIDENTIAL