Skip to content

Commit 44f3bf4

Browse files
committed
added docs for the piccolo shell run
1 parent 890d00e commit 44f3bf4

File tree

3 files changed

+87
-0
lines changed

3 files changed

+87
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
Included Apps
2+
=============
3+
4+
Just as you can modularise your own code using :ref:`apps<PiccoloApps>`, Piccolo itself
5+
ships with several builtin apps, which provide a lot of its functionality.
6+
7+
Auto includes
8+
-------------
9+
10+
The following are registered with your :ref:`AppRegistry<AppRegistry>` automatically:
11+
12+
app
13+
~~~
14+
15+
Lets you create new Piccolo apps. See :ref:`PiccoloApps`.
16+
17+
.. code-block:: bash
18+
19+
piccolo app new
20+
21+
asgi
22+
~~~~
23+
24+
Lets you scaffold an ASGI web app. See :ref:`ASGICommand`.
25+
26+
.. code-block:: bash
27+
28+
piccolo asgi new
29+
30+
meta
31+
~~~~
32+
33+
Tells you which version of Piccolo is installed.
34+
35+
.. code-block:: bash
36+
37+
piccolo meta version
38+
39+
migrations
40+
~~~~~~~~~~
41+
42+
Lets you create and run migrations. See :ref:`Migrations`.
43+
44+
playground
45+
~~~~~~~~~~
46+
47+
Lets you learn the Piccolo query syntax, using an example schema. See
48+
:ref:`Playground`.
49+
50+
.. code-block:: bash
51+
52+
piccolo playground run
53+
54+
project
55+
~~~~~~~
56+
57+
Lets you create a new ``piccolo_conf.py`` file. See :ref:`PiccoloProjects`.
58+
59+
.. code-block:: bash
60+
61+
piccolo project new
62+
63+
shell
64+
~~~~~
65+
66+
Launches an iPython shell, and automatically imports all of your registered
67+
``Table`` classes. It's great for running adhoc database queries using Piccolo.
68+
69+
.. code-block:: bash
70+
71+
piccolo shell run
72+
73+
-------------------------------------------------------------------------------
74+
75+
Optional includes
76+
-----------------
77+
78+
These need to be explicitly registered with your :ref:`AppRegistry<AppRegistry>`.
79+
80+
user
81+
~~~~
82+
83+
Provides a user table, and commands for creating / managing users. See
84+
:ref:`Authentication`.

docs/src/piccolo/projects_and_apps/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ application.
1111

1212
./piccolo_projects
1313
./piccolo_apps
14+
./included_apps

docs/src/piccolo/projects_and_apps/piccolo_projects.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ The DB setting is an ``Engine`` instance. To learn more Engines, see
6161

6262
-------------------------------------------------------------------------------
6363

64+
.. _AppRegistry:
65+
6466
APP_REGISTRY
6567
------------
6668

0 commit comments

Comments
 (0)