Add more than one update site via commandline

Tags: #<Tag:0x00007fd542889e28> #<Tag:0x00007fd542889928>


Hi guys,

is it possible to add more than one update site from the commandline using:

./ImageJ-<platform> --update add-update-site MySite http://mysite/

or can this only doen one-by-one.

And do I need to start ImageJ at the end to really apply the updates or is that done automatically?



Hi @sebi06,

you can to ./ImageJ-<platform> --update update to update from the commandline/terminal.

I don’t think it’s currently possible.



Thanks for the help. So I will do one by one. But I noticed that does not work for all the desired updates sites. Some them errors when adding them via the commandline


What are the exact commands you’re invoking? And what are the error messages?


Hi Jan, I think the error occured when trying to update Java8, CMP-BIA tools and MOASIC tools via command line. That’s why I commented them out.


# Fiji + Java 8 Dockerfile

# Pull base JDK-8 image.
FROM java:8-jre

# Install Fiji.
RUN curl -O
RUN unzip


COPY . .

RUN ls

# add Fiji-Update sites
#RUN ./ --update add-update-site Java-8
RUN ./ --update add-update-site BAR
RUN ./ --update add-update-site BASIC
RUN ./ --update add-update-site BIG-EPFL
RUN ./ --update add-update-site BioVoxxel
#RUN ./ --update add-update-site CMP-BIA tools
RUN ./ --update add-update-site IBMP-CNRS
RUN ./ --update add-update-site IJPB-plugins
RUN ./ --update add-update-site ImageScience
RUN ./ --update add-update-site IMCF Uni Basel
#RUN ./ --update add-update-site MOSAIC ToolSuite
RUN ./ --update add-update-site PTBIOP
RUN ./ --ij2 --headless --update update
#RUN ./ --ij2 --headless --console

RUN mv ./ ./

CMD './'

[WARNING] Could not update from site 'IMCF': no protocol: Uni/db.xml.gz

Could you try to remove spaces from the names, @sebi06?


The command line updater returns 1 if you try to add an update site that is already there (which is the case for Fiji). I’d just get rid of that line, the rest should work if you remove spaces.


You mean I should use


instead of

IMCF Uni Basel

That is it?


That and removing the line where you add the Java-8 update site has worked for me. Of course, I couldn’t run the script but everything else went smoothly…


Did it work for you @sebi06?


Yes. Thanks again. Now i have running docker container with an up to date Fiji plus update sites.