Turso PHP Installer manual references
turso-php-installer
and explore the additional features it offers to support development in both local and production environments.
--unstable
--thread-safe
--php-ini[=PHP-INI]
php.ini
file to use for configuring the extension.--php-version[=PHP-VERSION]
--extension-dir[=EXTENSION-DIR]
php.ini
file:
token:create
<db-name>
--expire[=EXPIRE]
--expire=14
will set the token expiration to 14 days.my_database
with the default 7-day expiration:
my_database
with a 14-day expiration:
token:list
token:show
<db-name>
--fat
--roa
--pkp
--pkb
my_database
database:
my_database
database:
my_database
database:
my_database
database:
my_database
database:
token:delete
<db-name>
--all
is not specified, the command will fail.--all
my_database
:
server:check
server:ca-cert-create
<name>
"ca"
if not specified.my-ca-cert
.--expiry[=EXPIRY]
--expiry=90
sets the certificate to expire in 90 days.ca
and a 30-day expiration:
my-ca-cert
and the default 30-day expiration:
server:ca-peer-cert-create
<name>
"ca"
if not specified.peer-cert-1
.--expiry[=EXPIRY]
--expiry=60
sets the certificate to expire in 60 days.ca
and a 30-day expiration:
peer-cert-1
and the default 30-day expiration:
server:ca-cert-list
server:ca-cert-show
--raw
--raw
option to view the certificate and key as plain text.
server:ca-cert-delete
<name>
"ca"
if not specified.my-ca-cert
.--all
ca
:
my-ca-cert
:
--all
option carefully.
server:cert-store-get
server:cert-store-set
{installation_dir}/certs
.
Usage:
<path>
/custom/path/to/certs
.sqld:env-new
sqld
environment and saves it for future use. If the environment already exists, it can be overwritten using the --force
option.
Usage:
<name>
development
, staging
, or production
.--variables[=VARIABLES]
--force
development
with variables in JSON format:
production
with variables in DSN format:
staging
:
sqld
.
sqld:env-list
sqld
environments.
Usage:
sqld:env-show
sqld
environment based on its name or ID.
Usage:
<name-or-id>
development
, staging
, or an environment ID like 677e5e0155167
.development
:
sqld:env-edit
sqld
environment by its ID or name.
Usage:
<env-id-or-name>
development
, staging
, or 677e5e0155167
.development
:
677e5e0155167
:
sqld:env-delete
sqld
environment by its name or ID.
Usage:
<name-or-id>
development
, staging
, or 677e5e0155167
.development
:
677e5e0155167
:
sqld:server-run
sqld
server based on the specified environment ID or name, and connects it to the specified database. This command also will return a URL to open SQLD Studio in browser with current database credential / running database.
Usage:
<env-id-or-name>
sqld
server.development
, staging
, or 677e5e0155167
.
<db-name>
my_database
.
-d, --daemon
sqld
server in daemon mode, allowing it to run in the background.sqld
server for the development
environment and connect to the my_database
database:
sqld
server for the staging
environment, connect to the prod_db
database, and run it in daemon mode:
sqld
server in a specified environment and connect it to a database. The --daemon
option is useful for running the server in the background without blocking the terminal.
sqld:open-db
<env-id-or-name>
development
, staging
, or 677e5e0155167
.
<db-name>
my_database
.
my_database
from the development
environment:
prod_db
from the staging
environment: