{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Init command" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Help\n", "The help text for the `init` subcommand can be shown by passing the `-h` flag." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "usage: metacatalog init [-h] [--version] [--connection CONNECTION] [--verbose]\n", " [--quiet] [--dev] [--logfile LOGFILE]\n", " [--ignore IGNORE [IGNORE ...]]\n", "\n", "optional arguments:\n", " -h, --help show this help message and exit\n", " --version, -v Returns the module version\n", " --connection CONNECTION, -C CONNECTION\n", " Connection string to the database instance.Follows the\n", " syntax: driver://user:password@host:port/database\n", " --verbose, -V Activate extended output.\n", " --quiet, -q Suppress any kind of output.\n", " --dev Development mode. Unexpected errors will not be\n", " handled and the full traceback is printed to the\n", " screen.\n", " --logfile LOGFILE If a file is given, output will be written to that\n", " file instead of printed to StdOut.\n", " --ignore IGNORE [IGNORE ...], -I IGNORE [IGNORE ...]\n", " List tables to be ignored for default population.\n" ] } ], "source": [ "%%bash\n", "metacatalog init -h" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Usage\n", "\n", "The `init` command just runs two other commands. First, `create` and then `populate`. Refer to their documentation for more info" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## See Also\n", "\n", "* [create command](cli_create.ipynb)\n", "* [populate command](cli_populate.ipynb)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.7" } }, "nbformat": 4, "nbformat_minor": 4 }