skip to navigation
skip to content

crash 0.10.0

The Crate Data Shell

Latest Version: 0.14.2


This is the Crate Data shell called crash.


Installing via pip

To install crash via pip use the following command:

$ pip install crash

To update use:

$ pip install -U crash

If you are using python 2.6 and pip >= 1.5 you have to pass the allow-external argument:

$ pip install crash --allow-external argparse


There is also a single file executable that includes all dependencies and can be run as long as python (>= 2.6) is available on the system.

Download Crash bundle

The bundle can then be executed using python:

python ./crash_standalone_latest


chmod +x ./crash_standalone_latest


If the package was installed using pip the shell can be started by running the command crash in a terminal.

For usage information and command line options invoke:

crash --help

Where to go from here?

to take a look at the documentation visit

Are you a Developer?

You can build Crash on your own with the latest version hosted on GitHub. To do so, please refer to DEVELOP.rst for further information.

Help & Contact

Do you have any questions? Or suggestions? We would be very happy to help you. So, feel free to swing by our IRC channel #crate on Freenode. Or for further information and official contact please visit


Copyright 2013-2014 CRATE Technology GmbH (“Crate”)

Licensed to CRATE Technology GmbH (“Crate”) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Crate licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

However, if you have executed another commercial license agreement with Crate these terms will supersede the license and you may use the software solely pursuant to the terms of the relevant commercial agreement.

Crate Shell

The crash shell provides a CLI for the Crate Server.

If the package was installed using pip the shell can be started by invoking crash in a terminal.

crash by default will try to connect to localhost:4200. To connect to another host use the connect command inside the shell or use the –hosts argument when launching the shell.

crash started with the -v switch (once or more times) will log useful information when it comes to debugging, like what connection attempts are made and full tracebacks of server errors.

When you connect to a server that is not reachable or whose hostname cannot be resolved you will get an error:

cr> connect
| server_url             | node_name | version | connected | message       |
| |      NULL | 0.0.0   | FALSE     | Server not... |

cr> connect
| server_url           | node_name | version | connected | message         |
| |      NULL | 0.0.0   | FALSE     | Server not a... |

Successful connects will give you some information about the servers you connect to:

cr> connect
| server_url             | node_name | version | connected | message |
| | crate     | 0.41.4  | TRUE      | OK      |

If you connect to more than one server, the command will succeed if at least one server is reachable:

| server_url             | node_name | version | connected | message       |
| | crate     | 0.41.4  | TRUE      | OK            |
|   | NULL      | 0.0.0   | FALSE     | Server not... |

Once the shell is connected, SQL statements can be executed simply by entering them without any special arguments like this:

cr> SELECT schema_name, table_name FROM information_schema.tables
... ORDER BY table_name
| schema_name        | table_name        |
| sys                | cluster           |
| information_schema | columns           |
| sys                | jobs              |
| sys                | jobs_log          |
| sys                | nodes             |
| sys                | operations        |
| sys                | operations_log    |
| information_schema | routines          |
| sys                | shards            |
| information_schema | table_constraints |
| information_schema | table_partitions  |
| information_schema | tables            |
SELECT 12 rows in set (... sec)


Nested Objects and Arrays


Since crate 0.39.0 it is possible to use object and array literals and the limitation does not apply when connecting to a crate instance running > 0.39.0.

While it is possible to select or filter by nested objects it is currently not possible to insert them using crash. In order to do that the Crate REST endpoint or a client library like crate-python has to be used.

The same also applies for arrays.

File Type Py Version Uploaded on Size
crash-0.10.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2014-09-02 26KB
crash-0.10.0.tar.gz (md5) Source 2014-09-02 24KB
  • Downloads (All Versions):
  • 71 downloads in the last day
  • 1802 downloads in the last week
  • 6781 downloads in the last month