

Before installing TaskForge, ensure your environment meets the following minimum requirements:
For production deployments, a minimum of 4GB RAM and a dedicated server or cloud instance is recommended.
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.
Once the CLI is installed, you can scaffold a new TaskForge project with a single command:
taskforge init my-project
This command will:
<my-project>.taskforge.config.json> file with recommended settings.
Navigate into the project directory and open the config file to review and customize settings for your environment.
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
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.
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.
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.