Reference
All 325 commands.
Generated from the NexQL 2.4.0 extension manifest. Every command is listed in the Command Palette (Ctrl+Shift+P, or Cmd+Shift+P on macOS) unless the manifest hides it; the other places it appears are shown beside it. Commands marked Pro are part of NexQL Pro.
325 of 325 commands
Nothing matches. Try fewer or different words.
Connections & safety 24
Add, edit, duplicate, pin, group and color connections, import one from a DATABASE_URL in a .env file or from a URL on the clipboard, and connect, reconnect or disconnect. Switch the connection or database a notebook uses, or set a default connection for the workspace. Sentinel settings control how the editor signals which environment you are on (title bar, status bar, notebook strip, tab badges), and the Production audit log is listed here too.
Add Connection from Clipboard URL
Add PostgreSQL Connection
Assign Color
Connect to PostgreSQL Database
Delete Connection
Disconnect
Disconnect from database
Disconnect PostgreSQL Database
Duplicate Connection
Edit Connection
Import Connection from DATABASE_URL (.env)
Manage Connections
Move to Folder / Group
Open Production Audit LogPro
Open Sentinel Settings
Pin Connection
Refresh Connections
Set Workspace Default PostgreSQL Connection
Switch Connection
Switch Database
Switch Notebook Connection
Toggle Notebook Context Strip
Unpin Connection
Profiles 5
Create, switch and delete connection profiles, and export them to a file or import them from one.
Create Connection Profile
Delete Connection Profile
Export Connection Profiles…
Import Connection Profiles…
Switch Connection Profile
Explorer & objects 59
Refresh the tree, search schema objects, add objects to favorites, and open properties, definitions and data for tables, views, functions, types, roles, foreign objects and more. The Definition Viewer (DDL viewer) settings control the SQL preview. Auto refresh settings control how often the tree and Notebooks panel poll PostgreSQL for changes.
Add to Favorites
Aggregate Properties
Copy Column Name
Copy Column Name (Quoted)
Copy Constraint Name
Copy Index Name
Cron Job Details
DDL Viewer: Copy to Clipboard
DDL Viewer: Open as Editable Copy
DDL Viewer: Toggle SQL Preview
Domain Properties
Event Trigger Properties
List Aggregates
List Domains
List Event Triggers
List Partitions
List pg_cron Jobs
List Publications
List Rules
List Sequences
List Subscriptions
List Tablespaces
List Triggers
Open Column Analysis
Open Definition Viewer
Partition Properties
Properties
Properties
Publication Properties
Query Foreign Table Data
Refresh
Refresh FDW
Refresh Server
Refresh User Mapping
Remove from Favorites
Rule Properties
Search Schema Objects
Sequence Properties
Show Column Properties
Show FDW Properties
Show Foreign Table Properties
Show Function Properties
Show Materialized View Properties
Show Procedure Properties
Show Role Properties
Show Server Properties
Show Table Properties
Show Type Properties
Show User Mapping Properties
Show View Properties
Subscription Properties
Tablespace Properties
Trigger Properties
View Dependencies
View Table Data
View Table Definition
View View Data
Object management 101
Create, edit and drop database objects, enable or disable triggers, truncate tables, grant and revoke privileges, schedule pg_cron jobs, and run VACUUM, ANALYZE and REINDEX. The Operations commands are per-object menus that group these actions.
Add Column
Add Comment
Add Constraint
Add Index
Add/Edit Column Comment
Constraint Operations
Create Aggregate
Create Database
Create Domain
Create Event Trigger
Create Foreign Server
Create Foreign Table
Create Function
Create Materialized View
Create Object
Create Object
Create Partition
Create Procedure
Create Publication
Create Role
Create Schema
Create Sequence
Create Table
Create Trigger
Create Type
Create User Mapping
Create View
Database Operations
Detach Partition
Disable Event Trigger
Disable Trigger
Drop Aggregate
Drop Database
Drop Domain
Drop Event Trigger
Drop Extension
Drop Foreign Server
Drop Foreign Table
Drop Function
Drop Materialized View
Drop Procedure
Drop Publication
Drop RLS Policy
Drop Role
Drop Rule
Drop Sequence
Drop Subscription
Drop Table
Drop Trigger
Drop Type
Drop User Mapping
Drop View
Edit Foreign Table
Edit Function Definition
Edit Materialized View
Edit Materialized View
Edit Procedure Definition
Edit Role
Edit Table Definition
Edit Type
Edit View Definition
Enable Event Trigger
Enable Extension
Enable Trigger
Event Trigger Operations
Extension Operations
FDW Operations
Foreign Table Operations
Function Operations
Grant/Revoke Privileges
Index Operations
Install pg_cron Extension
Maintenance...
Materialized View Operations
Next Value
Procedure Operations
Publication Operations
Quick Clone Table
Refresh Materialized View
RLS Policy Studio...
Role Operations
Rule Operations
Schedule New pg_cron Job
Schema Operations
Sequence Operations
Server Operations
Smart Paste (create table from clipboard)
Table Operations
Tablespace Operations
Trigger Operations
Truncate Table
Type Operations
Unschedule Cron Job
User Mapping Operations
Validate Constraint
View Operations
Scripts & templates 27
Generate SQL from a selected object: SELECT, INSERT, UPDATE and DELETE scripts, CREATE and ALTER scripts, and templates for columns, constraints and indexes. The Call Function and Call Procedure commands are here too.
ADD CONSTRAINT Templates
ALTER COLUMN Script
ALTER CONSTRAINT Script
ALTER INDEX Script
ALTER Script
Call Function
Call Procedure
CREATE INDEX Script
CREATE Script
CREATE Script
CREATE Script
DDL Viewer: Execute Routine Scaffold
DELETE Script
DROP COLUMN Script
DROP CONSTRAINT Script
DROP INDEX Script
Insert Data
INSERT Script
REINDEX Script
RENAME COLUMN Script
Script as CREATE
Script as SELECT
SELECT Script
SELECT Statement
Update Data
UPDATE Script
WHERE Clause
Notebooks & queries 18
Create and organise notebooks, open them quickly, jump between sections, and open the Query Tool, Query Studio or a psql session. Settings cover the query timeout, what happens when a statement in a batch fails, prompted parameters, and the SQL formatter.
Delete Folder
Delete Notebook
Format SQL
Jump to Section
Move to Folder…
New Folder
New PostgreSQL Notebook
Open Notebook
Open Query StudioPro
PSQL Tool
Query Studio: Cancel QueryPro
Query Studio: Choose Connection & Database…Pro
Query Studio: Run QueryPro
Query Tool
Quick Open Notebook
Refresh Notebooks
Rename Folder
Rename Notebook
Results & export 4
Export table data and notebooks, and toggle full dataset mode on a cell. Settings cover the automatic LIMIT, the default row limit, sliding-window streaming for large results, and how bytea columns are shown.
Export Notebook (HTML / Gist)
Export Table Data
Toggle Full Dataset Mode
Toggle Full Dataset Mode
Saved queries & history 17
Save queries to a library, search, load, edit, copy and delete them, import and export the library, and see query recommendations. Query History entries can be opened, copied or deleted, and the whole history cleared.
Clear History
Copy Query
Copy Query
Delete Saved Query
Edit Query
Export Saved Queries
Import Saved Queries
Load Saved Query
Load Saved Query
Open in Notebook
Open Query
Save Query to Library
Save Query to Library
Search Saved Queries
Show Query Recommendations
View Saved Query
Schema tools 13
Design tables visually, view entity-relationship diagrams, compare schemas, import data and DBML, and open the Migration Hub. The database index commands and settings build and manage the local index of your database structure.
Create Table (Visual)Pro
Database Index: Build Index...Pro
Database Index: Clear Index...Pro
Database Index: Open DashboardPro
Import Data…Pro
Import DBML → CREATE TABLE…Pro
Migration Hub: Detect Framework & Show Runbook
Open Table Designer (Visual)Pro
Role Designer (Visual)
Schema DiffPro
Schema Diff: Choose Connection & Schema…Pro
View ERD (Entity-Relationship Diagram)Pro
View ERD (pick schemas)…Pro
Performance & Plan Studio 9
Run EXPLAIN and EXPLAIN ANALYZE on a query, view index usage, table activity, table profiles and column statistics. A setting sets the threshold for flagging a query as slow in history and results.
Analyze Index Usage
Explain Analyze
EXPLAIN Query
Query Studio: Explain AnalyzePro
Query Studio: Explain QueryPro
View Column Statistics
View Index Usage
View Table Activity
View Table Profile
Dashboard 4
Open the live database dashboard for a connection and database, and open the LISTEN/NOTIFY monitor.
LISTEN/NOTIFY Monitor
LISTEN/NOTIFY Monitor: Choose Connection & Database…
Live Dashboard: Choose Connection & Database…Pro
Show Database DashboardPro
AI / NexQL Bot 9
Open NexQL Bot in the sidebar or an editor tab, attach objects and queries to a chat, use Ask AI on a notebook cell, generate or optimize a query, and reveal an object in the explorer from the bot. Settings choose the provider and model for chat and notebooks, set the context budget, and configure the OpenCode integration.
AI Settings
AI: Generate Query
AI: Optimize Query
Ask AIPro
Attach to NexQL BotPro
Chat with QueryPro
NexQL Bot: Open in Editor Tab
NexQL Bot: Reveal Object in Explorer
SQL Assistant: Open in Editor TabDeprecated
Backup & restore 3
Back up a database, restore one, or open the Backup & Restore workspace and choose a connection and database.
Backup & Restore Workspace: Choose Connection & Database…Pro
Backup...Pro
Restore...Pro
Sync 21
Set up sync, run it on demand or pause it, pull or push only, preview what would change, and resolve conflicts. Share items with a workspace, invite members and choose items to leave out. Repair, rebuild-index and diagnostics commands are listed too. Settings cover automatic sync, the notebook folder, the pull interval and the API endpoint.
Don't Sync This ItemPro
Invite to Workspace…Pro
Pause SyncPro
Preview SyncPro
Privacy & Security InfoPro
Pull OnlyPro
Push OnlyPro
Rebuild Sync IndexPro
Repair SyncPro
Replace Cloud with LocalPro
Replace Local with CloudPro
Resolve Sync ConflictsPro
Set Up SyncPro
Show Sync StatusPro
Sign Out of SyncPro
Sync DiagnosticsPro
Sync MenuPro
Sync NowPro
Settings, license & help 6
Open the settings hub and What's New, and manage your license: activate it, manage it, view plans and show free usage.
Activate LicensePro
Manage LicensePro
Open Settings
Show Free UsagePro
View Plans / UpgradePro
What's New in NexQL
Diagnostics 5
Turn on verbose logging to the NexQL Debug output channel, choose a telemetry mode (off, basic or detailed) and tune what is sent, and show a database's configuration.
Set Telemetry Mode
Show Configuration
Telemetry: Basic
Telemetry: Detailed
Telemetry: Off