|
| 1 | +In order to provision or de-provision the resources required by an endpoint, the `rabbitmq-transport` command line (CLI) tool can be used. |
| 2 | + |
| 3 | +The tool can be obtained from NuGet and installed using the following command: |
| 4 | + |
| 5 | +``` |
| 6 | +dotnet tool install -g NServiceBus.Transport.RabbitMQ.CommandLine |
| 7 | +``` |
| 8 | + |
| 9 | +Once installed, the `rabbitmq-transport` command line tool will be available for use. |
| 10 | + |
| 11 | +`rabbitmq-transport <command> [options]` |
| 12 | + |
| 13 | +### Available commands |
| 14 | + |
| 15 | +- [`delays create`](#delays-create) |
| 16 | +- [`delays migrate`](#delays-migrate) |
| 17 | +- [`delays transfer`](#delays-transfer) |
| 18 | +- [`delays verify`](#delays-verify) |
| 19 | +- [`endpoint create`](#endpoint-create) |
| 20 | +- [`queue migrate-to-quorum`](#queue-migrate-to-quorum) |
| 21 | +- [`queue validate-delivery-limit`](#queue-validate-delivery-limit) |
| 22 | + |
| 23 | +### `delays create` |
| 24 | + |
| 25 | +Use this command to create v2 delay infrastructure queues and exchanges: |
| 26 | + |
| 27 | +``` |
| 28 | +rabbitmq-transport delays create [options] |
| 29 | +``` |
| 30 | + |
| 31 | +#### Options |
| 32 | + |
| 33 | +`--connectionString` | `-c` : Force this command to use the specified connection string<br /> |
| 34 | +`--connectionStringEnv` : Specifies the environment variable where the connection string can be found. `--connectionString`, if specified, will take precedence over this option<br /> |
| 35 | +`--managementApiUrl` : Overrides the value inferred from the connection string<br /> |
| 36 | +`--managementApiUserName` : Overrides the value inferred from the connection string. If provided, the `--managementApiPassword` option must also be provided or this option will be ignored.<br /> |
| 37 | +`--managementApiPassword` : Overrides the value inferred from the connection string. If provided, the `--managementApiUserName` option must also be provided or this option will be ignored<br /> |
| 38 | +`--certPath`: The path to the client certificate file for connecting to the broker<br /> |
| 39 | +`--certPassphrase`: The passphrase for the client certificate file specified by the `certPath` option<br /> |
| 40 | +`--useExternalAuth`: Use the external authorization option when connecting to the broker<br /> |
| 41 | +`--disableCertValidation`: Disable remote certificate validation when connecting to the broker<br /> |
| 42 | + |
| 43 | +### `delays migrate` |
| 44 | + |
| 45 | +Use this command to migrate in-flight delayed messages from the v1 delay infrastructure to the v2 delay infrastructure: |
| 46 | + |
| 47 | +``` |
| 48 | +rabbitmq-transport delays migrate [options] |
| 49 | +``` |
| 50 | + |
| 51 | +#### Options |
| 52 | + |
| 53 | +`--connectionString` | `-c` : Force this command to use the specified connection string<br /> |
| 54 | +`--connectionStringEnv` : Specifies the environment variable where the connection string can be found. `--connectionString`, if specified, will take precedence over this option<br /> |
| 55 | +`--managementApiUrl` : Overrides the value inferred from the connection string<br /> |
| 56 | +`--managementApiUserName` : Overrides the value inferred from the connection string. If provided, the `--managementApiPassword` option must also be provided or this option will be ignored.<br /> |
| 57 | +`--managementApiPassword` : Overrides the value inferred from the connection string. If provided, the `--managementApiUserName` option must also be provided or this option will be ignored<br /> |
| 58 | +`--certPath`: The path to the client certificate file for connecting to the broker<br /> |
| 59 | +`--certPassphrase`: The passphrase for the client certificate file specified by the `certPath` option<br /> |
| 60 | +`--useExternalAuth`: Use the external authorization option when connecting to the broker<br /> |
| 61 | +`--disableCertValidation`: Disable remote certificate validation when connecting to the broker<br /> |
| 62 | +`--routingTopology` | `-r` : The routing topology to use<br /> |
| 63 | + |
| 64 | +### `delays transfer` |
| 65 | + |
| 66 | +Use this command to transfer delayed messages from one broker to another: |
| 67 | + |
| 68 | +``` |
| 69 | +rabbitmq-transport delays transfer [options] |
| 70 | +``` |
| 71 | +#### Options |
| 72 | + |
| 73 | +`--sourceConnectionString` : Force this command to use the specified connection string for the source broker<br /> |
| 74 | +`--sourceConnectionStringEnv` : Specifies the environment variable where the connection string for the source broker can be found. --sourceConnectionString, if specified, will take precedence over this option.<br /> |
| 75 | +`--sourceManagementApiUrl` : Overrides the value inferred from the connection string for the source broker<br /> |
| 76 | +`--sourceManagementApiUserName` : Overrides the value inferred from the connection string for the source broker. If provided, --sourceManagementApiPassword must also be provided or this option will be ignored.<br /> |
| 77 | +`--sourceManagementApiPassword` : Overrides the value inferred from the connection string for the source broker. If provided, --sourceManagementApiUserName must also be provided or this option will be ignored.<br /> |
| 78 | +`--sourceCertPath` : Set the path to the client certificate file for connecting to the source broker<br /> |
| 79 | +`--sourceCertPassphrase` : The passphrase for the client certificate file when using a client certificate to connect to the source broker<br /> |
| 80 | +`--sourceUseExternalAuth` : Use the external authorization option when connecting to the source broker<br /> |
| 81 | +`--destinationConnectionString` : Force this command to use the specified connection string for the destination broker<br /> |
| 82 | +`--destinationConnectionStringEnv`: Specifies the environment variable where the connection string for the destination broker can be found. --destinationConnectionString, if specified, will take precedence over this option.<br /> |
| 83 | +`--destinationManagementApiUrl` : Overrides the value inferred from the connection string for the destination broker |
| 84 | +`--destinationManagementApiUserName` : Overrides the value inferred from the connection string for the destination broker. If provided, --destinationManagementApiPassword must also be provided or this option will be ignored.<br /> |
| 85 | +`--destinationManagementApiPassword` : Overrides the value inferred from the connection string for the destination broker. If provided, --destinationManagementApiUserName must also be provided or this option will be ignored.<br /> |
| 86 | +`--destinationCertPath` : Set the path to the client certificate file for connecting to the destination broker<br /> |
| 87 | +`--destinationCertPassphrase` : The passphrase for the client certificate file when using a client certificate to connect to the destination broker<br /> |
| 88 | +`--destinationUseExternalAuth` : Use the external authorization option when connecting to the destination broker<br /> |
| 89 | +`--disableCertValidation` : Disable remote certificate validation when connecting to the broker<br /> |
| 90 | +`--routingTopology` | `-r` : The routing topology to use<br /> |
| 91 | + |
| 92 | +### `delays verify` |
| 93 | + |
| 94 | +Use this command to verify broker requirements for using the v2 delay infrastructure: |
| 95 | + |
| 96 | +``` |
| 97 | +rabbitmq-transport delays verify [options] |
| 98 | +``` |
| 99 | + |
| 100 | +#### Options |
| 101 | + |
| 102 | +`--connectionString` | `-c` : Force this command to use the specified connection string<br /> |
| 103 | +`--connectionStringEnv` : Specifies the environment variable where the connection string can be found. `--connectionString`, if specified, will take precedence over this option<br /> |
| 104 | +`--managementApiUrl` : Overrides the value inferred from the connection string<br /> |
| 105 | +`--managementApiUserName` : Overrides the value inferred from the connection string. If provided, the `--managementApiPassword` option must also be provided or this option will be ignored<br /> |
| 106 | +`--managementApiPassword` : Overrides the value inferred from the connection string. If provided, the `--managementApiUserName` option must also be provided or this option will be ignored<br /> |
| 107 | +`--disableCertValidation`: Disable remote certificate validation when connecting to the broker<br /> |
| 108 | + |
| 109 | +### `endpoint create` |
| 110 | + |
| 111 | +Use this command to create queues and exchanges for an endpoint: |
| 112 | + |
| 113 | +``` |
| 114 | +rabbitmq-transport endpoint create <endpointName> [options] |
| 115 | +``` |
| 116 | + |
| 117 | +#### Arguments |
| 118 | + |
| 119 | +`endpointName` : The name of the endpoint to create |
| 120 | + |
| 121 | +#### Options |
| 122 | + |
| 123 | +`--connectionString` | `-c` : Force this command to use the specified connection string<br /> |
| 124 | +`--connectionStringEnv` : Specifies the environment variable where the connection string can be found. `--connectionString`, if specified, will take precedence over this option<br /> |
| 125 | +`--managementApiUrl` : Overrides the value inferred from the connection string<br /> |
| 126 | +`--managementApiUserName` : Overrides the value inferred from the connection string. If provided, the `--managementApiPassword` option must also be provided or this option will be ignored<br /> |
| 127 | +`--managementApiPassword` : Overrides the value inferred from the connection string. If provided, the `--managementApiUserName` option must also be provided or this option will be ignored<br /> |
| 128 | +`--certPath`: Set the path to the client certificate file for connecting to the broker<br /> |
| 129 | +`--certPassphrase`: The passphrase for the client certificate file when using a client certificate<br /> |
| 130 | +`--useExternalAuth`: Use the external authorization option when connecting to the broker<br /> |
| 131 | +`--disableCertValidation`: Disable remote certificate validation when connecting to the broker<br /> |
| 132 | +`--routingTopology` | `-r` : Specifies which routing topology to use<br /> |
| 133 | +`--useDurableEntities` | `-d` : Specifies if entities should be created as durable<br /> |
| 134 | +`--queueType` | `-t` : Specifies queue type will be used for queue creation<br /> |
| 135 | +`--errorQueueName`: Also create an error queue with the specified name<br /> |
| 136 | +`--auditQueueName`: Also create an audit queue with the specified name<br /> |
| 137 | +`--instanceDiscriminators`: An optional list of instance discriminators to use when the endpoint needs uniquely addressable instances<br /> |
| 138 | + |
| 139 | +### `queue migrate-to-quorum` |
| 140 | + |
| 141 | +Use this command to migrate an existing classic queue to a quorum queue. |
| 142 | + |
| 143 | +``` |
| 144 | +rabbitmq-transport queue migrate-to-quorum <queueName> [options] |
| 145 | +``` |
| 146 | + |
| 147 | +> [!NOTE] |
| 148 | +> The migration command does not work with queues created by endpoints using the direct routing topology. |
| 149 | +
|
| 150 | +#### Arguments |
| 151 | + |
| 152 | +`queueName` : The name of the classic queue to migrate to a quorum queue |
| 153 | + |
| 154 | +#### Options |
| 155 | + |
| 156 | +`--connectionString` | `-c` : Force this command to use the specified connection string<br /> |
| 157 | +`--connectionStringEnv` : Specifies the environment variable where the connection string can be found. `--connectionString`, if specified, will take precedence over this option<br /> |
| 158 | +`--managementApiUrl` : Overrides the value inferred from the connection string<br /> |
| 159 | +`--managementApiUserName` : Overrides the value inferred from the connection string. If provided, the `--managementApiPassword` option must also be provided or this option will be ignored<br /> |
| 160 | +`--managementApiPassword` : Overrides the value inferred from the connection string. If provided, the `--managementApiUserName` option must also be provided or this option will be ignored<br /> |
| 161 | +`--certPath`: Set the path to the client certificate file for connecting to the broker<br /> |
| 162 | +`--certPassphrase`: The passphrase for the client certificate file when using a client certificate<br /> |
| 163 | +`--useExternalAuth`: Use the external authorization option when connecting to the broker<br /> |
| 164 | +`--disableCertValidation`: The passphrase for client certificate file for when using a client certificate<br /> |
| 165 | + |
| 166 | +### `queue validate-delivery-limit` |
| 167 | + |
| 168 | +Use this command to validate that a queue is correctly configured to have an unlimited delivery limit, and attempt to create a policy if it is not. |
| 169 | + |
| 170 | +``` |
| 171 | +rabbitmq-transport queue validate-delivery-limit <queueName> [options] |
| 172 | +``` |
| 173 | + |
| 174 | +#### Arguments |
| 175 | + |
| 176 | +`queueName` : The name of the queue to validate |
| 177 | + |
| 178 | +#### Options |
| 179 | + |
| 180 | +`--connectionString` | `-c` : Force this command to use the specified connection string<br /> |
| 181 | +`--connectionStringEnv` : Specifies the environment variable where the connection string can be found. `--connectionString`, if specified, will take precedence over this option<br /> |
| 182 | +`--managementApiUrl` : Overrides the value inferred from the connection string<br /> |
| 183 | +`--managementApiUserName` : Overrides the value inferred from the connection string. If provided, the `--managementApiPassword` option must also be provided or this option will be ignored<br /> |
| 184 | +`--managementApiPassword` : Overrides the value inferred from the connection string. If provided, the `--managementApiUserName` option must also be provided or this option will be ignored<br /> |
| 185 | +`--disableCertValidation`: The passphrase for the client certificate file when using a client certificate<br /> |
0 commit comments