public function save()
    {

        // Create config folder if it does not exist.
        $fs = new Filesystem();
        $dumper = new Dumper();

        if (!$fs->exists(getenv('HOME').'/.terra')) {
            try {
                $fs->mkdir(getenv('HOME').'/.terra/apps');
            } catch (IOExceptionInterface $e) {
                return false;
            }
        }

        try {
            $fs->dumpFile(getenv('HOME').'/.terra/terra', $dumper->dump($this->config, 10));

            return true;
        } catch (IOExceptionInterface $e) {
            return false;
        }
    }