# Create your org

_For tartan 0.9.36._

Stand up your own organization on Tartan: its own name under tartan.net, with you as its first Owner.

Stand up your own organization on Tartan: its own name under `tartan.net`, with you as its first Owner.

You need a Windows computer and a passkey: Windows Hello, a security key or a passkey manager. The organization's handle
becomes its name (`acme` becomes `acme.tartan.net`) and can't change later.

## With the CLI

1. Install the CLI: [Install and sign in to the tartan CLI](install-cli.md).
2. Make the sign-in profile in the folder the console reads too, so the CLI and the console share one sign-in:

   ```powershell
   tartan profile init --api https://api.tartannetworks.com --aud ctl_tartan1 --profile "$env:APPDATA\Tartan\console\acme.json"
   ```

3. Read the terms. Without `--accept-terms`, sign-up prints the statement and the texts you would accept, and stops:

   ```powershell
   tartan signup --profile "$env:APPDATA\Tartan\console\acme.json" --new-org acme --org-name "Acme" --name "<your name>" --ident <you> --register
   ```

   `--ident` is how you sign in, and it can't change: 2 to 63 lowercase letters, digits, dots, dashes or underscores,
   starting with a letter or digit.

4. If you agree, run it again with `--accept-terms`. Windows asks you to create your passkey. The sign-up opens your
   first session and ends with a `Next:` line that names the request's id in the Tartan registry, which records each
   organization with its name, addresses and certificate authority.

   ```powershell
   tartan signup --profile "$env:APPDATA\Tartan\console\acme.json" --new-org acme --org-name "Acme" --name "<your name>" --ident <you> --register --accept-terms
   ```

5. Finish the registration. Save this as `plan.json`:

   ```json
   { "register": true, "publish_names": false }
   ```

   Then run it with the id from the `Next:` line. Your passkey approves the organization's registry entry:

   ```sh
   tartan org setup --plan plan.json --approval <id> --json
   ```

   `publish_names: false` leaves your names off the public internet for now. The first public name or certificate
   asks for it later.

6. Let devices and phones join by link or QR code. Only an Owner can turn this on, and your passkey approves it:

   ```sh
   tartan org set --org acme --key discoverable --value true
   ```

## In the console

1. Open the Tartan console. On **Sign in**, choose **Create a new org**.
2. Fill in **Org name**, **Handle**, **Your name** and **Signs in as** (how you sign in, as `--ident` above; it can't
   change). **Controller** stays on Tartan, hosted.
3. Read the sign-up statement and tick it. Choose **Create organization**.
4. Two passkey prompts follow: Windows asks you to create your passkey, then you approve registering `acme` in the
   Tartan registry.

The console opens your new organization. Step 6 above still applies: devices join by link or QR code only once an Owner
turns `discoverable` on.

If you saved the passkey in a passkey manager, rename the item to `Owner · Tartan · acme`. The CLI prints the same
reminder: the manager names every item after the website.

## Check it worked

```sh
tartan me show --json
tartan org show --org acme --json
tartan doctor run --org acme --json
```

`me show` names you, the organization and your Owner role. `org show` gives the organization's registry state.
`doctor run` is one self-check: empty `problems` and `findings`, or findings of `info` severity only, mean the
organization is fine. A finding of `problem` or `warning` severity says what is wrong in `detail` and what to do in `next`.

## Next

- [Your first device](first-device.md)
- [Hand it to your AI](your-ai.md)
- [Admins and passkeys](admins-passkeys.md)
- [Invite people](invite-people.md)
