Shanghai Laser Electron Gamma Source (SLEGS) is a powerful gamma source to provide MeV gamma-ray beams for nuclear science and technology. It is developed as one of the sixteen beamline stations in Phase II Project of the Shanghai Synchrotron Radiation Facility (SSRF). The slant-scattering mode is for the first time systematically employed in the laser Compton scattering (LCS) at SLEGS to produce energy-tunable quasi-monoenergetic gamma-ray beams. SLEGS officially completed its commissioning from July to December 2021. Gamma-rays in energy range of 0.25 - 21.7 MeV with the flux of 2.1 × 104 - 1.2 × 107 photons/s and the energy spread of 2 – 15 % are produced during the test. This paper reports results of the commissioning of the SLEGS beamline.