You can use GeoGebra to draw pyramids in 3D space by following one of these methods: 
If you want to draw an arbitrary pyramid, choose Item 4.
If you know the base, and either the top point or height of the pyramid, choose Item 4.
     GeoGebra Instruction 1
Algebra     View     and         3D     Graphics     under         View     in         Menu.         Pyramid      GeoGebra Instruction 2
Algebra     View     and         Graphics     View     in         View     under         Menu.         Polygon Algebra View, type         Pyramid(Polygon, Point)
where you replace Polygon with the name of the base, and replace Point with a         desired point that will serve as the top of the pyramid. You can see what the         pyramid looks like in 3D Graphics.         
Pyramid(Polygon, Height)
in Algebra View where you replace Height with a number that will serve as the         height of the pyramid. 
Example 1
Draw a pyramid in GeoGebra using a square with side lengths of 4, and a height of 5 
Follow Item 4 for solving this exercise. Draw a square by using Polygon  and then use  
Pyramid(Polygon, Height)
to draw the pyramid.