/
getting-started.rst
84 lines (52 loc) · 2.07 KB
/
getting-started.rst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.. _getting-started:
===============
Getting Started
===============
Croud CLI is available as a `pip`_ package.
.. rubric:: Table of Contents
.. contents::
:local:
Installation
============
To install, run:
.. code-block:: console
sh$ pip install croud
To update, run:
.. code-block:: console
sh$ pip install -U croud
Run
===
Verify your installation, like so:
.. code-block:: console
sh$ croud --version
When using Croud, you must supply a *command*.
For example:
.. code-block:: console
sh$ croud login
Here, ``login`` is supplied as a command. The will open a browser window for
you to authenticate with `CrateDB Cloud`_. You will need to do this before
issuing any further commands.
From here, you can go on to use :ref:`commands <commands>` to manage your
configuration values, projects, clusters, organizations, and users.
Command-line options
====================
Croud supports the following command-line options:
+------------------------+--------------------------------------------------+
| Argument | Description |
+------------------------+--------------------------------------------------+
| ``-h``, | Print the help message, then exits. |
| ``--help`` | |
+------------------------+--------------------------------------------------+
| ``-v``, | Prints the program's version number, then exits. |
| ``--version`` | |
+------------------------+--------------------------------------------------+
.. TIP::
Some Croud :ref:`commands <commands>` take additional options.
Shell auto-complete
===================
Croud supports shell auto-completions for ``bash``, ``zsh`` and ``tcsh``:
.. code-block:: console
sh$ croud --print-completion {bash,zsh,tcsh}
Refer to the documentation of your specific shell for installation instructions.
.. _CrateDB Cloud: https://crate.io/products/cratedb-cloud/
.. _pip: https://pypi.org/project/pip/