Menu

Getting started

Create a weird account, accept the terms, set up your authenticator, add credits and put a first site online.

This guide takes you from nothing to a first site online with the weird command-line program. Everything here can also be done through the API.

1. Create your account#

$ weird signup

You are asked for your email address and sent a sign-up link; paste it back into the terminal (or open it on the same computer and paste the address it opened). A link works for at least an hour. One address receives only a few sign-up emails an hour: past that nothing new is sent, and you are told to use the most recent link in your inbox (look in spam too), which still works. weird has no passwords: from then on you sign in with a code emailed to you, plus your authenticator once you have one (see Account and security).

On another computer, sign in with:

$ weird login

2. Accept the terms#

$ weird terms

This shows the current terms of service and privacy notice and offers to accept them. Until the current versions are accepted, the account and its API keys can be used for nothing else; when a new version is published you are asked again. A version published ahead is listed with the day it takes effect on the application's legal documents page.

Your account has a language, Romanian or English: that of every email weird sends you and of the texts you accept. A new account takes the language the application showed when you signed up; the application's language switch changes it (PUT /auth/language).

3. Set up your authenticator#

$ weird security enroll

Scan the QR code with an authenticator app, type the first code it shows and the code we email you for this first authenticator (eight letters and digits, XXXX-XXXX), and store the eight backup codes printed once. Anything that spends credits or deletes something needs your authenticator when you act from a signed-in terminal or the application.

4. Fill in your details and add credits#

Before you can see your balance, add credits or register a domain, three things must be on file:

  • your holder details (name, address, phone, and for a holder in Romania the CNP the .ro registry requires);
  • your phone number, confirmed with a texted code, when the platform asks for it (weird profile says whether it is still missing);
  • a billing profile: the details printed on your invoices.
$ weird profile set$ weird profile phone start$ weird profile phone confirm$ weird billing add

weird profile shows what is still missing. Everything on weird is paid from prepaid credits; credits are the only thing you buy, and VAT is added when you buy them. Add some:

$ weird credits topup

You are shown the usual amounts, then a text about your right of withdrawal that you confirm by typing yes, and the payment page opens in your browser. The credits arrive as soon as the payment goes through. How billing works explains the rest.

$ weird credits$ weird status

weird credits shows the balance; weird status shows the account at a glance and what to do next.

5. A first site#

A site is a folder with an index.html at its root. Uploading is done with the weird program (the web application does not upload files). Enable storage once (you are shown where the copies of your content are kept, and agree), check the folder's own rules files on your computer, then upload it:

$ weird storage enable$ weird storage check-site ./site$ weird storage add ./site

The upload answers the content's address (its CID) and a gateway address where it can already be opened. Then give it a name, in one of two ways.

On a free address, no domain needed#

A free address is a name under one of weird's own domains, lent to you for as long as a site is on it (Free addresses). One command claims the name, uploads the folder and puts it on the name:

$ weird names check ana$ weird names publish ana ./site

Free addresses exist only under the domains the platform has opened for them (weird names bases lists them); under one not open yet, the claim is refused, says so and gives its credits back: try later, or put the site on a domain of your own.

On your own domain#

A hostname can be attached only inside a DNS zone that is live, and a zone goes live only once the domain points at the zone's nameservers. Check and register a domain (both show the credit charge and ask first), with its DNS zone created at the same time:

$ weird domains check example.ro$ weird domains register example.ro --with-dns

weird points a domain registered here at its zone by itself: the answer says so, and that the zone goes live once the registry publishes the change. If it says instead that the zone is waiting for the nameserver switch (the automatic pointing failed), point the domain at it:

$ weird domains nameservers example.ro --use-weird-dns

Then wait until the zone is live. The registry can take from a few minutes to a few hours to publish the change; the zone is checked automatically, and you can check at once:

$ weird dns check example.ro

When it says the zone is live, attach the content to a hostname of that zone:

$ weird storage domains attach www.example.ro <cid>

An attach refused because the zone is still pending means the domain does not point at the zone yet, and one refused because the zone waits for the registry to publish its nameservers succeeds a few minutes later: run weird dns check example.ro and try again. A domain registered elsewhere works too: host its DNS on weird with weird dns create example.ro, set the nameservers you are given at its registrar, and wait for the same check (DNS).

Later versions#

To publish a new version, upload the folder again and point the same hostname at the new CID (on a free address, weird names publish does both):

$ weird storage domains retarget www.example.ro <cid>

The storage and sites guide covers paths, versions and taking a site down.

Two optional files in the folder make the site behave like any site elsewhere: _redirects for moved pages and your own not-found page, _headers for caching and security headers (Redirects and headers for your site). An app with its own router needs one line: Publishing a single-page app.

Where next#