Generate table creation statement for an existing table
Use command line tool:
pg_dump -t 'schema_name.table_name' --schema-only database_name
Use TablePlus GUI Tool:
Select the table that you want to replicate from the list in the left sidebar.
Switch to the Structure tab at the bottom, or use shortcut keys Cmd + Ctrl + ]
Click on the Definition button on the top bar.
You will notice the table creation statement to copy.
pg_dump
pg_dump — extract a PostgreSQL database into a script file or other archive file
pg_dump [connection-option...] [option...] [dbname]