Skip to content

Move an existing project to hlix

Review a local project, upload its files and history, and start work in Hlix.

hlix import . turns the folder you are standing in into a cloud project, without running any of that project’s own setup commands on your machine. hlix import <folder> does the same for another folder.

  • The hlix CLI installed
  • A completed hlix auth login
  • Git installed, even when the source folder is not already a repository
  • A project directory you are authorized to upload
  • The folder is not already bound to a different API or workspace
  1. Enter the project.

    Terminal window
    cd path/to/project
  2. Run a dry scan.

    Terminal window
    hlix import . --dry-run

    Expected result: an import plan with the project name, file count and size, the biggest folders, protected-file paths, MCP definitions, Git history and skipped files. Without --dry-run, the CLI asks you to approve or decline the plan before uploading. To change the plan, adjust the flags or .hlixignore and run it again. JSON reports file and byte counts, the protected-file count and the history mode. Secret values are never printed.

  3. Resolve scan findings. Rotate exposed credentials and remove them from Git history where appropriate. Use the findings table below to address other blockers.

  4. Choose the environment file when automatic precedence is wrong.

    Terminal window
    hlix import . --dry-run --env-file .env.development
  5. Create the cloud project.

    Terminal window
    hlix import . --name "Payments service"

    --name defaults to the folder name; --stack can override stack detection. Review the detected setup and resource configuration before starting agents. The import plan names protected-file paths and reports discovered skills and MCP definitions. Supported MCP configurations retain their saved enabled or disabled state.

    Import also initializes the folder: it creates the cloud project, sends protected files through the encrypted path, and pushes a source snapshot to HLIX Repos. For automation, review a --dry-run first, then pass --yes to import. The command scans again before uploading and stops if it finds a blocker.

  6. Verify both sides.

    Terminal window
    hlix status
    hlix projects list

    Expected result: the imported project appears in the table. hlix status shows its project binding and HLIX Repos commit. Refreshing the web app shows the same project in the selected workspace.

  7. Make and push a change.

    Make a small change and run your project’s existing build or tests. Then publish the updated files:

    Terminal window
    hlix push

    Expected result: HLIX Repos: push (<commit-sha>). If the remote changed, pull or sync before pushing again.

Continue with Quickstart: ship your first task to request a change and inspect its result.

Before starting work on a repository handed over by a client:

  • Review the history scan with the client and rotate exposed credentials. Use --history sanitize when the upload should omit earlier commits; this leaves local history unchanged.
  • Review repository instructions such as AGENTS.md and CLAUDE.md, plus the skills and MCP connections the project will use. Importing source can make those instructions available to agents.
  • Associate the imported project with its client account under Clients in the dashboard.
  • Start with a small change, then inspect its code, verification output and review evidence before merging.

If the folder is already bound to the project, continue with hlix push or hlix sync. An import that stopped before it finished does not require deleting the project and starting again.

Import creates the cloud project, uploads the source and prepares its Project Environment. Hlix detects setup and verification commands and reads the repository’s documentation to build project context.

Open the project in the dashboard to inspect the files, configuration, terminal and preview. Describe your first request in chat, or send it through the board, Linear, GitHub issues or the API. Triage checks new requests against existing work before planning.

Source files become a Git commit pushed to HLIX Repos. Recognized credential and executable configuration files take a separate encrypted path. Skills require explicit import; supported project MCP configurations are imported with their saved enabled or disabled state.

Trace a folder through import
Your folderImport plan

Run hlix import . --dry-run. Read the planned files, protected paths, Git history and detected MCP connections before uploading.

Step 1 of 4
What Examples Result
Source files source, tests, lockfiles, docs, agent instructions (AGENTS.md, CLAUDE.md), untracked work not ignored copied into a temporary repository and pushed as a Git commit
Protected files dotenv, credentials, keys, .npmrc, terraform.tfvars, high-confidence secret content excluded from Git and uploaded through encrypted protected storage
Skills SKILL.md resources encrypted and preserved; activate explicitly with hlix skill import
MCP configurations supported project MCP files, such as .mcp.json stored outside Git; connections retain their saved enabled or disabled state

Import includes dirty and untracked files that are within the selected scope. It builds the upload in a temporary copy, leaving your local Git history unchanged. History preservation includes the commits reachable from the imported snapshot.

The scan reads development-environment configuration, package manifests, lockfiles and tool-version files to detect dependencies, setup, build and start commands, ports and required environment keys.

Review the detected setup command before starting agents. Import reads configuration locally; setup runs later in a Cloud Machine with the project’s secrets. See Environment discovery for supported files and detection order.

Dotenv precedence for automatic development selection is:

  1. .env
  2. .env.development
  3. .env.local
  4. .env.development.local

Later files override earlier values. If that is not the intended cloud-development environment, pass --env-file <path>.

Only key names, hashes, sizes and paths appear in the manifest and the CLI report. Values and exact protected-file bytes are sent separately. See Secrets & protected files for the full lifecycle.

History is preserved by default only when its scan completes without blocking findings. Potential secrets or an incomplete scan stop import with scan_blocked. Resolve the findings, or use --history sanitize to omit old commits.

To leave old commits out, use --history sanitize; local Git history stays intact. Anyone with access to preserved history may recover historical values. Working-tree secret files still travel separately, encrypted, and each is named in the report.

Nested repositories and declared submodules upload their working files without their own Git metadata or history. Ignored nested repositories are excluded. Import refreshes a managed block in .hlixignore for verified generated outputs, caches, logs, and untracked agent scratch. Tracked files, source, and secrets are never added automatically, and personal ! overrides are respected. Use --include <path> to include one ignored path, subject to upload limits and secret protection.

Never delete .git folders or files to get past a warning; use .hlixignore instead.

Finding Resolution
Symlinked ignore file Git does not follow symlinked .gitignore files. Hlix reads a linked .hlixignore target but does not rewrite it; use a regular file for managed-rule refresh. An unreadable target leaves uploads unchanged
File or project too large Ordinary oversized files are skipped, history is omitted if needed, then the largest folders are skipped until the upload fits. Each skip names a .hlixignore or --include <path> hint
Protected-data limit Remove unnecessary credential and config copies; keep only the intended environment
Dotenv parse error Fix the invalid assignments, or select a valid dotenv file with --env-file <path>
Ambiguous dotenv selection Pass --env-file <path> after reviewing which environment belongs in cloud development

Do I need GitHub? No. When the folder’s origin is a GitHub repository your Workspace’s GitHub connection can reach, import connects the project to it directly and uploads no source. Commits that are not pushed yet are pushed only with --push or your approval, and uncommitted changes are saved on a new branch hlix/wip/<name> of your repository, on the same approval, and a cycle for them is made ready in the project; nothing starts until you start it. Your folder, index and branch are not touched, and protected and ignored files never go into that branch. Without approval they stay in your folder. Import checks this before you approve, so the plan names the path; when that check cannot run, the plan says so and the import connects directly if it can, otherwise it copies the source into HLIX Repos. Ignored files that look like credentials or config but are not recognized protected files stay in your folder and are listed in the plan. Without a reachable GitHub origin, or with --hlix-repos, import uploads to HLIX Repos on its own; when the origin is simply not connected, the plan carries a tip with the link to connect it and you can import again afterwards.

How should I handle exposed secrets? Review the scan report and rotate exposed credentials. Use --history sanitize to leave old commits out of the upload; this preserves local history and does not revoke credentials.

I imported the wrong folder. What now? Delete the cloud project, remove the hlix: block from hlix.yml and remove .hlix/config.json if it still names that project. Then import the correct folder. Deleting the cloud project removes its cloud data; your local files and history remain available.

If files or Git refs change after the scan, import stops so you can review a fresh plan. A push also checks the remote commit to protect concurrent work.

If an upload stops before it finishes, run hlix status. When the folder is already bound to its new project, continue with hlix push or hlix sync.