How can I work offline, as defold new project has to be created online

Not with the old editor. The new editor allows you to open a project from any location without the need for any network connection.