p4 add ... p4 submit
"p4 add" opens the files for add. The "..." parameter means "all files under this directory."
"p4 submit" submits open files.
This assumes that you have already defined the workspace, and that the files are already in that workspace (i.e. you have placed your project files within the Root of the workspace on the local filesystem, where you are running the above commands).