Getting Started_

Installation & Setup

System requirements

‍

Before installing TaskForge, ensure your environment meets the following minimum requirements:

‍

  • Operating system: macOS 12+, Ubuntu 20.04+, or Windows 10/11 (WSL2 recommended)
  • Node.js version 18 or higher
  • npm version 9 or higher, or yarn 1.22+
  • At least 2GB of available RAM
  • Internet connection for pulling dependencies and connecting to the TaskForge API

‍

For production deployments, a minimum of 4GB RAM and a dedicated server or cloud instance is recommended.

‍

‍

Installing the TaskForge CLI

‍

The TaskForge CLI is the primary tool for initializing projects, managing environments, and deploying pipelines. Install it globally via npm:

‍

‍

npm install -g @taskforge/cli

‍

‍

Verify the installation was successful by checking the version:

‍

‍

taskforge --version

‍

If the command is not found, ensure your npm global bin directory is included in your system PATH.

‍

‍

Creating your first project

‍

Once the CLI is installed, you can scaffold a new TaskForge project with a single command:

‍

taskforge init my-project

‍

This command will:

‍

  1. Create a new project directory named <my-project>.
  2. Generate a default <taskforge.config.json> file with recommended settings.
  3. Install all required dependencies automatically.
  4. Create a sample pipeline and task configuration to help you get started.

‍

Navigate into the project directory and open the config file to review and customize settings for your environment.

‍

‍

Connecting to your workspace

‍

To link your local project to your TaskForge workspace, authenticate using the CLI:

‍

taskforge login

‍

‍

This will open a browser window prompting you to sign in. Once authenticated, your workspace credentials are stored locally in a secure config file at ~/.taskforge/credentials.

‍

To link an existing project to a specific workspace:

‍

‍taskforge workspace link --id YOUR_WORKSPACE_ID

‍

‍

Environment configuration

‍

TaskForge uses environment files to manage configuration across different deployment stages. Create a .env file in your project root and define your environment variables:

‍

1TASKFORGE_API_KEY=your_api_key_here
2TASKFORGE_WORKSPACE_ID=your_workspace_id
3TASKFORGE_ENV=development

‍

Never commit your .env file to version control. Add it to your <.gitignore> to prevent accidental exposure of credentials.

‍

‍

Running locally

‍

To start the TaskForge development server locally: taskforge dev

‍

The development server watches for changes to your pipeline configurations and task definitions, automatically reloading on save. You can access the local dashboard at <http://localhost:3000> to monitor task execution in real time.

‍

‍

Deploying to production

‍

When you are ready to deploy, run:

‍

taskforge deploy --env production

‍

This command validates your configuration, bundles your pipelines, and pushes them to the TaskForge cloud infrastructure. Deployment typically completes within 30 seconds for standard projects.

const next = await fetch("https://api.example.com/next-section");
Black and white grid pattern with black dots at the intersections, forming a repeating checkered design.