1ALEMBIC(1) User Commands ALEMBIC(1)
2
3
4
6 alembic - manual page for alembic 1.5.5
7
9 usage: -c [-h] [--version] [-c CONFIG] [-n NAME] [-x X] [--raiseerr]
10
11 {branches,current,downgrade,edit,heads,history,init,list_tem‐
12 plates,merge,revision,show,stamp,upgrade} ...
13
14 positional arguments:
15 {branches,current,downgrade,edit,heads,history,init,list_tem‐
16 plates,merge,revision,show,stamp,upgrade}
17
18 branches
19 Show current branch points.
20
21 current
22 Display the current revision for a database.
23
24 downgrade
25 Revert to a previous version.
26
27 edit Edit revision script(s) using $EDITOR.
28
29 heads Show current available heads in the script directory.
30
31 history
32 List changeset scripts in chronological order.
33
34 init Initialize a new scripts directory.
35
36 list_templates
37 List available templates.
38
39 merge Merge two revisions together. Creates a new migration file.
40
41 revision
42 Create a new revision file.
43
44 show Show the revision(s) denoted by the given symbol.
45
46 stamp 'stamp' the revision table with the given revision; don't run
47 any migrations.
48
49 upgrade
50 Upgrade to a later version.
51
52 optional arguments:
53 -h, --help
54 show this help message and exit
55
56 --version
57 show program's version number and exit
58
59 -c CONFIG, --config CONFIG
60 Alternate config file; defaults to value of ALEMBIC_CONFIG envi‐
61 ronment variable, or "alembic.ini"
62
63 -n NAME, --name NAME
64 Name of section in .ini file to use for Alembic config
65
66 -x X Additional arguments consumed by custom env.py scripts, e.g. -x
67 setting1=somesetting -x setting2=somesetting
68
69 --raiseerr
70 Raise a full stack trace on error
71
72
73
74alembic 1.5.5 February 2021 ALEMBIC(1)