janhoy opened a new pull request, #4269:
URL: https://github.com/apache/solr/pull/4269
```
Usage: solr create [-hvV] -c=<name> [-d=<confDir>] [-n=<confName>]
[-rf=<replicationFactor>] [-sh=<shards>] [-u=<credentials>] [-s=<solrUrl> |
-z=<zkHost>]
Creates a core or collection depending on whether Solr is running in
standalone (core) or SolrCloud mode (collection).
-c, --name=<name> Name of collection or core to create.
-d, --conf-dir=<confDir> Configuration directory to copy when creating
the new collection; default is _default.
-h, --help Show this help message and exit.
-n, --conf-name=<confName> Configuration name; default is the collection
name.
-rf, --replication-factor=<replicationFactor>
Number of copies of each document across the
collection (replicas per shard); default is 1.
-s, --solr-url=<solrUrl> Base Solr URL, which can be used to determine
the zk-host if that's not known.
-sh, --shards=<shards> Number of shards; default is 1.
-u, --credentials=<credentials>
Credentials in the format username:password.
Example: --credentials solr:SolrRocks
-v, --verbose Enable verbose mode.
-V, --version Print version information and exit.
-z, --zk-host=<zkHost> Zookeeper connection string; unnecessary if
ZK_HOST is defined in solr.in.sh; otherwise, defaults to localhost:9983.
For a full CLI reference, see
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
```
```
Usage: solr delete [-fhvV] [--delete-config] -c=<name> [-u=<credentials>]
[-s=<solrUrl> | -z=<zkHost>]
Deletes a collection or core depending on whether Solr is running in
SolrCloud or standalone mode.
-c, --name=<name> Name of the core / collection to delete.
--delete-config Flag to indicate if the underlying
configuration directory for a collection should also be deleted; default is
false.
-f, --force Skip safety checks when deleting the
configuration directory used by a collection.
-h, --help Show this help message and exit.
-s, --solr-url=<solrUrl> Base Solr URL, which can be used to determine
the zk-host if that's not known.
-u, --credentials=<credentials>
Credentials in the format username:password.
Example: --credentials solr:SolrRocks
-v, --verbose Enable verbose mode.
-V, --version Print version information and exit.
-z, --zk-host=<zkHost> Zookeeper connection string; unnecessary if
ZK_HOST is defined in solr.in.sh; otherwise, defaults to localhost:9983.
For a full CLI reference, see
https://solr.apache.org/guide/solr/latest/deployment-guide/solr-control-script-reference.html
```
https://issues.apache.org/jira/browse/SOLR-17697
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]