Get ALL post ID’s export list (Only id’s. Php or sql not important )
There are lots of ways to get all IDs. Assuming you do want all posts – which include Posts, Pages, Media, Menu Items, custom post types, etc.: phpMyAdmin: Run a SQL query: SELECT ID FROM wp_posts then export the results to whatever file type you prefer.