sections: cli-reference:id1
This data as json
id | page | ref | title | content | breadcrumbs | references |
---|---|---|---|---|---|---|
cli-reference:id1 | cli-reference | id1 | CLI reference | This page lists the --help for every datasette CLI command. [[[cog from datasette import cli from click.testing import CliRunner import textwrap commands = [ ["--help"], ["serve", "--help"], ["serve", "--help-settings"], ["plugins", "--help"], ["publish", "--help"], ["publish", "cloudrun", "--help"], ["publish", "heroku", "--help"], ["package", "--help"], ["inspect", "--help"], ["install", "--help"], ["uninstall", "--help"], ] cog.out("\n") for command in commands: title = "datasette " + " ".join(command) ref = "_cli_help_" + ("_".join(command).replace("-", "_")) cog.out(".. {}:\n\n".format(ref)) cog.out(title + "\n") cog.out(("=" * len(title)) + "\n\n") cog.out("::\n\n") result = CliRunner().invoke(cli.cli, command) output = result.output.replace("Usage: cli ", "Usage: datasette ") cog.out(textwrap.indent(output, ' ')) cog.out("\n\n") ]]] | [] | [] |