### Start Nuxt Development Server with Package Managers Source: https://nuxt.com/docs/4.x/getting-started/installation Commands to start the Nuxt development server after project creation. The `-- -o` or `--open` flag will automatically open the application in your default browser. ```bash npm run dev -- -o ``` ```bash yarn dev --open ``` ```bash pnpm dev -o ``` ```bash bun run dev -o # To use the Bun runtime during development # bun --bun run dev -o ``` ```bash deno run dev -o ``` -------------------------------- ### Install Eleventy using npm, pnpm, or yarn Source: https://www.11ty.io/docs Installs the Eleventy package and saves it to your project's dependencies in package.json. This makes Eleventy available for use within your project. ```bash npm install @11ty/eleventy ``` ```bash pnpm install @11ty/eleventy ``` ```bash yarn add @11ty/eleventy ``` -------------------------------- ### Install and Run Ghost Theme Development Source: https://github.com/TryGhost/Casper Commands to install theme dependencies and start the development server using Yarn. This setup allows for live-reloading of CSS changes. ```bash # install dependencies yarn install # run development server yarn dev ``` -------------------------------- ### Install Hexo CLI Source: https://hexo.io/ Installs the Hexo command-line interface globally using npm. This is the first step to start using Hexo for your blog. ```bash npm install hexo-cli -g ``` -------------------------------- ### Eleventy Build Output Example Source: https://11ty.io/ An example of the terminal output when Eleventy builds the project and starts the development server. It shows the files being processed, the output directory, and the local server URL. ```text [11ty] Writing \_site/index.html from ./index.md (liquid) [11ty] Wrote 1 file in 0.03 seconds (v3.1.2) [11ty] Watching... [11ty] Server at http://localhost:8080/ ``` -------------------------------- ### Ghost CLI Setup Commands Source: https://docs.ghost.org/ghost-cli Execute specific stages of the Ghost setup process or skip them. This allows for granular control over installation and configuration, such as setting up MySQL, Nginx, SSL, or a Linux user. ```bash # Run ghost setup with specific stages ghost setup [stages...] # Creates a new mysql user with minimal privileges ghost setup mysql # Creates an nginx config file in `./system/files/` and adds a symlink to `/etc/nginx/sites-enabled/` ghost setup nginx # Creates an SSL service for Ghost ghost setup ssl # Create an nginx and ssl setup together ghost setup nginx ssl # Creates a low-privileged linux user called `ghost` ghost setup linux-user # Creates a systemd unit file for your site ghost setup systemd # Runs a database migration ghost setup migrate ``` -------------------------------- ### Ghost CLI Setup Options Source: https://docs.ghost.org/llms-full.txt Options to customize the `ghost setup` command behavior. These include skipping specific setup stages, configuring process names, disabling stack checks, controlling the startup behavior after setup, and enabling non-interactive installation. ```bash # Skips a setup stage ghost setup --no-setup-mysql ghost setup --no-setup-nginx ghost setup --no-setup-ssl ghost setup --no-setup-systemd ghost setup --no-setup-linux-user ghost setup --no-setup-migrate # Configure a custom process name should be (default: ghost-local) ghost setup --pname my-process # Disable stack checks ghost setup --no-stack # Setup without starting Ghost ghost setup --no-start # Tells the process manager not to restart Ghost on server reboot ghost setup --no-enable # Install without prompting (must pass all required parameters as arguments) ghost setup --no-prompt ``` -------------------------------- ### Ghost CLI Setup Options Source: https://context7_llms Options for the `ghost setup` command that allow skipping specific stages, configuring process names, disabling stack checks, controlling the startup behavior, and enabling non-interactive installations. These options provide flexibility in the setup process. ```bash ghost setup --no-setup-mysql ghost setup --no-setup-nginx ghost setup --no-setup-ssl ghost setup --no-setup-systemd ghost setup --no-setup-linux-user ghost setup --no-setup-migrate ghost setup --pname my-process ghost setup --no-stack ghost setup --no-start ghost setup --no-enable ghost setup --no-prompt ``` -------------------------------- ### Install Eleventy Starter Ghost from Source Source: https://github.com/TryGhost/eleventy-starter-ghost This snippet shows how to clone the eleventy-starter-ghost repository from GitHub and navigate into the project directory. This is the initial step for setting up the starter template. ```bash git clone https://github.com/TryGhost/eleventy-starter-ghost.git cd eleventy-starter-ghost ``` -------------------------------- ### Troubleshoot Plugin Installation Errors (npm ERR! node-waf) Source: https://hexo.io/docs/troubleshooting.html Guides users through resolving 'npm ERR! node-waf configure build' errors when installing plugins that require compilation (e.g., written in C/C++). It emphasizes the need for a proper compiler setup on the system. ```bash # Ensure you have the necessary build tools and compilers installed for your OS ``` -------------------------------- ### Initialize Hexo Blog Source: https://hexo.io/ Initializes a new Hexo project in the 'blog' directory, sets up the basic file structure, and installs necessary dependencies. Requires the Hexo CLI to be installed. ```bash hexo init blog cd blog npm install ``` -------------------------------- ### Start Hexo Development Server Source: https://hexo.io/ Starts the local development server for your Hexo blog. This allows you to preview your site in real-time as you make changes. Assumes a Hexo project has been initialized and dependencies installed. ```bash hexo server ``` -------------------------------- ### Manually Install Nightly Yarn via Tarball Source: https://yarnpkg.com/en/docs/install Installs the latest nightly build of Yarn by downloading its tarball, extracting it to a directory like /opt, and unpacking. This method requires manual setup of the PATH environment variable. ```bash cd /opt wget https://nightly.yarnpkg.com/latest.tar.gz tar zvxf latest.tar.gz # Yarn is now in /opt/yarn-[version]/ ``` -------------------------------- ### Ghost Install Command Usage Source: https://context7_llms Demonstrates how to use the `ghost install` command for setting up Ghost, including installing specific versions, local development installs, and using common options like `--local`, `--help`, `--development`, `--dir`, `--archive`, `--no-stack`, `--no-setup`, `--no-start`, and `--no-prompt`. ```bash # Install a specific version (1.0.0 or higher) ghost install [version] # Install version 2.15.0 ghost install 2.15.0 # Install locally for development ghost install local # Install version 2.15.0, locally for development ghost install 2.15.0 --local # Get more information before running the command ghost install --help # Install in development mode for a staging env ghost install --development, ghost install -D # Select the directory to install Ghost in ghost install --dir path/to/dir # Install Ghost from a specific archive (useful for testing or custom builds) ghost install --archive path/to/file.tgz # Disable stack checks ghost install --no-stack # Install without running setup ghost install --no-setup # Install without starting Ghost ghost install --no-start # Install without prompting (disable setup, or pass all required parameters as arguments) ghost install --no-prompt ``` -------------------------------- ### Run Development Server Source: https://github.com/TryGhost/eleventy-starter-ghost Starts the development server to preview the static site locally. This command allows for live-reloading and testing changes during development. ```shell yarn start ``` -------------------------------- ### Manually Install Latest Yarn via Tarball Source: https://yarnpkg.com/en/docs/install Installs the latest stable version of Yarn by downloading a tarball, extracting it to a specified directory (e.g., /opt), and then unpacking the archive. This method requires manual PATH setup. ```bash cd /opt wget https://yarnpkg.com/latest.tar.gz tar zvxf latest.tar.gz # Yarn is now in /opt/yarn-[version]/ ``` -------------------------------- ### Install Gatsby Starter Ghost Source: https://github.com/TryGhost/gatsby-starter-ghost Instructions for installing the Gatsby Starter Ghost template. This can be done using the Gatsby CLI to create a new site or by cloning the repository directly from GitHub. ```bash # With Gatsby CLI gatsby new gatsby-starter-ghost https://github.com/TryGhost/gatsby-starter-ghost.git ``` ```bash # From Source git clone https://github.com/TryGhost/gatsby-starter-ghost.git cd gatsby-starter-ghost ``` -------------------------------- ### Install and Run Ghost using Docker Compose Source: https://docs.ghost.org/install/docker Installs and runs a Ghost site using Docker Compose. This involves pulling the latest Docker images and starting the containers in detached mode. Navigate to your domain to access the site and /ghost for setup. ```bash docker compose pull docker compose up -d ``` -------------------------------- ### Advanced Ghost Installation Options Source: https://docs.ghost.org/llms-full.txt This section covers various advanced options for the 'ghost install' command, such as specifying the installation directory, using a custom archive, disabling stack checks, bypassing setup or start prompts, and managing service restarts. These options provide fine-grained control over the installation process. ```bash # Get more information before running the command ghost install --help # Install in development mode for a staging env ghost install --development, ghost install -D # Select the directory to install Ghost in ghost install --dir path/to/dir # Install Ghost from a specific archive (useful for testing or custom builds) ghost install --archive path/to/file.tgz # Disable stack checks ghost install --no-stack # Install without running setup ghost install --no-setup # Install without starting Ghost ghost install --no-start # Tells the process manager not to restart Ghost on server reboot ghost setup --no-enable # Install without prompting (disable setup, or pass all required parameters as arguments) ghost install --no-prompt ``` -------------------------------- ### Install Ghost with Version and Environment Options Source: https://docs.ghost.org/llms-full.txt Demonstrates how to install Ghost using the 'ghost install' command, including specifying a version number, installing locally for development, and combining version and local installation. This is the primary command for setting up a new Ghost instance. ```bash # Install a specific version (1.0.0 or higher) ghost install [version] # Install version 2.15.0 ghost install 2.15.0 # Install locally for development ghost install local # Install version 2.15.0, locally for development ghost install 2.15.0 --local ``` -------------------------------- ### Ghost CLI Install Command Options Source: https://docs.ghost.org/ghost-cli Available options for the 'ghost install' command, which can also accept options for nested commands like 'ghost doctor', 'ghost config', 'ghost setup', and 'ghost start'. ```shell # Get more information before running the command ghost install --help # Install in development mode for a staging environment ghost install --development ghost install -D # Select the directory to install Ghost in ghost install --dir path/to/dir # Install Ghost from a specific archive (e.g., for testing) ghost install --archive path/to/file.tgz # Disable stack checks ghost install --no-stack # Install without running setup ghost install --no-setup # Install without starting Ghost ghost install --no-start # Prevent Ghost setup from enabling on server reboot ghost setup --no-enable # Install without prompting (non-interactive) ghost install --no-prompt ``` -------------------------------- ### Install Gatsby Starter Ghost Source: https://github.com/tryghost/gatsby-starter-ghost Instructions for installing the Gatsby Starter Ghost template using either the Gatsby CLI or by cloning the source repository. This sets up a new Gatsby site that pulls content from a headless Ghost CMS. ```bash # With Gatsby CLI gatsby new gatsby-starter-ghost https://github.com/TryGhost/gatsby-starter-ghost.git # From Source git clone https://github.com/TryGhost/gatsby-starter-ghost.git cd gatsby-starter-ghost # Install dependencies yarn # Running gatsby develop ``` -------------------------------- ### Sass Example in VuePress Source: https://v1.vuepress.vuejs.org/guide/using-vue.html Demonstrates how to use Sass syntax within a VuePress project after installing the required dependencies. This example shows a simple CSS rule for a '.title' element, which will be processed by Sass. ```css .title font-size: 20px ``` -------------------------------- ### Install Yarn via Scoop (Windows) Source: https://yarnpkg.com/en/docs/install Installs Yarn on Windows using the Scoop command-line installer. If Node.js is not installed, Scoop provides a suggestion for installing it. Requires Scoop to be installed first. ```powershell scoop install yarn ``` ```powershell scoop install nodejs ``` -------------------------------- ### Deploy Gatsby Starter Ghost with Netlify Source: https://github.com/TryGhost/gatsby-starter-ghost Information on deploying the Gatsby Starter Ghost to Netlify. The starter includes configuration files like `netlify.toml`, `/static/_headers`, and `/static/_redirects` for build settings, security headers, and custom domain redirects. API keys can be managed via Netlify environment variables for better security. ```bash # Example netlify.toml for build settings [build] command = "yarn build" publish = "public" ``` ```bash # Example /static/_headers content /* X-Frame-Options: DENY X-XSS-Protection: 1; mode=block Referrer-Policy: strict-origin-when-cross-origin ``` -------------------------------- ### Initialize Hexo Project and Install Dependencies (Shell) Source: https://hexo.io/docs/setup These commands are used to initialize a new Hexo project in a specified directory and install the necessary project dependencies. The first command creates the basic Hexo project structure, and the second installs packages listed in the 'package.json' file. ```shell hexo init npm install ``` -------------------------------- ### Ghost 'has' Helper: OR Condition for Slug or Tag Source: https://docs.ghost.org/themes/helpers/functional/has Illustrates how the 'has' helper can be used with multiple attributes to create an 'OR' condition. This example checks if a post has a slug of 'welcome' or a tag named 'getting started'. ```html {{#has slug="welcome" tag="getting started"}} ...Will execute if the slug is welcome OR the tag is getting-started... {{/has}} ``` -------------------------------- ### Check Yarn Installation Source: https://yarnpkg.com/en/docs/install This command verifies that Yarn has been successfully installed on your system. It prints the currently installed version of Yarn to the console. ```shell yarn --version ``` -------------------------------- ### Ghost CLI Setup Commands Source: https://context7_llms These commands are used to set up various components of a Ghost installation. Each stage can be run individually or skipped using `--no-setup-` flags. They cover database setup, Nginx configuration, SSL certificates, user creation, systemd services, and database migrations. ```bash ghost setup [stages...] ghost setup mysql ghost setup nginx ghost setup ssl ghost setup nginx ssl ghost setup linux-user ghost setup systemd ghost setup migrate ``` -------------------------------- ### Ghost CLI Setup Commands Source: https://docs.ghost.org/llms-full.txt Commands for setting up different components of a Ghost installation. Each command handles specific configurations like database, web server, or user creation. Some commands can be run individually or skipped using flags. ```bash ghost setup [stages...] # Creates a new mysql user with minimal privileges ghost setup mysql # Creates an nginx config file in `./system/files/` and adds a symlink to `/etc/nginx/sites-enabled/` ghost setup nginx # Creates an SSL service for Ghost ghost setup ssl # Create an nginx and ssl setup together ghost setup nginx ssl # Creates a low-privileged linux user called `ghost` ghost setup linux-user # Creates a systemd unit file for your site ghost setup systemd # Runs a database migration ghost setup migrate ``` -------------------------------- ### Install Yarn via MacPorts on macOS Source: https://yarnpkg.com/en/docs/install Installs Yarn on macOS using the MacPorts package manager. Similar to Homebrew, this command will also install Node.js if it's not already installed on the system. ```shell sudo port install yarn ``` -------------------------------- ### Install Dependencies with Yarn Source: https://github.com/TryGhost/eleventy-starter-ghost Installs the necessary project dependencies using the Yarn package manager. This is a prerequisite for running and building the project. ```shell yarn ``` -------------------------------- ### Setup Yarn PATH Environment Variable (Unix/Linux/macOS) Source: https://yarnpkg.com/en/docs/install Configures the system's PATH environment variable to include Yarn's executable directory, allowing Yarn to be run from any location in the terminal. This involves modifying shell profile files. ```shell export PATH="$PATH:/opt/yarn-[version]/bin" ``` ```shell export PATH="$PATH:`yarn global bin`" ``` -------------------------------- ### Setup Yarn PATH Environment Variable (Bash) Source: https://yarnpkg.com/en/docs/install Configures the system's PATH environment variable to include Yarn's executable directory, allowing Yarn commands to be run from any location in the terminal. This involves editing shell profile files. ```bash export PATH="$PATH:/opt/yarn-[version]/bin" ``` ```bash export PATH="$PATH:`yarn global bin`" ``` ```fish set -U fish_user_paths (yarn global bin) $fish_user_paths ``` -------------------------------- ### Install Yarn via Chocolatey (Windows) Source: https://yarnpkg.com/en/docs/install Installs Yarn on Windows using the Chocolatey package manager. This command also ensures that Node.js is installed if it's not already present. Requires Chocolatey to be installed first. ```powershell choco install yarn ``` -------------------------------- ### Install and Upgrade Yarn via npm Source: https://yarnpkg.com/en/docs/install This command installs or upgrades Yarn to the latest version using the npm package manager. Ensure you have Node.js and npm installed on your system. This is the recommended cross-platform installation method. ```bash npm install --global yarn ``` -------------------------------- ### Create New Gridsome Project with Blog Starter Source: https://docs.ghost.org/jamstack/gridsome Creates a new Gridsome project using the official blog starter template, setting up a basic structure for a blog. ```bash gridsome create gridsome-ghost https://github.com/gridsome/gridsome-starter-blog.git ``` -------------------------------- ### Verifying Ghost Storage Configuration Source: https://github.com/thombuchi/ghost-google-cloud-storage These bash commands demonstrate how to stop, run, and start the Ghost service to verify the custom storage adapter configuration. It includes example output showing successful startup or potential errors. ```bash ghost stop ghost run # ... (potential errors or successful boot logs) ... ghost start ``` -------------------------------- ### Eleventy Template Front Matter and Liquid Syntax Source: https://www.11ty.io/docs Example of an Eleventy template file demonstrating front matter for metadata and Liquid templating syntax for dynamic content insertion. This snippet shows how to use variables defined in the front matter within the template body. ```liquid --- title: Heading --- # {{ title }} ``` -------------------------------- ### Install Ghost WebDAV Storage Adapter (npm) Source: https://github.com/bartt/ghost-webdav-storage-adapter Installs the WebDAV storage adapter for Ghost using npm and copies the necessary files to the Ghost content directory. This is the initial setup step for using WebDAV storage. ```bash npm install ghost-webdav-storage-adapter mkdir -p ./content/adapters/storage/webdav cp -v ./node_modules/ghost-webdav-storage-adapter/dist/*.js ./content/adapters/storage/webdav ``` -------------------------------- ### Install Yarn on Solus Linux Source: https://yarnpkg.com/en/docs/install Installs Yarn on the Solus operating system using its native package manager, 'eopkg'. This command fetches and installs the Yarn package from the Solus repositories. ```bash sudo eopkg install yarn ``` -------------------------------- ### Manage Ghost Process Source: https://docs.ghost.org/install/local Provides essential commands for managing a running local Ghost instance. These commands allow you to start, stop, view logs, and list all running Ghost blogs on your system. ```bash ghost stop ``` ```bash ghost start ``` ```bash ghost log ``` ```bash ghost ls ``` -------------------------------- ### Install Ghost-CLI globally using npm Source: https://docs.ghost.org/install/ubuntu Installs the latest version of the Ghost-CLI command-line tool globally using npm. This tool is essential for managing Ghost installations, including setup, configuration, and updates. Ensure Node.js and npm are installed and accessible in your PATH. ```shell sudo npm install ghost-cli@latest -g ``` -------------------------------- ### Ghost Installation Options Source: https://docs.ghost.org/llms-full.txt This section outlines different ways to install Ghost, including command-line interface (CLI) for Ubuntu, Docker for containerized deployments, and local installations for macOS, Windows, and Linux. It also mentions installing from source for core development. ```jsx }> Ghost CLI }> Docker compose }> MacOS, Windows & Linux }> For working on Ghost Core ``` -------------------------------- ### Start Gatsby Local Development Server Source: https://www.gatsbyjs.com/docs/quick-start Starts the Gatsby development server, which provides a hot-reloading environment. The site is typically accessible at http://localhost:8000 in the browser. ```bash npm run develop ``` -------------------------------- ### Install Yarn on Arch Linux Source: https://yarnpkg.com/en/docs/install Installs Yarn on Arch Linux using the pacman package manager. This command leverages the official Arch Linux repositories for Yarn installation. RC or nightly builds are not available through this method. ```bash pacman -S yarn ``` -------------------------------- ### Create New Gatsby Site with npm Source: https://www.gatsbyjs.com/docs/quick-start Initializes a new Gatsby site using the npm command. It prompts the user for site details, including title, directory name, programming language (JavaScript/TypeScript), CMS, styling tools, and additional features. ```bash npm init gatsby ``` -------------------------------- ### Install Cloudinary Ghost Storage Adapter on Docker Source: https://github.com/eexit/ghost-storage-cloudinary Example Dockerfile for setting up a Ghost instance with the Cloudinary storage adapter. It installs dependencies, the adapter, and configures Ghost using the CLI. ```dockerfile FROM ghost:5-alpine as cloudinary RUN apk add g++ make python3 RUN su-exec node yarn add ghost-storage-cloudinary FROM ghost:5-alpine COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/node_modules $GHOST_INSTALL/node_modules COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/node_modules/ghost-storage-cloudinary $GHOST_INSTALL/content/adapters/storage/ghost-storage-cloudinary # Configure Ghost CLI RUN set -ex; \ su-exec node ghost config storage.active ghost-storage-cloudinary; \ su-exec node ghost config storage.ghost-storage-cloudinary.upload.use_filename true; \ su-exec node ghost config storage.ghost-storage-cloudinary.upload.unique_filename false; \ su-exec node ghost config storage.ghost-storage-cloudinary.upload.overwrite false; \ su-exec node ghost config storage.ghost-storage-cloudinary.fetch.quality auto; \ su-exec node ghost config storage.ghost-storage-cloudinary.fetch.cdn_subdomain true; ``` -------------------------------- ### Manually Install RC Yarn via Tarball Source: https://yarnpkg.com/en/docs/install Installs the latest Release Candidate (RC) version of Yarn by downloading its tarball, extracting it to a directory like /opt, and unpacking. Manual PATH configuration is necessary after this installation. ```bash cd /opt wget https://yarnpkg.com/latest-rc.tar.gz tar zvxf latest-rc.tar.gz # Yarn is now in /opt/yarn-[version]/ ``` -------------------------------- ### Build Static Site Locally Source: https://github.com/TryGhost/eleventy-starter-ghost Generates the static site files for local testing or deployment. This command compiles assets and creates the final static output. ```shell yarn build ``` -------------------------------- ### Manual Yarn Installation via Tarball Source: https://yarnpkg.com/en/docs/install Installs Yarn by downloading and extracting a tarball archive. This method provides flexibility in choosing the installation directory. It supports installing the latest stable, latest release candidate, or nightly builds. Verification of the tarball using GPG is recommended before extraction. ```bash cd /opt wget https://yarnpkg.com/latest.tar.gz tar zvxf latest.tar.gz # Yarn is now in /opt/yarn-[version]/ ``` ```bash cd /opt wget https://yarnpkg.com/latest-rc.tar.gz tar zvxf latest-rc.tar.gz # Yarn is now in /opt/yarn-[version]/ ``` ```bash cd /opt wget https://nightly.yarnpkg.com/latest.tar.gz tar zvxf latest.tar.gz # Yarn is now in /opt/yarn-[version]/ ``` -------------------------------- ### Create Gatsby Site with Ghost Starter Template Source: https://docs.ghost.org/jamstack/gatsby This command initializes a new Gatsby project using the official Ghost starter template. It requires the Gatsby CLI and a Ghost account for sourcing content. After creation, dependencies are installed using npm or yarn, and the development server is started to preview the site. ```bash gatsby new my-gatsby-site https://github.com/TryGhost/gatsby-starter-ghost.git npm install # or yarn install gatsby develop ``` -------------------------------- ### Install Yarn via RPM Repository (CentOS/Fedora/RHEL) Source: https://yarnpkg.com/en/docs/install Installs Yarn on CentOS, Fedora, or RHEL systems using the official Yarn RPM package repository. It also includes steps to configure the NodeSource repository if Node.js is not already installed. ```bash curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo ``` ```bash curl --silent --location https://rpm.nodesource.com/setup_12.x | sudo bash - ``` ```bash sudo yum install yarn ## OR ## sudo dnf install yarn ``` -------------------------------- ### Install Yarn Latest via Tarball (Bash) Source: https://yarnpkg.com/en/docs/install Manually installs the latest stable version of Yarn by downloading a tarball, extracting it, and optionally verifying its integrity with GPG. This method is suitable for Unix-like systems and allows for installation in a custom directory. ```bash cd /opt wget https://yarnpkg.com/latest.tar.gz tar zvxf latest.tar.gz # Yarn is now in /opt/yarn-[version]/ ``` ```bash wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --import wget https://yarnpkg.com/latest.tar.gz.asc gpg --verify latest.tar.gz.asc # Look for "Good signature from 'Yarn Packaging'" in the output ```