Skip to content

CLI init command #1058

Open
Open

Description

@josephjclark

User runs openfn init to init a new project

  • Creates an openfn.yaml with defaults
  • Creates a claude.md file cloned from https://github.com/OpenFn/project
  • Creates a gitignore to support our standard patterns (like tmp, credential file)
  • Maybe setup git rules for project sync (ie, when merging, never merge stuff in the .project folder)

The simple version of this just does the thing

A more complex version prompts users and asks what they want. Generate claude.md? y/n. If you run it multiple times it'll just ask you for the things that don't exist.

Maybe if there's no connected app project, it can prompt for a uuid or name

Activity

  1. moved this from New Issues to Ready in Coreon Oct 10, 2025
  2. mtuchi commented on Oct 20, 2025

    @mtuchi
    Contributor
  3. moved this from Ready to DevX Backlog in Coreon Nov 7, 2025
  4. josephjclark commented on Dec 20, 2025

    @josephjclark
    CollaboratorAuthor

    The init command can be re-run any time, and it should prompt for steps, like:

    -Do you want to create/update a gitignore? It'll then add ignore rules one at a time, if they don't exist
    -Do you want to create/reset openfn.yaml? It'll create a new one or reset the existing one to defaults
    -Do you want to add claude.md? What this really does is create as job writing guide.md, and updates claude.md to reference it

  5. moved this from DevX Backlog to Product Backlog in Coreon Feb 27, 2026
  6. josephjclark commented on Mar 17, 2026

    @josephjclark
    CollaboratorAuthor

    @theroinaochieng @brandonjackson I wanna bump up the priority of this so that we can get new projects off to a better start.

    The ability to initialise a local project with the right files in the right places, plus some pre-configured claude code stuff, could be really really helpful to users.

    Once we get it working in the CLI, we should consider adding it to the GitHub sync story too. Rather than just syncing the workflow files to a github repo, we should provide the option to intitialise the repo into an optimal structure

  7. changed the title [-]sandbox: create a CLI init[/-] [+]CLI init commmad[/+] on Mar 18, 2026
  8. changed the title [-]CLI init commmad[/-] [+]CLI init command[/+] on Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status
      Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions