Skip to content

[CLI] Add pull to aspire cli tool #16697

@kieronlanning

Description

@kieronlanning

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I'd like to see the Aspire CLI include a pull command to enable pulling down/ updating the required images locally, in much the same way docker pull {image}:{tag} does for specific images, or docker compose pull does for docker-compose.y{a}ml files.

var sqlServer = builder
	.AddAzureSqlServer("sqlserver")
	.RunAsContainer(container => 
		container.WithImage(Platform.ContainerDetails.MsSqlImage).WithDataVolume()
	);

In this example it would pull down the image defined in the WithImage method.

Describe the solution you'd like

> aspire pull --help

Description:
  Pulls the latest versions of any Docker images used for in the AppHost

Usage:
  aspire pull [options] [[--] <additional arguments>...]]

Options:
  --apphost <apphost>                                                    The path to the Aspire apphost project file
  --summary <Json|Table|None>                                            Output format for pull results
  -?, -h, --help                                                         Show help and usage information
  -l, --log-level <Critical|Debug|Error|Information|None|Trace|Warning>  Set the minimum log level for console output (Trace, Debug, Information, Warning, Error, Critical)
  --nologo                                                               Suppress the startup banner and telemetry notice
  --banner                                                               Display the animated Aspire CLI welcome banner

Additional context

The reason this is useful is not only ensuring the 'latest' version when people rely on the :latest tag, but primarily for when people are traveling and have little or no access to a stable internet connection. Enabling this feature would allow them to, much like a git pull, resolve the latest dependencies locally prior to travelling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions