list
- View all databasesshow
- Display database detailscreate
- Create a new databasedelete
- Remove a databaseregions
- List available regionspsql
- Connect using PostgreSQL CLIconnectionstring
- Get connection detailsnile db
command, you can set the workspace to operate in.
NILE_WORKSPACE
environment variable or by using the flag --workspace
in the command.list
command shows all databases in your workspace.
Flag | Description | Default |
---|---|---|
--format | Output format (human, json, csv) | human |
--workspace | Specific workspace to list from | Current workspace |
--database
in the command.
show
command provides detailed information about a specific database.
Flag | Description | Default |
---|---|---|
--format | Output format (human, json, csv) | human |
--workspace | Workspace containing the database | Current workspace |
regions
command shows available regions for database creation.
Flag | Description | Default |
---|---|---|
--format | Output format (human, json, csv) | human |
--workspace | Workspace to list regions for | Current workspace |
create
command sets up a new database in your workspace.
Flag | Description |
---|---|
--name | Name for the new database |
--region | Region to create the database in |
Flag | Description | Default |
---|---|---|
--format | Output format (human, json, csv) | human |
--workspace | Workspace to create in | Current workspace |
delete
command removes a database permanently.
Flag | Description | Default |
---|---|---|
--force | Skip confirmation prompt | false |
--workspace | Workspace containing the database | Current workspace |
psql
command opens an interactive PostgreSQL terminal.
Flag | Description | Default |
---|---|---|
--workspace | Workspace containing the database | Current workspace |
connectionstring
command provides database connection details. Currently, it only supports the psql format.
copy
command allows you to import data from files into database tables. The target table must already exist in the database with the appropriate columns that match your input data.
Flag | Description |
---|---|
--table-name | Name of the target table (must exist in database) |
--format | File format (csv or text) |
--file-name | Path to the input file |
Flag | Description | Default |
---|---|---|
--delimiter | Column delimiter character | comma for CSV |
--column-list | Comma-separated list of column names | All columns from file |
--debug | Show detailed progress information | false |