mirror of
https://github.com/simonw/dclient.git
synced 2026-07-23 09:24:31 +02:00
2 KiB
2 KiB
Aliases
You can assign an alias to a Datasette database using the dclient alias command:
dclient alias add content https://datasette.io/content
You can list aliases with dclient alias list:
$ dclient alias list
content = https://datasette.io/content
Once registered, you can pass an alias to commands such as dclient query:
dclient query content "select * from news limit 1"
dclient alias --help
Usage: dclient alias [OPTIONS] COMMAND [ARGS]...
Manage aliases for different instances
Options:
--help Show this message and exit.
Commands:
add Add an alias
list List aliases
remove Remove an alias
dclient alias list --help
Usage: dclient alias list [OPTIONS]
List aliases
Options:
--json Output raw JSON
--help Show this message and exit.
dclient alias add --help
Usage: dclient alias add [OPTIONS] NAME URL
Add an alias
Options:
--help Show this message and exit.
dclient alias remove --help
Usage: dclient alias remove [OPTIONS] NAME
Remove an alias
Options:
--help Show this message and exit.