CLI
Installing and using the DBNL Command Line Interface (CLI)
The dbnl CLI is installed as part of the SDK and allows for interacting with the dbnl platform from the command line.
To install the SDK, run:
pip install dbnldbnl
dbnlThe dbnl CLI.
dbnl [OPTIONS] COMMAND [ARGS]...Options
--version- Show the version and exit.
info
infoInfo about SDK and API.
dbnl info [OPTIONS]login
loginLogin to dbnl.
dbnl login [OPTIONS] API_TOKENOptions
--api-url <api_url>- API url--app-url <app_url>- App url
Arguments
API_TOKEN- Required argument
logout
logoutLogout of dbnl.
dbnl logout [OPTIONS]sandbox
sandboxSubcommand to interact with the sandbox.
dbnl sandbox [OPTIONS] COMMAND [ARGS]...delete
deleteDelete sandbox data.
dbnl sandbox delete [OPTIONS]Options
-f, --force- Force delete
exec
execExec a command on the sandbox.
dbnl sandbox exec [OPTIONS] [COMMAND]...Arguments
COMMAND- Optional argument(s)
logs
logsTail the sandbox logs.
dbnl sandbox logs [OPTIONS]start
startStart the sandbox.
dbnl sandbox start [OPTIONS]Options
-u, --registry-username <registry_username>- Registry username-p, --registry-password <registry_password>- Registry password--registry <registry>- Registry--version <version>- Sandbox versionDefault:
'0.28'
--base-url <base_url>- Sandbox base urlDefault:
'http://localhost:8080'
status
statusGet sandbox status.
dbnl sandbox status [OPTIONS]stop
stopStop the sandbox.
dbnl sandbox stop [OPTIONS]Was this helpful?

