set-read-onlyΒΆ

Toggle read-only mode. In read-only mode, no changes can be made on the server, or a single repo if specified

Usage:

NAME
        toolbox set-read-only - Toggle read-only mode for server or single
        repository

SYNOPSIS
        toolbox set-read-only -a <auth> [-h <host>] [-p <port>]
                [-r <repositoryId>] [--scheme <scheme>] [--] <readOnly>

OPTIONS
        -a <auth>
            Authentication token for basic authentication (user:password).

        -h <host>
            Host name for server (default is localhost).

        -p <port>
            Port number for server (default is 8080).

        -r <repositoryId>
            Single repository to toggle read-only mode for

        --scheme <scheme>
            Scheme (default is http).

        --
            This option can be used to separate command-line options from the
            list of argument, (useful when arguments might be mistaken for
            command-line options

        <readOnly>
            Read only mode enabled

Example:

$ ./toolbox.sh set-read-only -a su:password true